diff options
Diffstat (limited to 'ui-summary.c')
-rw-r--r-- | ui-summary.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/ui-summary.c b/ui-summary.c index b4fdd57..1de6610 100644 --- a/ui-summary.c +++ b/ui-summary.c @@ -20,7 +20,6 @@ static void print_url(char *base, char *suffix) if (!base || !*base) return; if (urls++ == 0) { - html("<tr class='nohover'><td colspan='4'> </td></tr>"); html("<tr><th class='left' colspan='4'>Clone</th></tr>\n"); } if (suffix && *suffix) @@ -52,15 +51,22 @@ static void print_urls(char *txt, char *suffix) void cgit_print_summary() { - html("<table summary='repository info' class='list nowrap'>"); + html("<h2>Branches</h2>"); + html("<table summary='repository info' class='table table-striped'>"); cgit_print_branches(ctx.cfg.summary_branches); - html("<tr class='nohover'><td colspan='4'> </td></tr>"); + html("</table>"); + cgit_print_tags(ctx.cfg.summary_tags); + if (ctx.cfg.summary_log > 0) { - html("<tr class='nohover'><td colspan='4'> </td></tr>"); + html("<h2>Log</h2>"); + html("<table summary='repository info' class='table table-striped'>"); cgit_print_log(ctx.qry.head, 0, ctx.cfg.summary_log, NULL, - NULL, NULL, 0, 0, 0); + NULL, NULL, 0, 0, 0); + html("</table>"); } + + html("<table summary='repository info' class='table table-striped'>"); if (ctx.repo->clone_url) print_urls(expand_macros(ctx.repo->clone_url), NULL); else if (ctx.cfg.clone_prefix) |