summaryrefslogtreecommitdiffstats
path: root/templates/repo-header.html
diff options
context:
space:
mode:
authorLibravatar Anirudh Oppiliappan <x@icyphox.sh>2022-12-18 10:42:18 +0530
committerLibravatar Anirudh Oppiliappan <x@icyphox.sh>2022-12-18 10:42:18 +0530
commite4d12fc667c9830dd5f08f827b2a70adff58a09b (patch)
treec052c87caf09ddc785c1a86454aeee00dcfcf774 /templates/repo-header.html
parent3e6a720154b70a9882af14399548e494b1d0089f (diff)
downloadlegit-e4d12fc667c9830dd5f08f827b2a70adff58a09b.tar.gz
legit-e4d12fc667c9830dd5f08f827b2a70adff58a09b.tar.bz2
legit-e4d12fc667c9830dd5f08f827b2a70adff58a09b.zip
templates: unified repo-header
Diffstat (limited to '')
-rw-r--r--templates/repo-header.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/repo-header.html b/templates/repo-header.html
new file mode 100644
index 0000000..dd84875
--- /dev/null
+++ b/templates/repo-header.html
@@ -0,0 +1,12 @@
+{{ define "repoheader" }}
+<header>
+ <h2>
+ <a href="/">all repos</a>
+ &mdash; {{ .name }}
+ {{ if .ref }}
+ <span class="ref">@ {{ .ref }}</span>
+ {{ end }}
+ </h2>
+ <h3 class="desc">{{ .desc }}</h3>
+</header>
+{{ end }}