Skip to content

Commit

Permalink
Fix missing download link on tags table
Browse files Browse the repository at this point in the history
  • Loading branch information
w4 committed Dec 31, 2023
1 parent 6d1bab3 commit d964566
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions templates/repo/commit.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion templates/repo/macros/refs.html
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down
4 changes: 2 additions & 2 deletions templates/repo/tag.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit d964566

Please sign in to comment.