X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;ds=sidebyside;f=theme%2Fhtml.ct;h=0a2d2e3b55038fe98e501e17f1b6c1abc6ef80f7;hb=4bec516a86ece8e198b45c81fabf28c6c2ea8818;hp=a882093ef25244c20dd0aa6d5eb60d3e81431166;hpb=c9eac6b3caf31152edf4e643a1f8286261acf160;p=site diff --git a/theme/html.ct b/theme/html.ct index a882093..0a2d2e3 100644 --- a/theme/html.ct +++ b/theme/html.ct @@ -1,13 +1,25 @@ -<% #include "string.h" %> <% #include "html.h" %> -<% void print_header(void) { %> +<% void print_header(page_t *page) { %> +<% if (page->error) %><%% "Status: %s\n", page->error %> Content-Type: text/html;charset=UTF-8 <% } %> -<% void print_link(char *path, char *name, int cur) { %> - class="cur"<% } %>><%= name %> +<% void print_menu_start(void) { %> +
+<% } %> + +<% void print_link(char *path, char *name, int cur, int dir) { %> + class="cur"<% } + %>><%= name %><% + if (dir > 1) { %>/<% } + %> <% } %> <% void print_page(page_t *page, menu_t *menu) { %> @@ -16,7 +28,7 @@ Content-Type: text/html;charset=UTF-8 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -