This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

core / appview / pages / templates / repo / pulls / fragments / diffSettings.html
1.0 kB 29 lines
1{{ define "repo/pulls/fragments/diffSettings" }} 2{{ $diffUrl := .DiffUrl }} 3{{ $unified := .Unified }} 4<div class="btn-group"> 5 <button 6 type="button" 7 hx-get="{{ $diffUrl }}" 8 hx-vals='{"view": "unified"}' 9 hx-target="#diff-list" 10 hx-swap="outerHTML" 11 class="group btn-group-item {{ if $unified }}active{{ end }}" 12 > 13 <span class="inline group-[.htmx-request]:hidden">{{ i "square-split-vertical" "size-4" }}</span> 14 <span class="hidden group-[.htmx-request]:inline animate-spin">{{ i "loader-circle" "size-4" }}</span> 15 Unified 16 </button> 17 <button 18 type="button" 19 hx-get="{{ $diffUrl }}" 20 hx-target="#diff-list" 21 hx-swap="outerHTML" 22 class="group btn-group-item {{ if not $unified }}active{{ end }}" 23 > 24 <span class="inline group-[.htmx-request]:hidden">{{ i "square-split-horizontal" "size-4" }}</span> 25 <span class="hidden group-[.htmx-request]:inline animate-spin">{{ i "loader-circle" "size-4" }}</span> 26 Split 27 </button> 28</div> 29{{ end }}