Unified · Split
| @@ -30,6 +30,14 @@ static void print_tag_content(char *buf) · 29 unmodified lines | ||
| 30 | 30 | } |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | +void print_download_links(char *revname) | |
| 34 | +{ | |
| 35 | + html("<tr><th>download</th><td class='sha1'>"); | |
| 36 | + cgit_print_snapshot_links(ctx.qry.repo, ctx.qry.head, | |
| 37 | + revname, ctx.repo->snapshots); | |
| 38 | + html("</td></tr>"); | |
| 39 | +} | |
| 40 | + | |
| 33 | 41 | void cgit_print_tag(char *revname) |
| 34 | 42 | { |
| 35 | 43 | unsigned char sha1[20]; |
| @@ -76,6 +84,8 @@ void cgit_print_tag(char *revname) · 40 unmodified lines | ||
| 76 | 84 | html("<tr><td>Tagged object</td><td>"); |
| 77 | 85 | cgit_object_link(tag->tagged); |
| 78 | 86 | html("</td></tr>\n"); |
| 87 | + if (ctx.repo->snapshots) | |
| 88 | + print_download_links(revname); | |
| 79 | 89 | html("</table>\n"); |
| 80 | 90 | print_tag_content(info->msg); |
| 81 | 91 | } else { |
| @@ -86,6 +96,8 @@ void cgit_print_tag(char *revname) · 4 unmodified lines | ||
| 86 | 96 | html("<tr><td>Tagged object</td><td>"); |
| 87 | 97 | cgit_object_link(obj); |
| 88 | 98 | html("</td></tr>\n"); |
| 99 | + if (ctx.repo->snapshots) | |
| 100 | + print_download_links(revname); | |
| 89 | 101 | html("</table>\n"); |
| 90 | 102 | } |
| 91 | 103 | return; |