aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorsillyguodong <33891828+sillyguodong@users.noreply.github.com>2023-04-09 21:11:02 +0800
committerGitHub <noreply@github.com>2023-04-09 21:11:02 +0800
commitbedad23f9e043072bd6f260bff07919588e45e65 (patch)
tree42d4facdc99982a61af7b6cf07a05a61c5417b57 /templates
parentf2b98d825978670f365bb754e65f44124ce4e658 (diff)
downloadgitea-bedad23f9e043072bd6f260bff07919588e45e65.tar.gz
gitea-bedad23f9e043072bd6f260bff07919588e45e65.zip
Expand/Collapse all changed files (#23639)
close #23628 Now in `...` dropdown, you can expand or collapse all diff files that have loaded. https://user-images.githubusercontent.com/33891828/227749688-2d406916-3347-49f6-93a5-4092a00e8809.mov Co-authored-by: silverwind <me@silverwind.io>
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/diff/options_dropdown.tmpl2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/repo/diff/options_dropdown.tmpl b/templates/repo/diff/options_dropdown.tmpl
index 93e1183d1b..ced0e06046 100644
--- a/templates/repo/diff/options_dropdown.tmpl
+++ b/templates/repo/diff/options_dropdown.tmpl
@@ -12,5 +12,7 @@
<a class="item" href="{{$.RepoLink}}/commit/{{PathEscape .Commit.ID.String}}.patch" download="{{ShortSha .Commit.ID.String}}.patch">{{.locale.Tr "repo.diff.download_patch"}}</a>
<a class="item" href="{{$.RepoLink}}/commit/{{PathEscape .Commit.ID.String}}.diff" download="{{ShortSha .Commit.ID.String}}.diff">{{.locale.Tr "repo.diff.download_diff"}}</a>
{{end}}
+ <a id="expand-files-btn" class="item">{{.locale.Tr "repo.pulls.expand_files"}}</a>
+ <a id="collapse-files-btn"class="item">{{.locale.Tr "repo.pulls.collapse_files"}}</a>
</div>
</div>