aboutsummaryrefslogtreecommitdiff
path: root/templates/commit.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/commit.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/commit.html7
1 files changed, 3 insertions, 4 deletions
diff --git a/templates/commit.html b/templates/commit.html
index b4061aa..9ab945a 100644
--- a/templates/commit.html
+++ b/templates/commit.html
@@ -2,10 +2,7 @@
<html>
{{ template "head" . }}
- <header>
- <h1>{{ .meta.Title }}</h1>
- <h2>{{ .meta.Description }}</h2>
- </header>
+ {{ template "repoheader" . }}
<body>
{{ template "nav" . }}
<main>
@@ -19,9 +16,11 @@
{{ .commit.This }}
</a>
</p>
+ {{ if .commit.Parent }}
<p>parent: <a href="/{{ .name }}/commit/{{ .commit.Parent }}">
{{ .commit.Parent }}
</a>
+ {{ end }}
</p>
<div class="diff-stat">
<div>