aboutsummaryrefslogtreecommitdiffstats
path: root/ui-shared.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui-shared.c')
-rw-r--r--ui-shared.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/ui-shared.c b/ui-shared.c
index 9a2e382..066a470 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -1114,7 +1114,7 @@ void cgit_compose_snapshot_prefix(struct strbuf *filename, const char *base,
1114void cgit_print_snapshot_links(const struct cgit_repo *repo, const char *ref, 1114void cgit_print_snapshot_links(const struct cgit_repo *repo, const char *ref,
1115 const char *separator) 1115 const char *separator)
1116{ 1116{
1117 const struct cgit_snapshot_format* f; 1117 const struct cgit_snapshot_format *f;
1118 struct strbuf filename = STRBUF_INIT; 1118 struct strbuf filename = STRBUF_INIT;
1119 const char *basename; 1119 const char *basename;
1120 size_t prefixlen; 1120 size_t prefixlen;
@@ -1139,6 +1139,13 @@ void cgit_print_snapshot_links(const struct cgit_repo *repo, const char *ref,
1139 cgit_snapshot_link("sig", NULL, NULL, NULL, NULL, 1139 cgit_snapshot_link("sig", NULL, NULL, NULL, NULL,
1140 filename.buf); 1140 filename.buf);
1141 html(")"); 1141 html(")");
1142 } else if (starts_with(f->suffix, ".tar") && cgit_snapshot_get_sig(ref, &cgit_snapshot_formats[0])) {
1143 strbuf_setlen(&filename, strlen(filename.buf) - strlen(f->suffix));
1144 strbuf_addstr(&filename, ".tar.asc");
1145 html(" (");
1146 cgit_snapshot_link("sig", NULL, NULL, NULL, NULL,
1147 filename.buf);
1148 html(")");
1142 } 1149 }
1143 html(separator); 1150 html(separator);
1144 } 1151 }