diff options
context:
space:
mode:
Diffstat (limited to 'source/ui-shared.c')
-rw-r--r--source/ui-shared.c18
1 file changed, 9 insertions, 9 deletions
diff --git a/source/ui-shared.c b/source/ui-shared.c
index 1f45520..12df3b2 100644
--- a/source/ui-shared.c
+++ b/source/ui-shared.c
@@ -302,7 +302,7 @@ static void print_abs_date(time_t t, int tz)
html_attr(show_date(t, tz, cgit_date_mode(DATE_ISO8601)));
html("'>");
html_txt(show_date(t, tz, configured_date_mode()));
- html("</span>");
+ html("</time>");
}
static void print_rel_date(time_t t, int tz, double count, const char *class,
@@ -349,7 +349,7 @@ static int emit_css_link(struct string_list_item *item, void *fallback)
html_attr(item->string);
else
html_attr((const char *)fallback);
- html("'/>\n");
+ html("'>\n");
return 0;
}
@@ -651,10 +651,10 @@ static void self_link(const char *name, const char *title, const char *class)
cgit_stats_link(name, title, class, ctx.qry.head,
ctx.qry.path);
else {
+ // A page name this switch does not know still gets a plain
+ // repolink, which covers any simple page added later.
repolink(title, class, ctx.qry.page, ctx.qry.head, ctx.qry.path);
- html("><!-- cgit_self_link() doesn't know how to make link for page '");
- html_txt(ctx.qry.page);
- html("' -->");
+ html("'>");
html_txt(name);
html("</a>");
}
@@ -1216,7 +1216,7 @@ void cgit_print_docend(void)
{
html("</main>\n");
if (ctx.cfg.embedded) {
- html("</div> <!-- id=cgit -->\n");
+ html("</div>\n");
if (ctx.cfg.footer)
html_include(ctx.cfg.footer);
return;
@@ -1229,7 +1229,7 @@ void cgit_print_docend(void)
html_txt(show_date(time(NULL), 0, cgit_date_mode(DATE_ISO8601)));
html("</footer>\n");
}
- html("</div> <!-- id=cgit -->\n");
+ html("</div>\n");
html("</body>\n</html>\n");
}
@@ -1306,7 +1306,7 @@ void cgit_add_hidden_formfields(int incl_head, int incl_search,
void cgit_print_pageheader(void)
{
- html("<div id='cgit'>");
+ html("<div id='cgit'>\n");
if (!ctx.env.authenticated || !ctx.cfg.noheader)
print_header();
@@ -1340,7 +1340,7 @@ void cgit_print_pageheader(void)
ctx.qry.follow = !ctx.qry.follow;
html(")");
}
- html("</nav>");
+ html("</nav>\n");
}
html("<main class='content'>\n");
}