From 5764fe95469f65fdee285467f0f87d188fc1a780 Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Mon, 14 Apr 2008 22:13:38 +0200 Subject: Make branches, tags and log play better together in the summary view Signed-off-by: Lars Hjemli --- ui-refs.c | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) (limited to 'ui-refs.c') diff --git a/ui-refs.c b/ui-refs.c index 12533cd..44c8f9a 100644 --- a/ui-refs.c +++ b/ui-refs.c @@ -62,11 +62,11 @@ static int print_branch(struct refinfo *ref) html(""); if (ref->object->type == OBJ_COMMIT) { - cgit_print_age(info->commit->date, -1, NULL); + cgit_commit_link(info->subject, NULL, NULL, name, NULL); html(""); html_txt(info->author); - html(""); - cgit_commit_link(info->subject, NULL, NULL, name, NULL); + html(""); + cgit_print_age(info->commit->date, -1, NULL); } else { html(""); cgit_object_link(ref->object); @@ -78,9 +78,9 @@ static int print_branch(struct refinfo *ref) static void print_tag_header() { html("Tag" - "Age" + "Reference" "Author" - "Reference\n"); + "Age\n"); header = 1; } @@ -102,20 +102,20 @@ static int print_tag(struct refinfo *ref) html_txt(name); html_link_close(); html(""); - if (info->tagger_date > 0) - cgit_print_age(info->tagger_date, -1, NULL); + cgit_object_link(tag->tagged); html(""); if (info->tagger) html(info->tagger); - html(""); - cgit_object_link(tag->tagged); + html(""); + if (info->tagger_date > 0) + cgit_print_age(info->tagger_date, -1, NULL); html("\n"); } else { if (!header) print_tag_header(); html(""); html_txt(name); - html(""); + html(""); cgit_object_link(ref->object); html("\n"); } @@ -135,9 +135,9 @@ void cgit_print_branches(int maxcount) int i; html("Branch" - "Idle" + "Commit message" "Author" - "Head commit\n"); + "Age\n"); list.refs = NULL; list.alloc = list.count = 0; @@ -196,6 +196,5 @@ void cgit_print_refs() html(" "); cgit_print_tags(0); } - html(""); } -- cgit v1.2.3-24-g4f1b