X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/2c9f56f3e1c754f60ccffbc6c745b9d5a81ea005..HEAD:/ui-tag.c?ds=sidebyside diff --git a/ui-tag.c b/ui-tag.c index f530224..3b11226 100644 --- a/ui-tag.c +++ b/ui-tag.c @@ -6,6 +6,8 @@ * (see COPYING for full license text) */ +#define USE_THE_REPOSITORY_VARIABLE + #include "cgit.h" #include "ui-tag.h" #include "html.h" @@ -33,7 +35,7 @@ static void print_tag_content(char *buf) static void print_download_links(char *revname) { - html("download"); + html("download"); cgit_print_snapshot_links(ctx.repo, revname, "
"); html(""); } @@ -48,7 +50,7 @@ void cgit_print_tag(char *revname) revname = ctx.qry.head; strbuf_addf(&fullref, "refs/tags/%s", revname); - if (get_oid(fullref.buf, &oid)) { + if (repo_get_oid(the_repository, fullref.buf, &oid)) { cgit_print_error_page(404, "Not found", "Bad tag reference: %s", revname); goto cleanup; @@ -71,7 +73,7 @@ void cgit_print_tag(char *revname) } cgit_print_layout_start(); html("\n"); - htmlf("\n", oid_to_hex(&oid)); if (info->tagger_date > 0) { @@ -91,7 +93,7 @@ void cgit_print_tag(char *revname) cgit_close_filter(ctx.repo->email_filter); html("\n"); } - html("\n"); if (ctx.repo->snapshots) @@ -103,10 +105,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("