summaryrefslogtreecommitdiffabout
authorLars Hjemli <hjemli@gmail.com>2008-10-05 19:19:05 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2008-10-05 19:19:05 (UTC)
commit24d4bb3058e02c61ae4ea61c3a3d993564bed79b (patch) (unidiff)
tree64c00d06182b6dab2046631e2c6dca25057fe06f
parentcf61ad411c41a774c9671651704bdeb78ccc1036 (diff)
downloadcgit-24d4bb3058e02c61ae4ea61c3a3d993564bed79b.zip
cgit-24d4bb3058e02c61ae4ea61c3a3d993564bed79b.tar.gz
cgit-24d4bb3058e02c61ae4ea61c3a3d993564bed79b.tar.bz2
ui-refs: use cgit_tag_link()
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--ui-refs.c8
1 files 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)
88{ 88{
89 struct tag *tag; 89 struct tag *tag;
90 struct taginfo *info; 90 struct taginfo *info;
91 char *url, *name = (char *)ref->refname; 91 char *name = (char *)ref->refname;
92 92
93 if (ref->object->type == OBJ_TAG) { 93 if (ref->object->type == OBJ_TAG) {
94 tag = (struct tag *)ref->object; 94 tag = (struct tag *)ref->object;
@@ -96,11 +96,7 @@ static int print_tag(struct refinfo *ref)
96 if (!tag || !info) 96 if (!tag || !info)
97 return 1; 97 return 1;
98 html("<tr><td>"); 98 html("<tr><td>");
99 url = cgit_pageurl(ctx.qry.repo, "tag", 99 cgit_tag_link(name, NULL, NULL, ctx.qry.head, name);
100 fmt("id=%s", name));
101 html_link_open(url, NULL, NULL);
102 html_txt(name);
103 html_link_close();
104 html("</td><td>"); 100 html("</td><td>");
105 cgit_object_link(tag->tagged); 101 cgit_object_link(tag->tagged);
106 html("</td><td>"); 102 html("</td><td>");