X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;ds=sidebyside;f=templates%2Flist.html.sh;h=e6552fdcd95e9aa7417a375a7254d1bafab86c0c;hb=dfdaf2aee35b9b1ae112df2828b6ab7fa380a7a8;hp=21dfd1189a976296d0b7ad170e893577e94018b5;hpb=cf7e00db16a1ff076df29fc9d4531ea0b19c6243;p=serve0
diff --git a/templates/list.html.sh b/templates/list.html.sh
index 21dfd11..e6552fd 100755
--- a/templates/list.html.sh
+++ b/templates/list.html.sh
@@ -15,22 +15,6 @@
# You should have received a copy of the GNU Affero General Public License
# along with Serve0 If not, see .
-pages="$(
-seq 1 $(pagecount) \
-| while read pn; do
- plink="$(($pn * $pagesize - $pagesize + 1))"
-
- case "$plink" in
- $(($page - $pagesize))) class=previous;;
- $page) class=current;;
- $(($page + $pagesize))) class=next;;
- * ) class='';;
- esac
-
- printf '%s\n' "$class" "$page_link" "$plink" "$pn"
-done
-)"
-
cat <
@@ -73,6 +57,22 @@ EOF
thumblist
+ pages="$(
+ seq 1 $(pagecount) \
+ | while read pn; do
+ plink="$(($pn * $pagesize - $pagesize + 1))"
+
+ case "$plink" in
+ $(($page - $pagesize))) class=previous;;
+ $page) class=current;;
+ $(($page + $pagesize))) class=next;;
+ * ) class='';;
+ esac
+
+ printf '%s\n' "$class" "$page_link" "$plink" "$pn"
+ done
+ )"
+
cat <
$(. $_EXEC/templates/tagger.html.sh)