2022-08-26 22:19:40 +05:30
|
|
|
<div class="ui dropdown tiny basic button icon-button tooltip" data-content="{{.locale.Tr "repo.diff.whitespace_button"}}">
|
|
|
|
{{svg "gitea-whitespace"}}
|
2020-11-01 03:45:11 +05:30
|
|
|
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
|
2018-08-14 23:19:33 +05:30
|
|
|
<div class="menu">
|
2022-02-08 11:45:04 +05:30
|
|
|
<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>
|
2022-06-28 02:28:46 +05:30
|
|
|
{{.locale.Tr "repo.diff.whitespace_show_everything"}}
|
2018-08-14 23:19:33 +05:30
|
|
|
</a>
|
|
|
|
<a class="item" href="?style={{if .IsSplitStyle}}split{{else}}unified{{end}}&whitespace=ignore-all">
|
|
|
|
<i class="circle {{ if eq .WhitespaceBehavior "ignore-all" }}dot{{else}}outline{{end}} icon"></i>
|
2022-06-28 02:28:46 +05:30
|
|
|
{{.locale.Tr "repo.diff.whitespace_ignore_all_whitespace"}}
|
2018-08-14 23:19:33 +05:30
|
|
|
</a>
|
|
|
|
<a class="item" href="?style={{if .IsSplitStyle}}split{{else}}unified{{end}}&whitespace=ignore-change">
|
|
|
|
<i class="circle {{ if eq .WhitespaceBehavior "ignore-change" }}dot{{else}}outline{{end}} icon"></i>
|
2022-06-28 02:28:46 +05:30
|
|
|
{{.locale.Tr "repo.diff.whitespace_ignore_amount_changes"}}
|
2018-08-14 23:19:33 +05:30
|
|
|
</a>
|
|
|
|
<a class="item" href="?style={{if .IsSplitStyle}}split{{else}}unified{{end}}&whitespace=ignore-eol">
|
|
|
|
<i class="circle {{ if eq .WhitespaceBehavior "ignore-eol" }}dot{{else}}outline{{end}} icon"></i>
|
2022-06-28 02:28:46 +05:30
|
|
|
{{.locale.Tr "repo.diff.whitespace_ignore_at_eol"}}
|
2018-08-14 23:19:33 +05:30
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-08-26 22:19:40 +05:30
|
|
|
<a class="ui tiny basic toggle button icon-button tooltip" href="?style={{if .IsSplitStyle}}unified{{else}}split{{end}}&whitespace={{$.WhitespaceBehavior}}" data-content="{{if .IsSplitStyle}}{{.locale.Tr "repo.diff.show_unified_view"}}{{else}}{{.locale.Tr "repo.diff.show_split_view"}}{{end}}">{{if .IsSplitStyle}}{{svg "gitea-join"}}{{else}}{{svg "gitea-split"}}{{end}}</a>
|