From 24d4bb3058e02c61ae4ea61c3a3d993564bed79b Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Sun, 5 Oct 2008 21:19:05 +0200 Subject: ui-refs: use cgit_tag_link() Signed-off-by: Lars Hjemli --- ui-refs.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/ui-refs.c b/ui-refs.c index 44c8f9a..32e0429 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 *url, *name = (char *)ref->refname; + char *name = (char *)ref->refname; if (ref->object->type == OBJ_TAG) { tag = (struct tag *)ref->object; @@ -96,11 +96,7 @@ 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(""); cgit_object_link(tag->tagged); html(""); -- cgit 1.4.1