diff options
author | zeripath <art27@cantab.net> | 2021-11-21 16:51:08 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-22 00:51:08 +0800 |
commit | 8511eec4d447499e37c1c3fbe3b1f9353ce36190 (patch) | |
tree | 2320539c50d2813906d0635b9dbe4b2ba19aadd8 /templates/repo/diff | |
parent | d710af6669654f27f02b69d7ef1ba563e7d58a90 (diff) | |
download | gitea-8511eec4d447499e37c1c3fbe3b1f9353ce36190.tar.gz gitea-8511eec4d447499e37c1c3fbe3b1f9353ce36190.zip |
Allow Loading of Diffs that are too large (#17739)
* Allow Loading of Diffs that are too large
This PR allows the loading of diffs that are suppressed because the file
is too large. It does not handle diffs of files which have lines which
are too long.
Fix #17738
Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'templates/repo/diff')
-rw-r--r-- | templates/repo/diff/box.tmpl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/templates/repo/diff/box.tmpl b/templates/repo/diff/box.tmpl index 2d910c924b..3ab7a11bbd 100644 --- a/templates/repo/diff/box.tmpl +++ b/templates/repo/diff/box.tmpl @@ -112,6 +112,7 @@ {{$.i18n.Tr "repo.diff.file_suppressed_line_too_long"}} {{else}} {{$.i18n.Tr "repo.diff.file_suppressed"}} + <a class="ui basic tiny button diff-show-more-button" data-href="{{$.Link}}?file-only=true&files={{$file.Name}}&files={{$file.OldName}}">{{$.i18n.Tr "repo.diff.load"}}</a> {{end}} {{else}} {{$.i18n.Tr "repo.diff.bin_not_shown"}} |