ui-refs: use cgit_tag_link()
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
parent
cf61ad411c
commit
24d4bb3058
@ -88,7 +88,7 @@ static int print_tag(struct refinfo *ref)
|
|||||||
{
|
{
|
||||||
struct tag *tag;
|
struct tag *tag;
|
||||||
struct taginfo *info;
|
struct taginfo *info;
|
||||||
char *url, *name = (char *)ref->refname;
|
char *name = (char *)ref->refname;
|
||||||
|
|
||||||
if (ref->object->type == OBJ_TAG) {
|
if (ref->object->type == OBJ_TAG) {
|
||||||
tag = (struct tag *)ref->object;
|
tag = (struct tag *)ref->object;
|
||||||
@ -96,11 +96,7 @@ static int print_tag(struct refinfo *ref)
|
|||||||
if (!tag || !info)
|
if (!tag || !info)
|
||||||
return 1;
|
return 1;
|
||||||
html("<tr><td>");
|
html("<tr><td>");
|
||||||
url = cgit_pageurl(ctx.qry.repo, "tag",
|
cgit_tag_link(name, NULL, NULL, ctx.qry.head, name);
|
||||||
fmt("id=%s", name));
|
|
||||||
html_link_open(url, NULL, NULL);
|
|
||||||
html_txt(name);
|
|
||||||
html_link_close();
|
|
||||||
html("</td><td>");
|
html("</td><td>");
|
||||||
cgit_object_link(tag->tagged);
|
cgit_object_link(tag->tagged);
|
||||||
html("</td><td>");
|
html("</td><td>");
|
||||||
|
Caricamento…
Fai riferimento in un nuovo problema
Block a user