forked from tangled.org/core
Monorepo for Tangled — https://tangled.org
1{{ define "repo/fragments/diffOpts" }} 2 <section class="flex flex-col gap-2 overflow-x-auto text-sm px-6 py-2 border border-gray-200 dark:border-gray-700 w-full mx-auto rounded bg-white dark:bg-gray-800 drop-shadow-sm"> 3 <strong class="text-sm uppercase dark:text-gray-200">options</strong> 4 {{ $active := "unified" }} 5 {{ if .Split }} 6 {{ $active = "split" }} 7 {{ end }} 8 9 {{ $unified := 10 (dict 11 "Key" "unified" 12 "Value" "unified" 13 "Icon" "square-split-vertical" 14 "Meta" "") }} 15 {{ $split := 16 (dict 17 "Key" "split" 18 "Value" "split" 19 "Icon" "square-split-horizontal" 20 "Meta" "") }} 21 {{ $values := list $unified $split }} 22 23 {{ template "fragments/tabSelector" 24 (dict 25 "Name" "diff" 26 "Values" $values 27 "Active" $active) }} 28 </section> 29{{ end }} 30