summaryrefslogtreecommitdiffstats
path: root/templates/commit.html
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--templates/commit.html5
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 }}