]> git.cameronkatri.com Git - cgit.git/commitdiff
ui-refs: use cgit_tag_link()
authorLars Hjemli <hjemli@gmail.com>
Sun, 5 Oct 2008 19:19:05 +0000 (21:19 +0200)
committerLars Hjemli <hjemli@gmail.com>
Sun, 5 Oct 2008 19:19:05 +0000 (21:19 +0200)
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
ui-refs.c

index 44c8f9ae48f534b6472798540a964570771f7ebd..32e0429242776e7d48e7666a1d585a2dca58685a 100644 (file)
--- 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("<tr><td>");
-               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("</td><td>");
                cgit_object_link(tag->tagged);
                html("</td><td>");