2023-09-25 17:56:50 +09:00
|
|
|
<div class="ui dropdown tiny basic button" data-tooltip-content="{{ctx.Locale.Tr "repo.diff.whitespace_button"}}">
|
2022-08-27 01:49:40 +09:00
|
|
|
{{svg "gitea-whitespace"}}
|
2018-08-15 02:49:33 +09:00
|
|
|
<div class="menu">
|
2023-06-22 01:08:12 +09:00
|
|
|
<a class="item" href="?style={{if .IsSplitStyle}}split{{else}}unified{{end}}&whitespace=show-all&show-outdated={{$.ShowOutdatedComments}}">
|
2023-02-14 02:59:59 +09:00
|
|
|
<label class="gt-pointer-events-none">
|
|
|
|
<input class="gt-mr-3 gt-pointer-events-none" type="radio"{{if eq .WhitespaceBehavior "show-all"}} checked{{end}}>
|
2023-09-25 17:56:50 +09:00
|
|
|
{{ctx.Locale.Tr "repo.diff.whitespace_show_everything"}}
|
2022-09-25 23:01:05 +09:00
|
|
|
</label>
|
2018-08-15 02:49:33 +09:00
|
|
|
</a>
|
2023-06-22 01:08:12 +09:00
|
|
|
<a class="item" href="?style={{if .IsSplitStyle}}split{{else}}unified{{end}}&whitespace=ignore-all&show-outdated={{$.ShowOutdatedComments}}">
|
2023-02-14 02:59:59 +09:00
|
|
|
<label class="gt-pointer-events-none">
|
|
|
|
<input class="gt-mr-3 gt-pointer-events-none" type="radio"{{if eq .WhitespaceBehavior "ignore-all"}} checked{{end}}>
|
2023-09-25 17:56:50 +09:00
|
|
|
{{ctx.Locale.Tr "repo.diff.whitespace_ignore_all_whitespace"}}
|
2023-06-15 03:17:58 +09:00
|
|
|
</label>
|
2018-08-15 02:49:33 +09:00
|
|
|
</a>
|
2023-06-22 01:08:12 +09:00
|
|
|
<a class="item" href="?style={{if .IsSplitStyle}}split{{else}}unified{{end}}&whitespace=ignore-change&show-outdated={{$.ShowOutdatedComments}}">
|
2023-02-14 02:59:59 +09:00
|
|
|
<label class="gt-pointer-events-none">
|
|
|
|
<input class="gt-mr-3 gt-pointer-events-none" type="radio"{{if eq .WhitespaceBehavior "ignore-change"}} checked{{end}}>
|
2023-09-25 17:56:50 +09:00
|
|
|
{{ctx.Locale.Tr "repo.diff.whitespace_ignore_amount_changes"}}
|
2022-09-25 23:01:05 +09:00
|
|
|
</label>
|
2018-08-15 02:49:33 +09:00
|
|
|
</a>
|
2023-06-22 01:08:12 +09:00
|
|
|
<a class="item" href="?style={{if .IsSplitStyle}}split{{else}}unified{{end}}&whitespace=ignore-eol&show-outdated={{$.ShowOutdatedComments}}">
|
2023-02-14 02:59:59 +09:00
|
|
|
<label class="gt-pointer-events-none">
|
|
|
|
<input class="gt-mr-3 gt-pointer-events-none" type="radio"{{if eq .WhitespaceBehavior "ignore-eol"}} checked{{end}}>
|
2023-09-25 17:56:50 +09:00
|
|
|
{{ctx.Locale.Tr "repo.diff.whitespace_ignore_at_eol"}}
|
2022-09-25 23:01:05 +09:00
|
|
|
</label>
|
2018-08-15 02:49:33 +09:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-09-25 21:42:40 +09:00
|
|
|
<a class="ui tiny basic button" href="?style={{if .IsSplitStyle}}unified{{else}}split{{end}}&whitespace={{$.WhitespaceBehavior}}&show-outdated={{$.ShowOutdatedComments}}" data-tooltip-content="{{if .IsSplitStyle}}{{ctx.Locale.Tr "repo.diff.show_unified_view"}}{{else}}{{ctx.Locale.Tr "repo.diff.show_split_view"}}{{end}}">{{if .IsSplitStyle}}{{svg "gitea-join"}}{{else}}{{svg "gitea-split"}}{{end}}</a>
|