diff options
author | Viktor Suprun <popsul1993@gmail.com> | 2022-02-08 17:15:04 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-08 14:15:04 +0800 |
commit | 4d939845d20d377e06bce5b02667ff21f69c3beb (patch) | |
tree | 3cfc0c54b5930a71c404961c26e7ae9e76060ffb /templates/repo | |
parent | 60f203385e6f27fae47f3cc8c5d71309f4fd88dc (diff) | |
download | gitea-4d939845d20d377e06bce5b02667ff21f69c3beb.tar.gz gitea-4d939845d20d377e06bce5b02667ff21f69c3beb.zip |
Added auto-save whitespace behavior if it changed manually (#15566)
Diffstat (limited to 'templates/repo')
-rw-r--r-- | templates/repo/diff/whitespace_dropdown.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/diff/whitespace_dropdown.tmpl b/templates/repo/diff/whitespace_dropdown.tmpl index 1e0e046925..7ea4238d6d 100644 --- a/templates/repo/diff/whitespace_dropdown.tmpl +++ b/templates/repo/diff/whitespace_dropdown.tmpl @@ -2,8 +2,8 @@ {{.i18n.Tr "repo.diff.whitespace_button"}} {{svg "octicon-triangle-down" 14 "dropdown icon"}} <div class="menu"> - <a class="item" href="?style={{if .IsSplitStyle}}split{{else}}unified{{end}}&whitespace="> - <i class="circle {{ if eq .WhitespaceBehavior "" }}dot{{else}}outline{{end}} icon"></i> + <a class="item" href="?style={{if .IsSplitStyle}}split{{else}}unified{{end}}&whitespace=show-all"> + <i class="circle {{ if eq .WhitespaceBehavior "show-all" }}dot{{else}}outline{{end}} icon"></i> {{.i18n.Tr "repo.diff.whitespace_show_everything"}} </a> <a class="item" href="?style={{if .IsSplitStyle}}split{{else}}unified{{end}}&whitespace=ignore-all"> |