From 4f64d3fa0e20f3b4d56fb8b8bd7e0788944a8c38 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sat, 4 May 2013 15:38:00 +0200 Subject: Start bootstrapping cgit --- ui-summary.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'ui-summary.c') 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(" "); html("Clone\n"); } if (suffix && *suffix) @@ -52,15 +51,22 @@ static void print_urls(char *txt, char *suffix) void cgit_print_summary() { - html(""); + html("

Branches

"); + html("
"); cgit_print_branches(ctx.cfg.summary_branches); - html(""); + html("
 
"); + cgit_print_tags(ctx.cfg.summary_tags); + if (ctx.cfg.summary_log > 0) { - html(" "); + html("

Log

"); + html(""); cgit_print_log(ctx.qry.head, 0, ctx.cfg.summary_log, NULL, - NULL, NULL, 0, 0, 0); + NULL, NULL, 0, 0, 0); + html("
"); } + + html(""); if (ctx.repo->clone_url) print_urls(expand_macros(ctx.repo->clone_url), NULL); else if (ctx.cfg.clone_prefix) -- cgit v1.2.3-54-g00ecf