# You should have received a copy of the GNU Affero General Public License
# along with Serve0 If not, see <http://www.gnu.org/licenses/>.
-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 '<a class="%s" href="?%spn=%s">%s</a>\n' "$class" "$page_link" "$plink" "$pn"
-done
-)"
-
cat <<EOF
<input type=radio name=topmenu id=btn_search checked><label for=btn_search>Search</label>
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 '<a class="%s" href="?%spn=%s">%s</a>\n' "$class" "$page_link" "$plink" "$pn"
+ done
+ )"
+
cat <<EOF
</ul>
$(. $_EXEC/templates/tagger.html.sh)