diff options
context:
space:
mode:
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Tidy the option panels
Diffstat (limited to 'source/ui-stats.c')
-rw-r--r--source/ui-stats.c16
1 file changed, 8 insertions, 8 deletions
diff --git a/source/ui-stats.c b/source/ui-stats.c
index 5436907..58bd818 100644
--- a/source/ui-stats.c
+++ b/source/ui-stats.c
@@ -529,11 +529,11 @@ static void print_options_form(const struct cgit_period *period, int top)
{
int choices, i;
- html("<div class='cgit-panel'>");
- html("<b>stat options</b>");
+ html("<div class='cgit-panel'>\n");
+ html("<strong>stat options</strong>");
html("<form method='get'>");
cgit_add_hidden_formfields(1, 0, "stats");
- html("<table><tr><td colspan='2'/></tr>");
+ html("<table><tr><td colspan='2'></td></tr>\n");
if (!ctx.repo->max_stats || ctx.repo->max_stats > 1) {
choices = ctx.repo->max_stats ?
ctx.repo->max_stats : (int)ARRAY_SIZE(periods);
@@ -552,12 +552,12 @@ static void print_options_form(const struct cgit_period *period, int top)
html_intoption(50, "50", top);
html_intoption(100, "100", top);
html_intoption(-1, "all", top);
- html("</select></td></tr>");
- html("<tr><td/><td class='ctrl'>");
- html("<noscript><input type='submit' value='Reload'/></noscript>");
+ html("</select></td></tr>\n");
+ html("<tr><td></td><td class='ctrl'>");
+ html("<noscript><input type='submit' value='Reload'></noscript>");
html("</td></tr></table>");
- html("</form>");
- html("</div>");
+ html("</form>\n");
+ html("</div>\n");
}
int cgit_find_stats_period(const char *expr, const struct cgit_period **period)