index : sparkle-git.git

ascending towards madness

author holly sparkles <sparkles@holly.sh> 2023-12-08 19:36:10.0 +00:00:00
committer holly sparkles <sparkles@holly.sh> 2024-05-14 6:40:09.0 +00:00:00
commit
d7fad0790306d667f591912870282a26c5212612 [patch]
tree
898378973ac2f014f4ff85f3951f0a313530a403
parent
129083b88fe66facf8ec30c25b69db35de2fbb2d
download
d7fad0790306d667f591912870282a26c5212612.tar.gz

feat: add toggling display of owner column on the index



Diff

 templates/index.html | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/templates/index.html b/templates/index.html
index 8dc7bc5..bab4878 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -7,7 +7,9 @@
        <tr>
            <th>Name</th>
            <th>Description</th>
            {% if config.enable_index_owner %}
            <th>Owner</th>
            {% endif %}
            <th>Idle</th>
        </tr>
        </thead>
@@ -35,6 +37,7 @@
                        {%- endif -%}
                    </a>
                </td>
                {% if config.enable_index_owner %}
                <td>
                    <a href="/{% if let Some(path) = path %}{{ path }}/{% endif %}{{ repository.name }}">
                        {%- if let Some(owner) = repository.owner -%}
@@ -42,6 +45,7 @@
                        {%- endif -%}
                    </a>
                </td>
                {% endif %}
                <td>
                    <a href="/{% if let Some(path) = path %}{{ path }}/{% endif %}{{ repository.name }}">
                        <time datetime="{{ repository.last_modified|format_time }}" title="{{ repository.last_modified|format_time }}">