2023-03-24 16:05:38 +05:30
|
|
|
<div class="ui dropdown tiny basic button icon-button" data-tooltip-content="{{.locale.Tr "repo.diff.whitespace_button"}}">
|
2022-08-26 22:19:40 +05:30
|
|
|
{{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">
|
2023-02-13 23:29:59 +05:30
|
|
|
<label class="gt-pointer-events-none">
|
|
|
|
<input class="gt-mr-3 gt-pointer-events-none" type="radio"{{if eq .WhitespaceBehavior "show-all"}} checked{{end}}>
|
2022-09-25 19:31:05 +05:30
|
|
|
{{.locale.Tr "repo.diff.whitespace_show_everything"}}
|
|
|
|
</label>
|
2018-08-14 23:19:33 +05:30
|
|
|
</a>
|
|
|
|
<a class="item" href="?style={{if .IsSplitStyle}}split{{else}}unified{{end}}&whitespace=ignore-all">
|
2023-02-13 23:29:59 +05:30
|
|
|
<label class="gt-pointer-events-none">
|
|
|
|
<input class="gt-mr-3 gt-pointer-events-none" type="radio"{{if eq .WhitespaceBehavior "ignore-all"}} checked{{end}}>
|
2022-09-25 19:31:05 +05:30
|
|
|
{{.locale.Tr "repo.diff.whitespace_ignore_all_whitespace"}}
|
|
|
|
<label>
|
2018-08-14 23:19:33 +05:30
|
|
|
</a>
|
|
|
|
<a class="item" href="?style={{if .IsSplitStyle}}split{{else}}unified{{end}}&whitespace=ignore-change">
|
2023-02-13 23:29:59 +05:30
|
|
|
<label class="gt-pointer-events-none">
|
|
|
|
<input class="gt-mr-3 gt-pointer-events-none" type="radio"{{if eq .WhitespaceBehavior "ignore-change"}} checked{{end}}>
|
2022-09-25 19:31:05 +05:30
|
|
|
{{.locale.Tr "repo.diff.whitespace_ignore_amount_changes"}}
|
|
|
|
</label>
|
2018-08-14 23:19:33 +05:30
|
|
|
</a>
|
|
|
|
<a class="item" href="?style={{if .IsSplitStyle}}split{{else}}unified{{end}}&whitespace=ignore-eol">
|
2023-02-13 23:29:59 +05:30
|
|
|
<label class="gt-pointer-events-none">
|
|
|
|
<input class="gt-mr-3 gt-pointer-events-none" type="radio"{{if eq .WhitespaceBehavior "ignore-eol"}} checked{{end}}>
|
2022-09-25 19:31:05 +05:30
|
|
|
{{.locale.Tr "repo.diff.whitespace_ignore_at_eol"}}
|
|
|
|
</label>
|
2018-08-14 23:19:33 +05:30
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-03-24 16:05:38 +05:30
|
|
|
<a class="ui tiny basic toggle button icon-button" href="?style={{if .IsSplitStyle}}unified{{else}}split{{end}}&whitespace={{$.WhitespaceBehavior}}" data-tooltip-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>
|