🏡 index : ~doyle/rgit.git

author Jordan Doyle <jordan@doyle.la> 2022-07-23 15:32:46.0 +01:00:00
committer Jordan Doyle <jordan@doyle.la> 2022-07-23 15:32:46.0 +01:00:00
commit
3f70e703d2ea61fe9cecce05f3e593809a897fe4 [patch]
tree
715e2e701fac583a084f0ced9dfb8812cdef8e43
parent
de277834e3dfc4cf21a4758dc3082cfa39d405e5
download
3f70e703d2ea61fe9cecce05f3e593809a897fe4.tar.gz

Cleanup commit table on summary



Diff

 templates/repo/log.html         | 2 +-
 templates/repo/summary.html     | 2 +-
 templates/repo/macros/refs.html | 6 +-----
 3 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/templates/repo/log.html b/templates/repo/log.html
index 12ca23c..e96eb5c 100644
--- a/templates/repo/log.html
+++ a/templates/repo/log.html
@@ -5,7 +5,7 @@

{% block content %}
<table class="repositories">
    {% call refs::commit_table(commits, false) %}
    {% call refs::commit_table(commits) %}
</table>

{% if let Some(next_offset) = next_offset %}
diff --git a/templates/repo/summary.html b/templates/repo/summary.html
index f0951e4..adbde6b 100644
--- a/templates/repo/summary.html
+++ a/templates/repo/summary.html
@@ -49,7 +49,7 @@
    </tr>
    </tbody>

    {% call refs::commit_table(commit_list.iter().take(10), true) %}
    {% call refs::commit_table(commit_list.iter().take(10)) %}
    {% if commit_list.len() > 10 %}
    <tbody>
    <tr class="no-background">
diff --git a/templates/repo/macros/refs.html b/templates/repo/macros/refs.html
index 316ddcd..5ae7403 100644
--- a/templates/repo/macros/refs.html
+++ a/templates/repo/macros/refs.html
@@ -60,7 +60,7 @@
</thead>
{% endmacro %}

{% macro commit_table(commits, with_extras) %}
{% macro commit_table(commits) %}
<thead>
<tr>
    <th>Age</th>
@@ -82,10 +82,6 @@
        <img src="https://www.gravatar.com/avatar/{{ commit.author.email|md5 }}?s=13&d=retro" width="13" height="13">
        {{ commit.author.name }}
    </td>

    {% if with_extras %}
    <td></td>
    {% endif %}
</tr>
{% endfor %}
</tbody>