aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorXe Iaso <me@christine.website>2022-07-24 18:21:35 +0000
committerXe Iaso <me@christine.website>2022-07-24 18:22:51 +0000
commite870ccac818565c5ad92c4b085bc3ce82a9bafab (patch)
treec3ccd93acde518df8965a3d40233f507f62116ee /templates
parentecdf2115f83f762c7236f2b6cf4f9655e27aa601 (diff)
downloadxesite-e870ccac818565c5ad92c4b085bc3ce82a9bafab.tar.xz
xesite-e870ccac818565c5ad92c4b085bc3ce82a9bafab.zip
notes: finish features
Pagination and comments fixed Signed-off-by: Xe <me@christine.website>
Diffstat (limited to 'templates')
-rw-r--r--templates/notesindex.rs.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/notesindex.rs.html b/templates/notesindex.rs.html
index 9b1dca5..2044aee 100644
--- a/templates/notesindex.rs.html
+++ b/templates/notesindex.rs.html
@@ -1,7 +1,7 @@
@use crate::handlers::notes::Note;
@use super::{header_html, footer_html};
-@(notes: Vec<Note>)
+@(notes: Vec<Note>, page: u64)
@:header_html(Some("Notes"), None)
@@ -17,4 +17,9 @@
@Html(note.to_html().0)
}
+@if page!=0 {
+ <a href="/notes?page=@(page-1)">Prev</a>
+}
+<a href="/notes?page=@(page+1)">Next</a>
+
@:footer_html()