Mercurial > paster
comparison page-index.c @ 81:1ffe2f5a8500
pasterd: use HTML files to allow themes
author | David Demelier <markand@malikania.fr> |
---|---|
date | Fri, 17 Mar 2023 07:56:01 +0100 |
parents | 52029a52a385 |
children | 0a29424e4486 |
comparison
equal
deleted
inserted
replaced
80:9bc744a4a292 | 81:1ffe2f5a8500 |
---|---|
22 #include "page-index.h" | 22 #include "page-index.h" |
23 #include "page-status.h" | 23 #include "page-status.h" |
24 #include "page.h" | 24 #include "page.h" |
25 #include "paste.h" | 25 #include "paste.h" |
26 #include "util.h" | 26 #include "util.h" |
27 | |
28 #include "html/index.h" | |
29 | 27 |
30 #define LIMIT 16 | 28 #define LIMIT 16 |
31 #define TITLE "paster -- recent pastes" | 29 #define TITLE "paster -- recent pastes" |
32 | 30 |
33 struct page { | 31 struct page { |
133 }, | 131 }, |
134 .pastes = pastes, | 132 .pastes = pastes, |
135 .pastesz = pastesz | 133 .pastesz = pastesz |
136 }; | 134 }; |
137 | 135 |
138 page(req, KHTTP_200, TITLE, html_index, &self.template); | 136 page(req, KHTTP_200, TITLE, "index.html", &self.template); |
139 } | 137 } |
140 | 138 |
141 void | 139 void |
142 page_index(struct kreq *req) | 140 page_index(struct kreq *req) |
143 { | 141 { |