2022-08-27 01:49:40 +09:00
|
|
|
<div class="ui dropdown tiny basic button icon-button tooltip" data-content="{{.locale.Tr "repo.diff.whitespace_button"}}">
|
|
|
|
{{svg "gitea-whitespace"}}
|
2020-11-01 07:15:11 +09:00
|
|
|
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
|
2018-08-15 02:49:33 +09:00
|
|
|
<div class="menu">
|
2022-02-08 15:15:04 +09:00
|
|
|
<a class="item" href="?style={{if .IsSplitStyle}}split{{else}}unified{{end}}&whitespace=show-all">
|
2022-09-25 23:01:05 +09:00
|
|
|
<label class="pointer-events-none">
|
|
|
|
<input class="mr-3 pointer-events-none" type="radio"{{if eq .WhitespaceBehavior "show-all"}} checked{{end}}>
|
|
|
|
{{.locale.Tr "repo.diff.whitespace_show_everything"}}
|
|
|
|
</label>
|
2018-08-15 02:49:33 +09:00
|
|
|
</a>
|
|
|
|
<a class="item" href="?style={{if .IsSplitStyle}}split{{else}}unified{{end}}&whitespace=ignore-all">
|
2022-09-25 23:01:05 +09:00
|
|
|
<label class="pointer-events-none">
|
|
|
|
<input class="mr-3 pointer-events-none" type="radio"{{if eq .WhitespaceBehavior "ignore-all"}} checked{{end}}>
|
|
|
|
{{.locale.Tr "repo.diff.whitespace_ignore_all_whitespace"}}
|
|
|
|
<label>
|
2018-08-15 02:49:33 +09:00
|
|
|
</a>
|
|
|
|
<a class="item" href="?style={{if .IsSplitStyle}}split{{else}}unified{{end}}&whitespace=ignore-change">
|
2022-09-25 23:01:05 +09:00
|
|
|
<label class="pointer-events-none">
|
|
|
|
<input class="mr-3 pointer-events-none" type="radio"{{if eq .WhitespaceBehavior "ignore-change"}} checked{{end}}>
|
|
|
|
{{.locale.Tr "repo.diff.whitespace_ignore_amount_changes"}}
|
|
|
|
</label>
|
2018-08-15 02:49:33 +09:00
|
|
|
</a>
|
|
|
|
<a class="item" href="?style={{if .IsSplitStyle}}split{{else}}unified{{end}}&whitespace=ignore-eol">
|
2022-09-25 23:01:05 +09:00
|
|
|
<label class="pointer-events-none">
|
|
|
|
<input class="mr-3 pointer-events-none" type="radio"{{if eq .WhitespaceBehavior "ignore-eol"}} checked{{end}}>
|
|
|
|
{{.locale.Tr "repo.diff.whitespace_ignore_at_eol"}}
|
|
|
|
</label>
|
2018-08-15 02:49:33 +09:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-08-27 01:49:40 +09:00
|
|
|
<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>
|