]> git.plutz.net Git - serve0/blobdiff - templates/filterdiag.html.sh
speed up in filtering
[serve0] / templates / filterdiag.html.sh
index f35e15ee56c9138880c979fea5a97e759c56643d..5fbf2c3d2228313af61bcca1f394b27f19f31bae 100755 (executable)
@@ -2,7 +2,7 @@
 
 cat <<FilterEnd
   <div class="panel" id="search" style="display: block;">
-    <form action="index.cgi" method="get" accept-charset="UTF-8">
+    <form action="?" method="get" accept-charset="UTF-8">
       <input type="text" name="s" value="$search" placeholder="Search">
       Order by:<select size="1" name="o">
        <option>Name</option>
@@ -28,7 +28,7 @@ cat <<FilterEnd
     <a class="panel" href="#" onclick="javascript:hide_block('advfilter');$(for n in {1..9}; do echo "hide_inline('filter$n');"; done)show_block('search')">Hide</a>
     <hr>
     Up to <b>10</b> filter boxes will appear as you start selecting tags. You can select <b>multiple</b> tags in each box by holding down the <b>Ctrl</b>-key. Click the "<b>Filter!</b>" button when you are ready.
-    <form action="filter.cgi" method="post" accept-charset="UTF-8">
+    <form action="?action=filter" method="post" accept-charset="UTF-8">
     $(for n in {0..9}; do
       hideall="$(sed -rn "s;^([^:]+):.*$;hide_inline('${n}_\\1')\\;;p" <<<"$taglist" |sort -u)hide_inline('${n}_none');"
       echo "
@@ -62,7 +62,7 @@ cat <<FilterEnd
 
     <br/>
     <h2>Most recent</h2>
-    $(uniq meta/recent |tail -n 10 |sed -r 's:^(.*)$:<a href="\1">\1</a><br/>:g')
+    $(uniq ${_DATA}/meta/recent |tail -n 10 |sed -r 's:^(.*)$:<a href="\1">\1</a><br/>:g')
   </div>
 FilterEnd