File tree 4 files changed +16
-3
lines changed
docs/content/doc/features
4 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ _Symbols used in table:_
105
105
| Revert specific commits or a merge request | [ ✘] ( https://github.com/go-gitea/gitea/issues/5158 ) | ✘ | ✓ | ✓ | ✓ | ✓ | ✘ |
106
106
| Pull/Merge requests templates | ✓ | ✓ | ✓ | ✓ | ✓ | ✘ | ✘ |
107
107
| Cherry-picking changes | [ ✘] ( https://github.com/go-gitea/gitea/issues/5158 ) | ✘ | ✘ | ✓ | ✓ | ✘ | ✘ |
108
+ | Download Patch | ✓ | ✘ | ✓ | ✓ | ✓ | [ /] ( https://jira.atlassian.com/plugins/servlet/mobile#issue/BCLOUD-8323 ) | ✘ |
108
109
109
110
110
111
#### 3rd-party integrations
Original file line number Diff line number Diff line change @@ -1370,7 +1370,10 @@ diff.parent = parent
1370
1370
diff.commit = commit
1371
1371
diff.git-notes = Notes
1372
1372
diff.data_not_available = Diff Content Not Available
1373
- diff.show_diff_stats = Show Diff Stats
1373
+ diff.options_button = Diff Options
1374
+ diff.show_diff_stats = Show Stats
1375
+ diff.download_patch = Download Patch File
1376
+ diff.download_diff = Download Diff File
1374
1377
diff.show_split_view = Split View
1375
1378
diff.show_unified_view = Unified View
1376
1379
diff.whitespace_button = Whitespace
Original file line number Diff line number Diff line change 7
7
{{else}}
8
8
<a class="ui tiny basic toggle button" href="?style={{if .IsSplitStyle}}unified{{else}}split{{end}}">{{ if .IsSplitStyle }}{{.i18n.Tr "repo.diff.show_unified_view"}}{{else}}{{.i18n.Tr "repo.diff.show_split_view"}}{{end}}</a>
9
9
{{end}}
10
- <a class="ui tiny basic toggle button" data-target="#diff-files">{{.i18n.Tr "repo. diff.show_diff_stats"}}</a>
10
+ {{template "repo/ diff/options_dropdown" .}}
11
11
{{if and .PageIsPullFiles $.SignedUserID (not .IsArchived)}}
12
12
{{template "repo/diff/new_review" .}}
13
13
{{end}}
26
26
{{else}}
27
27
<a class="ui tiny basic toggle button" href="?style={{if .IsSplitStyle}}unified{{else}}split{{end}}">{{ if .IsSplitStyle }}{{.i18n.Tr "repo.diff.show_unified_view"}}{{else}}{{.i18n.Tr "repo.diff.show_split_view"}}{{end}}</a>
28
28
{{end}}
29
- <a class="ui tiny basic toggle button" data-target="#diff-files">{{.i18n.Tr "repo. diff.show_diff_stats"}}</a>
29
+ {{template "repo/ diff/options_dropdown" .}}
30
30
{{if and .PageIsPullFiles $.SignedUserID (not .IsArchived)}}
31
31
{{template "repo/diff/new_review" .}}
32
32
{{end}}
Original file line number Diff line number Diff line change
1
+ <div class="ui dropdown tiny button">
2
+ {{.i18n.Tr "repo.diff.options_button"}}
3
+ <i class="dropdown icon"></i>
4
+ <div class="menu">
5
+ <a class="item tiny basic toggle button" data-target="#diff-files">{{.i18n.Tr "repo.diff.show_diff_stats"}}</a>
6
+ <a class="item" href="{{$.RepoLink}}/pulls/{{.Issue.Index}}.patch" download="{{.Issue.Index}}.patch">{{.i18n.Tr "repo.diff.download_patch"}}</a>
7
+ <a class="item" href="{{$.RepoLink}}/pulls/{{.Issue.Index}}.diff" download="{{.Issue.Index}}.diff">{{.i18n.Tr "repo.diff.download_diff"}}</a>
8
+ </div>
9
+ </div>
You can’t perform that action at this time.
0 commit comments