🏡 index : ~doyle/rgit.git

author Jordan Doyle <jordan@doyle.la> 2023-12-31 11:25:52.0 +00:00:00
committer Jordan Doyle <jordan@doyle.la> 2023-12-31 11:25:52.0 +00:00:00
commit
d964566b7d2c62adee90ca1d0dc22ef42bb4c50d [patch]
tree
9c800777102800b8c53f070acc9075d8571bfdc2
parent
6d1bab366bc5bcd89d7f6c126abbda7734b7fc8c
download
d964566b7d2c62adee90ca1d0dc22ef42bb4c50d.tar.gz

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(-)

diff --git a/templates/repo/commit.html b/templates/repo/commit.html
index 1b666c0..fc0d5e6 100644
--- a/templates/repo/commit.html
+++ a/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/tag.html b/templates/repo/tag.html
index bf55e8a..bbda0d6 100644
--- a/templates/repo/tag.html
+++ a/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>
diff --git a/templates/repo/macros/refs.html b/templates/repo/macros/refs.html
index 926eabf..705697f 100644
--- a/templates/repo/macros/refs.html
+++ a/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">