summaryrefslogtreecommitdiff
path: root/ui-refs.c
diff options
context:
space:
mode:
authorLars Hjemli <hjemli@gmail.com>2008-10-05 21:19:05 +0200
committerLars Hjemli <hjemli@gmail.com>2008-10-05 21:19:05 +0200
commit24d4bb3058e02c61ae4ea61c3a3d993564bed79b (patch)
tree64c00d06182b6dab2046631e2c6dca25057fe06f /ui-refs.c
parentcf61ad411c41a774c9671651704bdeb78ccc1036 (diff)
downloadcgit-24d4bb3058e02c61ae4ea61c3a3d993564bed79b.tar.gz
cgit-24d4bb3058e02c61ae4ea61c3a3d993564bed79b.tar.bz2
cgit-24d4bb3058e02c61ae4ea61c3a3d993564bed79b.zip
ui-refs: use cgit_tag_link()
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to '')
-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)
{
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>");
>3-6/+3 2011-02-07missed oneRené 'Necoro' Neumann1-1/+1 2011-02-07unicode aware formRené 'Necoro' Neumann1-1/+10 2011-02-07Use Unicode as expectedRené 'Necoro' Neumann1-2/+2 2010-08-26but not editRené 'Necoro' Neumann1-1/+8 2010-08-26Make add redirect to addRené 'Necoro' Neumann1-1/+1 2010-07-27Add datepicker to add/editRené 'Necoro' Neumann3-3/+23 2010-07-27Fix sizes of datepickerRené 'Necoro' Neumann1-3/+3 2010-07-27Add jQuery UI -- DatepickerRené 'Necoro' Neumann17-0/+1168 2010-07-27Add category manipulation supportRené 'Necoro' Neumann10-6/+85 2010-07-26Konstante KostenRené 'Necoro' Neumann1-1/+1 2010-07-26Added link to edit the constant stuffRené 'Necoro' Neumann1-1/+1 2010-07-26Added addition and modification of constant stuffRené 'Necoro' Neumann3-8/+106 2010-07-05Only show right nav arrow, if the following month is not in the futureRené 'Necoro' Neumann2-14/+20 2010-07-05Add month navigationRené 'Necoro' Neumann6-5/+35 2010-07-05Add iconRené 'Necoro' Neumann2-1/+2 2010-07-05change cursorRené 'Necoro' Neumann1-0/+5 2010-07-05Some restructuringRené 'Necoro' Neumann3-28/+45 2010-07-05Closed/Open imagesRené 'Necoro' Neumann4-0/+146 2010-05-25Move page templates into their own folderRené 'Necoro' Neumann5-5/+7 2010-05-25Added the ability to edit an expenseRené 'Necoro' Neumann3-9/+34 2010-05-12FixRené 'Necoro' Neumann1-2/+2 2010-05-12Show more detailsRené 'Necoro' Neumann4-19/+42 2010-05-12Create new form each timeRené 'Necoro' Neumann1-24/+26 2010-05-10Fix redirect in AddRené 'Necoro' Neumann1-1/+1 2010-05-10Added the 'add expense' stuffRené 'Necoro' Neumann4-3/+69