X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/23296ad648c0e2a9e3cf40a3de322b10ad25cce3..837d464af77d76a2661d92e05167657cbf430d80:/ui-refs.c
diff --git a/ui-refs.c b/ui-refs.c
index 12533cd..32e0429 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;
}
@@ -88,7 +88,7 @@ static int print_tag(struct refinfo *ref)
{
struct tag *tag;
struct taginfo *info;
- char *url, *name = (char *)ref->refname;
+ char *name = (char *)ref->refname;
if (ref->object->type == OBJ_TAG) {
tag = (struct tag *)ref->object;
@@ -96,26 +96,22 @@ static int print_tag(struct refinfo *ref)
if (!tag || !info)
return 1;
html("| ");
- url = cgit_pageurl(ctx.qry.repo, "tag",
- fmt("id=%s", name));
- html_link_open(url, NULL, NULL);
- html_txt(name);
- html_link_close();
+ cgit_tag_link(name, NULL, NULL, ctx.qry.head, name);
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 +131,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 +192,5 @@ void cgit_print_refs()
html("| |
");
cgit_print_tags(0);
}
-
html("");
}