diff options
author | Tom Willemse | 2013-05-04 15:38:00 +0200 |
---|---|---|
committer | Tom Willemse | 2013-05-04 15:38:00 +0200 |
commit | 4f64d3fa0e20f3b4d56fb8b8bd7e0788944a8c38 (patch) | |
tree | 6f4bcd29f656124482c32c94a36b734b1041579f /ui-summary.c | |
parent | a6a932e198e8b6b564d7a4bb43e78078d8296026 (diff) | |
download | cgit-4f64d3fa0e20f3b4d56fb8b8bd7e0788944a8c38.tar.gz cgit-4f64d3fa0e20f3b4d56fb8b8bd7e0788944a8c38.zip |
Start bootstrapping cgit
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) |