diff --git a/templates/repo/commit.html b/templates/repo/commit.html
@@ -36,8 +36,8 @@
</tr>
{%- endfor %}
<tr>
- <th>download (tar.gz)</th>
- <td colspan="2"><pre><a href="/{{ repo.display() }}/snapshot?{% if let Some(id) = id %}id={{ id }}{% else %}h={{ dl_branch }}{% endif %}">{{ id.as_deref().unwrap_or(dl_branch.as_ref()) }}</a></pre></td>
+ <th>download</th>
+ <td colspan="2"><pre><a href="/{{ repo.display() }}/snapshot?{% if let Some(id) = id %}id={{ id }}{% else %}h={{ dl_branch }}{% endif %}">{{ id.as_deref().unwrap_or(dl_branch.as_ref()) }}.tar.gz</a></pre></td>
</tr>
</tbody>
</table>
diff --git a/templates/repo/macros/refs.html b/templates/repo/macros/refs.html
@@ -41,7 +41,7 @@
{% for (name, tag) in tags -%}
<tr>
<td><a href="/{{ repo.display() }}/tag/?h={{ name }}">{{- name -}}</a></td>
- <td></td>
+ <td><a href="/{{ repo.display() }}/snapshot?h={{ name }}">{{- name -}}.tar.gz</a></td>
<td>
{% if let Some(tagger) = tag.get().tagger -%}
<img src="https://www.gravatar.com/avatar/{{ tagger.email|md5 }}?s=13&d=retro" width="13" height="13">
diff --git a/templates/repo/tag.html b/templates/repo/tag.html
@@ -32,8 +32,8 @@
</tr>
{% endif %}
<tr>
- <th>download (tar.gz)</th>
- <td colspan="2"><pre><a href="/{{ repo.display() }}/snapshot?h={{ tag.name }}">{{ tag.name }}</a></pre></td>
+ <th>download</th>
+ <td colspan="2"><pre><a href="/{{ repo.display() }}/snapshot?h={{ tag.name }}">{{ tag.name }}.tar.gz</a></pre></td>
</tr>
</tbody>
</table>