X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=templates%2Fview.html.sh;h=8df1b5695061f02e9956dc00f6748bb8393ef7de;hb=502526f13e9ac1a758ae7defedbbe620d893649d;hp=b251b871527a01a5b76e0d4e514e4eb6c4b85ba2;hpb=0d4152e00eda7efa86235fedbecc7bf36d8b159c;p=serve0 diff --git a/templates/view.html.sh b/templates/view.html.sh index b251b87..8df1b56 100755 --- a/templates/view.html.sh +++ b/templates/view.html.sh @@ -1,4 +1,4 @@ -# Copyright 2014, 2015 Paul Hänsch +# Copyright 2014 - 2016 Paul Hänsch # # This file is part of Serve0 # @@ -16,100 +16,89 @@ # along with Serve0 If not, see . cat < - + + - Order by: - - Name - Date - Length - - + Order by: + + Name + Date + Length + + - Clear All - Advanced + Clear All + Dismiss - - Page: - << - $(($page + 1)) - >> - - + + Page: + << + $(($page + 1)) + >> + + - - Dismiss - - Full - - " - - - - - - - $info - Edit + + $info - $(($length / 60)):$(($length % 60)) min - Width: $width - Height: $height + Download + + " + - Tags: - $(echo "$tags" |sed -r 's:\|*([^|]+)\|*:\1:g') - $([ -n "$description" ] && echo "$(_wiki <<<"$description")") - - + $(($length / 60)):$(($length % 60)) min + Width: $width + Height: $height - - - - - - + $(printf %s\\n "$tags" |sed -r 's:\|*([^|]+)\|*:\1 :g') + ${description:+$(printf %s "$description" |_wiki)} - $info - Cancel + + + + - $(($length / 60)):$(($length % 60)) min - Width: $width - Height: $height - - Tags: - - $(echo "$taglist" |while read line; do - echo "$line" - done) - + $( + for cat in $(list_categories); do + printf '%s:' "${cat}" + catt="${cat}:" + [ "$catt" = "none:" ] && catt='' + + printf %s "$taglist_set" |egrep '^'"$catt"'[^:]+$' |while read line; do + printf '%s' \ + "$(egrep -q "(^|.*\|)$line(\|.*|$)" "$meta" && printf selected)" \ + "$line" "${line#*:}" + done + printf '' + done + ) - Additional Tags (one per line): - + + Additional Tags (one per line): + + + + Description: + $description + + + - Description: - $description - - - - - - + Hide - - - $(thumblist) - - + + + EOF # vi:set filetype=html:
%s:' "${cat}" + catt="${cat}:" + [ "$catt" = "none:" ] && catt='' + + printf %s "$taglist_set" |egrep '^'"$catt"'[^:]+$' |while read line; do + printf '%s' \ + "$(egrep -q "(^|.*\|)$line(\|.*|$)" "$meta" && printf selected)" \ + "$line" "${line#*:}" + done + printf '
+ Additional Tags (one per line): + +
+ Description: + $description +