mygit

[UNMAINTAINED] A cgit/webgit alternative, written in Rust
Log | Files | Refs | README | LICENSE

commit f2aa650f78369db1e291e90ea5dab773dcd9ee7b
parent a1b80af7a547071461f6b407c04dc040da10f211
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Mon, 22 Mar 2021 18:25:57 -0700

Update title for tree page

Diffstat:
Mtemplates/tree.html | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/templates/tree.html b/templates/tree.html @@ -3,7 +3,11 @@ {% block content %} {% include "repo-navbar.html" %} <div> + {% if path.to_string_lossy() != "" %} + <h3>{{path.to_string_lossy()}}/@<a href="/{{repo|repo_name|urlencode_strict}}/tree/{{spec}}">{{spec}}<a></h3> + {% else %} <h3>{{ spec }}</h3> + {% endif %} <table> {% for entry in tree %} <tr>