feat: add toggling display of extra links on the index
Diff
statics/sass/style.scss | 5 +++++
templates/index.html | 10 ++++++++++
2 files changed, 15 insertions(+)
@@ -99,3 +99,8 @@ a {
text-decoration: underline;
}
}
.index-link {
font-size: 80%;
padding: 0em 0.5em;
}
@@ -11,6 +11,9 @@
<th>Owner</th>
{% endif %}
<th>Idle</th>
{% if config.enable_index_links %}
<th>Links</th>
{% endif %}
</tr>
</thead>
@@ -53,6 +56,13 @@
</time>
</a>
</td>
{% if config.enable_index_links %}
<td>
<a class="index-link" href="{% if let Some(path) = path %}{{ path }}/{% endif %}{{ repository.name }}">summary</a>
<a class="index-link" href="{% if let Some(path) = path %}{{ path }}/{% endif %}{{ repository.name }}/log">log</a>
<a class="index-link" href="{% if let Some(path) = path %}{{ path }}/{% endif %}{{ repository.name }}/tree">tree</a>
</td>
{% endif %}
</tr>
{%- endfor -%}
{%- endfor %}