+5
-3
appview/pages/funcmap.go
+5
-3
appview/pages/funcmap.go
···
···
+19
-1
appview/pages/pages.go
+19
-1
appview/pages/pages.go
···
···
-166
appview/pages/templates/repo/compare.html
-166
appview/pages/templates/repo/compare.html
···-class="p-1 border max-w-32 border-gray-200 bg-white dark:bg-gray-800 dark:text-white dark:border-gray-700"-class="p-1 border max-w-32 border-gray-200 bg-white dark:bg-gray-800 dark:text-white dark:border-gray-700"
···
+15
appview/pages/templates/repo/compare/compare.html
+15
appview/pages/templates/repo/compare/compare.html
···
···
+31
appview/pages/templates/repo/compare/new.html
+31
appview/pages/templates/repo/compare/new.html
···
···+<section class="p-6 mt-4 rounded-br rounded-bl bg-white dark:bg-gray-800 dark:text-white drop-shadow-sm w-full mx-auto">+<div class="mt-4 grid grid-cols-1 divide-y divide-gray-200 dark:divide-gray-700 rounded border border-gray-200 dark:border-gray-700 w-full md:w-1/2">+<a href="/{{ $.RepoInfo.FullName }}/compare?head={{ $br.Name | urlquery }}" class="no-underline hover:no-underline">
+73
appview/pages/templates/repo/fragments/compareForm.html
+73
appview/pages/templates/repo/fragments/compareForm.html
···
···+window.location.href = `/{{$.RepoInfo.FullName}}/compare/${encodeURIComponent(base)}...${encodeURIComponent(head)}`;+<select name="{{$name}}" id="{{$name}}-select" class="p-1 border max-w-32 md:max-w-64 border-gray-200 bg-white dark:bg-gray-800 dark:text-white dark:border-gray-700">+<option value="{{ .Reference.Name }}" class="py-1" {{if eq .Reference.Name $default}}selected{{end}}>+<option value="{{ .Reference.Name }}" class="py-1" {{if eq .Reference.Name $default}}selected{{end}}>
+1
-1
appview/pages/templates/repo/index.html
+1
-1
appview/pages/templates/repo/index.html
+62
-74
appview/state/repo.go
+62
-74
appview/state/repo.go
··················-w.Header().Add("Hx-Push-Url", fmt.Sprintf("/%s/compare/%s...%s", f.OwnerSlashRepo(), base, head))
··················
+1
-3
appview/state/router.go
+1
-3
appview/state/router.go
······
······