diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Tidy the option panels
| -rw-r--r-- | source/ui-diff.c | 14 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| -rw-r--r-- | source/ui-stats.c | 16 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
2 files changed, 15 insertions, 15 deletions
diff --git a/source/ui-diff.c b/source/ui-diff.c index 98bccfe..4ac3673 100644 --- a/source/ui-diff.c +++ b/source/ui-diff.c @@ -568,12 +568,12 @@ void cgit_print_diff_ctrls(void) { int i, selected; - html("<div class='cgit-panel'>"); - html("<b>diff options</b>"); + html("<div class='cgit-panel'>\n"); + html("<strong>diff options</strong>"); html("<form method='get'>"); cgit_add_hidden_formfields(1, 0, ctx.qry.page); html("<table>"); - html("<tr><td colspan='2'/></tr>"); + html("<tr><td colspan='2'></td></tr>"); html("<tr>"); html("<td class='label'>context:</td>"); html("<td class='ctrl'>"); @@ -604,11 +604,11 @@ void cgit_print_diff_ctrls(void) html_intoption(1, "ssdiff", selected); html_intoption(2, "stat only", selected); html("</select></td></tr>"); - html("<tr><td/><td class='ctrl'>"); - html("<noscript><input type='submit' value='reload'/></noscript>"); + 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"); } void cgit_print_diff(const char *new_rev, const char *old_rev, 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) |
