diff options
author | Anirudh Oppiliappan <x@icyphox.sh> | 2022-12-19 11:36:50 +0530 |
---|---|---|
committer | Anirudh Oppiliappan <x@icyphox.sh> | 2022-12-19 11:36:50 +0530 |
commit | a05244018ae02603c56a27f8f8b7006c0024f7ea (patch) | |
tree | f01ac8969e4914421c8b7b0e3b1cf9f9b2892546 /templates | |
parent | 8ba1a9609adef8575a91219ef35eef97daad8d32 (diff) | |
download | legit-a05244018ae02603c56a27f8f8b7006c0024f7ea.tar.gz legit-a05244018ae02603c56a27f8f8b7006c0024f7ea.tar.bz2 legit-a05244018ae02603c56a27f8f8b7006c0024f7ea.zip |
git: check for binary files
Diffstat (limited to '')
-rw-r--r-- | templates/commit.html | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/commit.html b/templates/commit.html index 1b4a8d9..b1b3cbc 100644 --- a/templates/commit.html +++ b/templates/commit.html @@ -55,7 +55,9 @@ <a href="/{{ $repo }}/blob/{{ $this }}/{{ .Name.New }}">{{ .Name.New }}</a> {{- end -}} </div> - + {{ if .IsBinary }} + <p>Not showing binary file.</p> + {{ else }} <pre> {{- range .TextFragments -}} <p>{{- .Header -}}</p> @@ -71,6 +73,7 @@ {{- end -}} {{- end -}} {{- end -}} + {{- end -}} </pre> </div> {{ end }} |