X-Git-Url: https://git.cameronkatri.com/cgit.git/blobdiff_plain/28185ae40a82d3304ace805c9a44e933270bd581..bd6f5683f6cde4212364354b3139c1d521f40f39:/ui-tag.c diff --git a/ui-tag.c b/ui-tag.c index afd7d61..424bbcc 100644 --- a/ui-tag.c +++ b/ui-tag.c @@ -33,9 +33,8 @@ static void print_tag_content(char *buf) static void print_download_links(char *revname) { - html("download"); - cgit_print_snapshot_links(ctx.qry.repo, ctx.qry.head, - revname, ctx.repo->snapshots); + html("download"); + cgit_print_snapshot_links(ctx.repo, revname, "
"); html(""); } @@ -54,7 +53,7 @@ void cgit_print_tag(char *revname) "Bad tag reference: %s", revname); goto cleanup; } - obj = parse_object(oid.hash); + obj = parse_object(the_repository, &oid); if (!obj) { cgit_print_error_page(500, "Internal server error", "Bad object id: %s", oid_to_hex(&oid)); @@ -64,7 +63,7 @@ void cgit_print_tag(char *revname) struct tag *tag; struct taginfo *info; - tag = lookup_tag(oid.hash); + tag = lookup_tag(the_repository, &oid); if (!tag || parse_tag(tag) || !(info = cgit_parse_tag(tag))) { cgit_print_error_page(500, "Internal server error", "Bad tag object: %s", revname); @@ -72,7 +71,7 @@ void cgit_print_tag(char *revname) } cgit_print_layout_start(); html("\n"); - htmlf("\n", oid_to_hex(&oid)); if (info->tagger_date > 0) { @@ -92,7 +91,7 @@ void cgit_print_tag(char *revname) cgit_close_filter(ctx.repo->email_filter); html("\n"); } - html("\n"); if (ctx.repo->snapshots) @@ -104,10 +103,10 @@ void cgit_print_tag(char *revname) } else { cgit_print_layout_start(); html("
tag name"); + html("
tag name"); html_txt(revname); htmlf(" (%s)
tagged object"); + html("
tagged object"); cgit_object_link(tag->tagged); html("
\n"); - htmlf("\n"); - html("\n"); if (ctx.repo->snapshots)
tag name"); + html("
tag name"); html_txt(revname); html("
Tagged object"); + html("
tagged object"); cgit_object_link(obj); html("