|
3 | 3 | {{svg "octicon-triangle-down" 14 "dropdown icon"}}
|
4 | 4 | <div class="menu">
|
5 | 5 | <a class="item" href="?style={{if .IsSplitStyle}}split{{else}}unified{{end}}&whitespace=show-all">
|
6 |
| - <i class="circle {{if eq .WhitespaceBehavior "show-all"}}dot{{else}}outline{{end}} icon"></i> |
7 |
| - {{.locale.Tr "repo.diff.whitespace_show_everything"}} |
| 6 | + <label class="pointer-events-none"> |
| 7 | + <input class="mr-3 pointer-events-none" type="radio"{{if eq .WhitespaceBehavior "show-all"}} checked{{end}}> |
| 8 | + {{.locale.Tr "repo.diff.whitespace_show_everything"}} |
| 9 | + </label> |
8 | 10 | </a>
|
9 | 11 | <a class="item" href="?style={{if .IsSplitStyle}}split{{else}}unified{{end}}&whitespace=ignore-all">
|
10 |
| - <i class="circle {{if eq .WhitespaceBehavior "ignore-all"}}dot{{else}}outline{{end}} icon"></i> |
11 |
| - {{.locale.Tr "repo.diff.whitespace_ignore_all_whitespace"}} |
| 12 | + <label class="pointer-events-none"> |
| 13 | + <input class="mr-3 pointer-events-none" type="radio"{{if eq .WhitespaceBehavior "ignore-all"}} checked{{end}}> |
| 14 | + {{.locale.Tr "repo.diff.whitespace_ignore_all_whitespace"}} |
| 15 | + <label> |
12 | 16 | </a>
|
13 | 17 | <a class="item" href="?style={{if .IsSplitStyle}}split{{else}}unified{{end}}&whitespace=ignore-change">
|
14 |
| - <i class="circle {{if eq .WhitespaceBehavior "ignore-change"}}dot{{else}}outline{{end}} icon"></i> |
15 |
| - {{.locale.Tr "repo.diff.whitespace_ignore_amount_changes"}} |
| 18 | + <label class="pointer-events-none"> |
| 19 | + <input class="mr-3 pointer-events-none" type="radio"{{if eq .WhitespaceBehavior "ignore-change"}} checked{{end}}> |
| 20 | + {{.locale.Tr "repo.diff.whitespace_ignore_amount_changes"}} |
| 21 | + </label> |
16 | 22 | </a>
|
17 | 23 | <a class="item" href="?style={{if .IsSplitStyle}}split{{else}}unified{{end}}&whitespace=ignore-eol">
|
18 |
| - <i class="circle {{if eq .WhitespaceBehavior "ignore-eol"}}dot{{else}}outline{{end}} icon"></i> |
19 |
| - {{.locale.Tr "repo.diff.whitespace_ignore_at_eol"}} |
| 24 | + <label class="pointer-events-none"> |
| 25 | + <input class="mr-3 pointer-events-none" type="radio"{{if eq .WhitespaceBehavior "ignore-eol"}} checked{{end}}> |
| 26 | + {{.locale.Tr "repo.diff.whitespace_ignore_at_eol"}} |
| 27 | + </label> |
20 | 28 | </a>
|
21 | 29 | </div>
|
22 | 30 | </div>
|
|
0 commit comments