summaryrefslogtreecommitdiffstatshomepage
path: root/ui-summary.c
diff options
context:
space:
mode:
authorGravatar Tom Willemse2013-05-04 15:38:00 +0200
committerGravatar Tom Willemse2013-05-04 15:38:00 +0200
commit4f64d3fa0e20f3b4d56fb8b8bd7e0788944a8c38 (patch)
tree6f4bcd29f656124482c32c94a36b734b1041579f /ui-summary.c
parenta6a932e198e8b6b564d7a4bb43e78078d8296026 (diff)
downloadcgit-4f64d3fa0e20f3b4d56fb8b8bd7e0788944a8c38.tar.gz
cgit-4f64d3fa0e20f3b4d56fb8b8bd7e0788944a8c38.zip
Start bootstrapping cgit
Diffstat (limited to 'ui-summary.c')
-rw-r--r--ui-summary.c16
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'>&nbsp;</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'>&nbsp;</td></tr>");
+ html("</table>");
+
cgit_print_tags(ctx.cfg.summary_tags);
+
if (ctx.cfg.summary_log > 0) {
- html("<tr class='nohover'><td colspan='4'>&nbsp;</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)