diff options
author | vnkmpf <tz@zztt.eu> | 2021-02-13 05:35:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-13 05:35:43 +0100 |
commit | 487f2ee41cb06f0173b8bf12bd6a78408c75fabf (patch) | |
tree | ac62859884ed23f05d6e15bbc25bea6f0b374554 /templates | |
parent | a3cc842e15eb5ed42c3125410d9c774314a286a5 (diff) | |
download | gitea-487f2ee41cb06f0173b8bf12bd6a78408c75fabf.tar.gz gitea-487f2ee41cb06f0173b8bf12bd6a78408c75fabf.zip |
Whitespace in commits (#14650)
* Add whitespace to commit view
* Add whitespace to /compare/a...b
* Move repeated whitespaceFlags to gitdiff
* Add whitespace for wiki pages
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/diff/box.tmpl | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/templates/repo/diff/box.tmpl b/templates/repo/diff/box.tmpl index 5110129b8d..f93dac9b4d 100644 --- a/templates/repo/diff/box.tmpl +++ b/templates/repo/diff/box.tmpl @@ -2,11 +2,7 @@ <div class="diff-detail-box diff-box sticky"> <div> <div class="ui right"> - {{if .PageIsPullFiles}} - {{template "repo/diff/whitespace_dropdown" .}} - {{else}} - <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> - {{end}} + {{template "repo/diff/whitespace_dropdown" .}} {{template "repo/diff/options_dropdown" .}} {{if and .PageIsPullFiles $.SignedUserID (not .IsArchived)}} {{template "repo/diff/new_review" .}} @@ -22,11 +18,7 @@ {{svg "octicon-diff" 16 "mr-2"}}{{.i18n.Tr "repo.diff.stats_desc" .Diff.NumFiles .Diff.TotalAddition .Diff.TotalDeletion | Str2html}} </div> <div class="diff-detail-actions df ac"> - {{if .PageIsPullFiles}} - {{template "repo/diff/whitespace_dropdown" .}} - {{else}} - <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> - {{end}} + {{template "repo/diff/whitespace_dropdown" .}} {{template "repo/diff/options_dropdown" .}} {{if and .PageIsPullFiles $.SignedUserID (not .IsArchived)}} {{template "repo/diff/new_review" .}} |