+ "<th class='left' colspan='2'>Age</th></tr>\n");
+}
+
+static void print_tag_downloads(const struct cgit_repo *repo, const char *ref)
+{
+ const struct cgit_snapshot_format* f;
+ const char *basename;
+ struct strbuf filename = STRBUF_INIT;
+ size_t prefixlen;
+
+ if (!ref || strlen(ref) < 1)
+ return;
+
+ basename = cgit_repobasename(repo->url);
+ if (starts_with(ref, basename))
+ strbuf_addstr(&filename, ref);
+ else
+ cgit_compose_snapshot_prefix(&filename, basename, ref);
+ prefixlen = filename.len;
+ for (f = cgit_snapshot_formats; f->suffix; f++) {
+ if (!(repo->snapshots & f->bit))
+ continue;
+ strbuf_setlen(&filename, prefixlen);
+ strbuf_addstr(&filename, f->suffix);
+ cgit_snapshot_link(filename.buf, NULL, NULL, NULL, NULL, filename.buf);
+ html(" ");
+ }
+
+ strbuf_release(&filename);