aboutsummaryrefslogtreecommitdiff
path: root/templates/repo-header.html
diff options
context:
space:
mode:
authorAnirudh Oppiliappan <x@icyphox.sh>2022-12-18 10:42:18 +0530
committerAnirudh Oppiliappan <x@icyphox.sh>2022-12-18 10:42:18 +0530
commite4d12fc667c9830dd5f08f827b2a70adff58a09b (patch)
treec052c87caf09ddc785c1a86454aeee00dcfcf774 /templates/repo-header.html
parentgit, templates: diff view (diff)
downloadlegitrx-e4d12fc667c9830dd5f08f827b2a70adff58a09b.tar.gz
legitrx-e4d12fc667c9830dd5f08f827b2a70adff58a09b.tar.zst
legitrx-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 }}