summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--ui-tag.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/ui-tag.c b/ui-tag.c
index c2d72af..cd353c2 100644
--- a/ui-tag.c
+++ b/ui-tag.c
@@ -32,2 +32,10 @@ static void print_tag_content(char *buf)
+void print_download_links(char *revname)
+{
+ html("<tr><th>download</th><td class='sha1'>");
+ cgit_print_snapshot_links(ctx.qry.repo, ctx.qry.head,
+ revname, ctx.repo->snapshots);
+ html("</td></tr>");
+}
+
void cgit_print_tag(char *revname)
@@ -78,2 +86,4 @@ void cgit_print_tag(char *revname)
html("</td></tr>\n");
+ if (ctx.repo->snapshots)
+ print_download_links(revname);
html("</table>\n");
@@ -88,2 +98,4 @@ void cgit_print_tag(char *revname)
html("</td></tr>\n");
+ if (ctx.repo->snapshots)
+ print_download_links(revname);
html("</table>\n");