From 3a08c07f92ab2a27402ac3bbdc42fda4fd827ec2 Mon Sep 17 00:00:00 2001 From: chimchooree Date: Thu, 1 Oct 2020 19:05:07 -0500 Subject: [PATCH] diary nav numbers are links; current page is not a link but bolded --- src/views/diary.tpl | 36 +++++++++++++++++------------------- 1 file changed, 17 insertions(+), 19 deletions(-) diff --git a/src/views/diary.tpl b/src/views/diary.tpl index 78ec87a..3886503 100644 --- a/src/views/diary.tpl +++ b/src/views/diary.tpl @@ -4,12 +4,10 @@
% for i in range(max(0,page - limit), min(total,page + limit)): % if i == page: - - % end - {{i}} - % if i == page: - - % end + {{i}} + % else: + {{i}} + % end % end
@@ -17,20 +15,20 @@
% for s in snippets: -
-
- {{!s[0]}} -
-
- {{!s[1]}} -
-
- {{!s[2]}} • {{!s[3]}} +
+
+ {{!s[0]}} +
+
+ {{!s[1]}} +
+
+ {{!s[2]}} • {{!s[3]}} +
+
- -
% end