Fix missing download link on tags table
Diff
templates/repo/commit.html | 4 ++--
templates/repo/tag.html | 4 ++--
templates/repo/macros/refs.html | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
@@ -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>
@@ -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>
@@ -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">