summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--templates/commit.html7
-rw-r--r--templates/file.html1
2 files changed, 6 insertions, 2 deletions
diff --git a/templates/commit.html b/templates/commit.html
index b1b3cbc..65803b7 100644
--- a/templates/commit.html
+++ b/templates/commit.html
@@ -49,8 +49,11 @@
<div class="diff">
<div id="{{ .Name.New }}">
{{ if .Name.Old }}
- <a href="/{{ $repo }}/blob/{{ $this }}/{{ .Name.Old }}">{{ .Name.Old }}</a> &#8594;
- <a href="/{{ $repo }}/blob/{{ $this }}/{{ .Name.New }}">{{ .Name.New }}</a>
+ <a href="/{{ $repo }}/blob/{{ $this }}/{{ .Name.Old }}">{{ .Name.Old }}</a>
+ {{ if .Name.New }}
+ &#8594;
+ <a href="/{{ $repo }}/blob/{{ $this }}/{{ .Name.New }}">{{ .Name.New }}</a>
+ {{ end }}
{{ else }}
<a href="/{{ $repo }}/blob/{{ $this }}/{{ .Name.New }}">{{ .Name.New }}</a>
{{- end -}}
diff --git a/templates/file.html b/templates/file.html
index a4485f3..f231969 100644
--- a/templates/file.html
+++ b/templates/file.html
@@ -7,6 +7,7 @@
<body>
{{ template "nav" . }}
<main>
+ <p>{{ .path }}</p>
<div class="file-wrapper">
<div class="line-numbers">
{{- range .linecount }}