]> source.dussan.org Git - gitea.git/commit
Add buttons to allow loading of incomplete diffs (#16829)
authorzeripath <art27@cantab.net>
Fri, 15 Oct 2021 16:05:33 +0000 (17:05 +0100)
committerGitHub <noreply@github.com>
Fri, 15 Oct 2021 16:05:33 +0000 (17:05 +0100)
commita889d0cc8c70431d43a9e46a6cf859f7b490aeb3
treeaa1f734e2e6442d8f4c41233ac542b40e665a29d
parentbdfd751af88c5bdb70dbdfb4f7f607f6fbf77896
Add buttons to allow loading of incomplete diffs (#16829)

This PR adds two buttons to the stats and the end of the diffs list to load the (some of) the remaining incomplete diff sections.

Contains #16775

Signed-off-by: Andrew Thornton <art27@cantab.net>
## Screenshots

### Show more button at the end of the diff
![Screenshot from 2021-09-04 11-12-37](https://user-images.githubusercontent.com/1824502/132091009-b1f6113e-2c04-4be5-8a04-b8ecea56887b.png)

### Show more button at the end of the diff stats box
![Screenshot from 2021-09-04 11-14-54](https://user-images.githubusercontent.com/1824502/132091063-86da5a6d-6628-4b82-bea9-3655cd9f40f6.png)
12 files changed:
modules/git/repo_compare.go
options/locale/locale_en-US.ini
routers/api/v1/repo/pull.go
routers/web/repo/commit.go
routers/web/repo/compare.go
routers/web/repo/pull.go
services/gitdiff/gitdiff.go
services/gitdiff/gitdiff_test.go
services/pull/pull.go
templates/repo/diff/box.tmpl
web_src/js/features/diff.js [new file with mode: 0644]
web_src/js/index.js