diff options
author | Loutro <loutro@gandev.com> | 2021-05-04 14:58:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-04 13:58:49 +0100 |
commit | 34b21625c2e7fc78e16d2ab99e07302d769ddc6d (patch) | |
tree | c63126b7d9c98f3aa0390e2b933bd42c80759e53 /templates/repo/diff | |
parent | 1cd301796c23153a398acc1049428b1b1fb4354a (diff) | |
download | gitea-34b21625c2e7fc78e16d2ab99e07302d769ddc6d.tar.gz gitea-34b21625c2e7fc78e16d2ab99e07302d769ddc6d.zip |
Display specific message if diff is not displayed because of too long line (#15611)
* 7184- message if line too long
* Update options/locale/locale_en-US.ini
Co-authored-by: silverwind <me@silverwind.io>
* add flag on missing cases
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'templates/repo/diff')
-rw-r--r-- | templates/repo/diff/box.tmpl | 8 |
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}} |