aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMarco Andronaco <andronacomarco@gmail.com>2024-07-05 16:32:34 +0000
committerGitHub <noreply@github.com>2024-07-05 22:02:34 +0530
commit8a0ebe220af6aa7e7138def83b7cd2ebbc8418b2 (patch)
treec329f1ae18eac56ca2df6daeaaef39d9c9e8695b /templates
parenttemplates: Add link to tar gz handler endpoint (diff)
downloadlegitrx-8a0ebe220af6aa7e7138def83b7cd2ebbc8418b2.tar.gz
legitrx-8a0ebe220af6aa7e7138def83b7cd2ebbc8418b2.tar.zst
legitrx-8a0ebe220af6aa7e7138def83b7cd2ebbc8418b2.zip
git: hide .git extension
Diffstat (limited to 'templates')
-rw-r--r--templates/index.html2
-rw-r--r--templates/repo-header.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/index.html b/templates/index.html
index 80c9e1d..7a77aec 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -10,7 +10,7 @@
<main>
<div class="index">
{{ range .info }}
- <div class="index-name"><a href="/{{ .Name }}">{{ .Name }}</a></div>
+ <div class="index-name"><a href="/{{ .Name }}">{{ .DisplayName }}</a></div>
<div class="desc">{{ .Desc }}</div>
<div>{{ .Idle }}</div>
{{ end }}
diff --git a/templates/repo-header.html b/templates/repo-header.html
index f358278..0420da7 100644
--- a/templates/repo-header.html
+++ b/templates/repo-header.html
@@ -2,7 +2,7 @@
<header>
<h2>
<a href="/">all repos</a>
- &mdash; {{ .name }}
+ &mdash; {{ .displayname }}
{{ if .ref }}
<span class="ref">@ {{ .ref }}</span>
{{ end }}