aboutsummaryrefslogtreecommitdiff
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
-rw-r--r--ui-refs.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/ui-refs.c b/ui-refs.c
index 32e0429..44c8f9a 100644
--- a/ui-refs.c
+++ b/ui-refs.c
@@ -88,7 +88,7 @@ static int print_tag(struct refinfo *ref)
{
struct tag *tag;
struct taginfo *info;
- char *name = (char *)ref->refname;
+ char *url, *name = (char *)ref->refname;
if (ref->object->type == OBJ_TAG) {
tag = (struct tag *)ref->object;
@@ -96,7 +96,11 @@ static int print_tag(struct refinfo *ref)
if (!tag || !info)
return 1;
html("<tr><td>");
- cgit_tag_link(name, NULL, NULL, ctx.qry.head, name);
+ url = cgit_pageurl(ctx.qry.repo, "tag",
+ fmt("id=%s", name));
+ html_link_open(url, NULL, NULL);
+ html_txt(name);
+ html_link_close();
html("</td><td>");
cgit_object_link(tag->tagged);
html("</td><td>");