summaryrefslogtreecommitdiffstats
path: root/templates/commit.html
diff options
context:
space:
mode:
authorLibravatar Anirudh Oppiliappan <x@icyphox.sh>2022-12-19 17:49:32 +0530
committerLibravatar Anirudh Oppiliappan <x@icyphox.sh>2022-12-19 17:49:48 +0530
commit2b9b2bdb1fb9a6c94859025ac1588faf4a5fbcdb (patch)
tree67e9fdaa352def9d2d2d6b7c2ddf70d3aaa09a93 /templates/commit.html
parentd1a2847a266f344911bb791d083b72529cf90c63 (diff)
downloadlegit-2b9b2bdb1fb9a6c94859025ac1588faf4a5fbcdb.tar.gz
legit-2b9b2bdb1fb9a6c94859025ac1588faf4a5fbcdb.tar.bz2
legit-2b9b2bdb1fb9a6c94859025ac1588faf4a5fbcdb.zip
css: add bg to readme/file content
Diffstat (limited to '')
-rw-r--r--templates/commit.html7
1 files changed, 5 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 -}}