summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/diff/box.tmpl8
1 files changed, 7 insertions, 1 deletions
diff --git a/templates/repo/diff/box.tmpl b/templates/repo/diff/box.tmpl
index 4408d52575..9a2f7bdd7f 100644
--- a/templates/repo/diff/box.tmpl
+++ b/templates/repo/diff/box.tmpl
@@ -53,7 +53,13 @@
</div>
<span class="file mono">{{$file.Name}}</span>
<div class="diff-file-header-actions df ac">
- <div class="text grey">{{$.i18n.Tr "repo.diff.file_suppressed"}}</div>
+ <div class="text grey">
+ {{if $file.IsIncompleteLineTooLong}}
+ {{$.i18n.Tr "repo.diff.file_suppressed_line_too_long"}}
+ {{else}}
+ {{$.i18n.Tr "repo.diff.file_suppressed"}}
+ {{end}}
+ </div>
{{if $file.IsProtected}}
<span class="ui basic label">{{$.i18n.Tr "repo.diff.protected"}}</span>
{{end}}