]> git.plutz.net Git - serve0/blobdiff - templates/view.html.sh
maintain different top lists for tag selection and setting
[serve0] / templates / view.html.sh
index 7a89a9ec31666cc2104dbbe9ea287b1f4bf4149b..8df1b5695061f02e9956dc00f6748bb8393ef7de 100755 (executable)
@@ -50,8 +50,7 @@ cat <<EOF
   <span class="info width" >Width: $width</span>
   <span class="info height">Height: $height</span><br>
   
-  <label class="tags">Tags:</label>
-  $(printf %s\\n "$tags" |sed -r 's:\|*([^|]+)\|*:<span class="info tag">\1</span>:g')
+  $(printf %s\\n "$tags" |sed -r 's:\|*([^|]+)\|*:<span class="info tag">\1</span> :g')
   ${description:+<span class="info description">$(printf %s "$description" |_wiki)</span>}
 
   <form class="panel" id="tagger" action="?action=meta&${page_this}" method="post" accept-charset="UTF-8">
@@ -65,7 +64,7 @@ cat <<EOF
       catt="${cat}:"
       [ "$catt" = "none:" ] && catt=''
       
-      printf %s "$taglist" |egrep '^'"$catt"'[^:]+$' |while read line; do
+      printf %s "$taglist_set" |egrep '^'"$catt"'[^:]+$' |while read line; do
         printf '<option %s value="%s">%s</option>' \
                "$(egrep -q "(^|.*\|)$line(\|.*|$)" "$meta" && printf selected)" \
                "$line" "${line#*:}"