forked from tangled.org/core
this repo has no description

allow linking line numbers

Changed files
+12 -16
appview
pages
templates
repo
+8 -6
appview/pages/templates/repo/blob.html
··· 38 {{ else }} 39 <div class="overflow-auto relative text-ellipsis"> 40 {{ range $idx, $line := $lines }} 41 <div class="flex"> 42 - <span 43 - class="{{ $code_number_style }}" 44 - style="min-width: {{ $tot_chars }}ch;" 45 - >{{ add $idx 1 }}</span 46 - > 47 - <div class="whitespace-pre">{{ $line | escapeHtml }}</div> 48 </div> 49 {{ end }} 50 </div>
··· 38 {{ else }} 39 <div class="overflow-auto relative text-ellipsis"> 40 {{ range $idx, $line := $lines }} 41 + {{ $linenr := add $idx 1 }} 42 <div class="flex"> 43 + <a href="#L{{ $linenr }}" id="L{{ $linenr }}" class="no-underline peer"> 44 + <span class="{{ $code_number_style }}" 45 + style="min-width: {{ $tot_chars }}ch;" > 46 + {{ $linenr }} 47 + </span> 48 + </a> 49 + <div class="whitespace-pre peer-target:bg-yellow-200">{{ $line | escapeHtml }}</div> 50 </div> 51 {{ end }} 52 </div>
+4 -10
appview/pages/templates/repo/issues/issue.html
··· 16 {{ $icon = "circle-dot" }} 17 {{ end }} 18 19 - 20 <section> 21 - <div class="flex items-center gap-2"> 22 - <div 23 - id="state" 24 - class="inline-flex items-center rounded px-3 py-1 {{ $bgColor }}" 25 - > 26 - <i 27 - data-lucide="{{ $icon }}" 28 - class="w-4 h-4 mr-1.5 text-white" 29 - ></i> 30 <span class="text-white">{{ .State }}</span> 31 </div> 32 <span class="text-gray-400 text-sm">
··· 16 {{ $icon = "circle-dot" }} 17 {{ end }} 18 19 <section> 20 + <div class="inline-flex items-center gap-2"> 21 + <div id="state" 22 + class="inline-flex items-center rounded px-3 py-1 {{ $bgColor }} text-sm"> 23 + <i data-lucide="{{ $icon }}" class="w-4 h-4 mr-1.5 text-white" ></i> 24 <span class="text-white">{{ .State }}</span> 25 </div> 26 <span class="text-gray-400 text-sm">