fix(ui): move Show Groups toggle inline with search bar
Some checks failed
Build and Release / Lint (push) Successful in 5m8s
Build and Release / Integration Tests (PostgreSQL) (push) Successful in 2m52s
Build and Release / Unit Tests (push) Successful in 4m5s
Build and Release / Build Binary (linux/arm64) (push) Failing after 2m24s
Build and Release / Build Binaries (amd64, darwin, macos) (push) Failing after 4m50s
Build and Release / Create Release (push) Successful in 0s
Build and Release / Build Binaries (amd64, linux, linux-latest) (push) Successful in 3m38s
Build and Release / Build Binaries (amd64, windows, windows-latest) (push) Successful in 9h4m42s
Build and Release / Build Binaries (arm64, darwin, macos) (push) Failing after 4m48s
Some checks failed
Build and Release / Lint (push) Successful in 5m8s
Build and Release / Integration Tests (PostgreSQL) (push) Successful in 2m52s
Build and Release / Unit Tests (push) Successful in 4m5s
Build and Release / Build Binary (linux/arm64) (push) Failing after 2m24s
Build and Release / Build Binaries (amd64, darwin, macos) (push) Failing after 4m50s
Build and Release / Create Release (push) Successful in 0s
Build and Release / Build Binaries (amd64, linux, linux-latest) (push) Successful in 3m38s
Build and Release / Build Binaries (amd64, windows, windows-latest) (push) Successful in 9h4m42s
Build and Release / Build Binaries (arm64, darwin, macos) (push) Failing after 4m48s
Move the grouping toggle to the same line as the search bar for: - /explore/organizations page - Organization repositories page 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -13,11 +13,18 @@
|
||||
</span>
|
||||
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
|
||||
<div class="menu">
|
||||
<a class="{{if eq .SortType "newest"}}active {{end}}item" href="?sort=newest&q={{$.Keyword}}">{{ctx.Locale.Tr "repo.issues.filter_sort.latest"}}</a>
|
||||
<a class="{{if eq .SortType "oldest"}}active {{end}}item" href="?sort=oldest&q={{$.Keyword}}">{{ctx.Locale.Tr "repo.issues.filter_sort.oldest"}}</a>
|
||||
<a class="{{if eq .SortType "alphabetically"}}active {{end}}item" href="?sort=alphabetically&q={{$.Keyword}}">{{ctx.Locale.Tr "repo.issues.label.filter_sort.alphabetically"}}</a>
|
||||
<a class="{{if eq .SortType "reversealphabetically"}}active {{end}}item" href="?sort=reversealphabetically&q={{$.Keyword}}">{{ctx.Locale.Tr "repo.issues.label.filter_sort.reverse_alphabetically"}}</a>
|
||||
<a class="{{if eq .SortType "newest"}}active {{end}}item" href="?sort=newest&q={{$.Keyword}}{{if .ShowGrouping}}&show_groups=1{{end}}">{{ctx.Locale.Tr "repo.issues.filter_sort.latest"}}</a>
|
||||
<a class="{{if eq .SortType "oldest"}}active {{end}}item" href="?sort=oldest&q={{$.Keyword}}{{if .ShowGrouping}}&show_groups=1{{end}}">{{ctx.Locale.Tr "repo.issues.filter_sort.oldest"}}</a>
|
||||
<a class="{{if eq .SortType "alphabetically"}}active {{end}}item" href="?sort=alphabetically&q={{$.Keyword}}{{if .ShowGrouping}}&show_groups=1{{end}}">{{ctx.Locale.Tr "repo.issues.label.filter_sort.alphabetically"}}</a>
|
||||
<a class="{{if eq .SortType "reversealphabetically"}}active {{end}}item" href="?sort=reversealphabetically&q={{$.Keyword}}{{if .ShowGrouping}}&show_groups=1{{end}}">{{ctx.Locale.Tr "repo.issues.label.filter_sort.reverse_alphabetically"}}</a>
|
||||
</div>
|
||||
</div>
|
||||
{{if .PageIsExploreOrganizations}}
|
||||
<!-- Show Groups Toggle -->
|
||||
<label class="tw-flex tw-items-center tw-gap-2 tw-cursor-pointer tw-ml-2">
|
||||
<input type="checkbox" id="show-grouping" {{if .ShowGrouping}}checked{{end}} onchange="window.location.href='?show_groups=' + (this.checked ? '1' : '0') + '&q={{.Keyword}}&sort={{.SortType}}'">
|
||||
<span class="tw-whitespace-nowrap">{{ctx.Locale.Tr "explore.orgs.show_groups"}}</span>
|
||||
</label>
|
||||
{{end}}
|
||||
</div>
|
||||
<div class="divider"></div>
|
||||
|
||||
@@ -3,14 +3,6 @@
|
||||
{{template "explore/navbar" .}}
|
||||
<div class="ui container">
|
||||
{{template "explore/search" .}}
|
||||
{{if .PageIsExploreOrganizations}}
|
||||
<div class="tw-flex tw-items-center tw-justify-end tw-mb-4">
|
||||
<label class="tw-flex tw-items-center tw-gap-2 tw-cursor-pointer">
|
||||
<input type="checkbox" id="show-grouping" {{if .ShowGrouping}}checked{{end}} onchange="window.location.href='?show_groups=' + (this.checked ? '1' : '0') + '&q={{.Keyword}}&sort={{.SortType}}'">
|
||||
<span>{{ctx.Locale.Tr "explore.orgs.show_groups"}}</span>
|
||||
</label>
|
||||
</div>
|
||||
{{end}}
|
||||
{{if and .PageIsExploreOrganizations .ShowGrouping .OrgHeaders}}
|
||||
{{/* Grouped View for Organizations */}}
|
||||
{{template "explore/org_list_grouped" .}}
|
||||
|
||||
@@ -193,14 +193,6 @@
|
||||
{{/* Repositories Tab Content */}}
|
||||
{{if .PageIsViewRepositories}}
|
||||
{{template "shared/repo/search" .}}
|
||||
{{/* Group Toggle */}}
|
||||
<div class="tw-flex tw-items-center tw-justify-end tw-mb-4">
|
||||
<label class="tw-flex tw-items-center tw-gap-2 tw-cursor-pointer">
|
||||
<input type="checkbox" id="show-grouping" {{if .ShowGrouping}}checked{{end}} onchange="window.location.href='?show_groups=' + (this.checked ? '1' : '0') + '&q={{.Keyword}}&sort={{.SortType}}'">
|
||||
<span>{{ctx.Locale.Tr "org.repos.show_groups"}}</span>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
{{if and .ShowGrouping .RepoHeaders}}
|
||||
{{/* Grouped View */}}
|
||||
<div id="grouped-repos">
|
||||
|
||||
@@ -53,6 +53,13 @@
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
{{if .PageIsViewRepositories}}
|
||||
<!-- Show Groups Toggle -->
|
||||
<label class="tw-flex tw-items-center tw-gap-2 tw-cursor-pointer tw-ml-2">
|
||||
<input type="checkbox" id="show-grouping" {{if .ShowGrouping}}checked{{end}} onchange="window.location.href='?show_groups=' + (this.checked ? '1' : '0') + '&q={{.Keyword}}&sort={{.SortType}}'">
|
||||
<span class="tw-whitespace-nowrap">{{ctx.Locale.Tr "org.repos.show_groups"}}</span>
|
||||
</label>
|
||||
{{end}}
|
||||
</div>
|
||||
{{if and .PageIsExploreRepositories .OnlyShowRelevant}}
|
||||
<div class="ui message">
|
||||
|
||||
Reference in New Issue
Block a user