X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/c5984a9896b39748e61daf6e620483749654b102..b7f33786ef4b155a11b0324f84bbde5d7fc9c998:/ui-refs.c diff --git a/ui-refs.c b/ui-refs.c index fc82ca7..44c8f9a 100644 --- a/ui-refs.c +++ b/ui-refs.c @@ -8,6 +8,7 @@ #include "cgit.h" #include "html.h" +#include "ui-shared.h" static int header; @@ -61,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); @@ -77,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; } @@ -101,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"); } @@ -134,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; @@ -195,6 +196,5 @@ void cgit_print_refs() html(" "); cgit_print_tags(0); } - html(""); }