Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

vole
Clone

Read only, no credentials:

https://rodent.software/vole.git

Write over SSH with a registered key:

git clone ssh://git@rodent.software:2222/vole.git

A free and open-source forge that lives in your Git repo.

Put each repository tab's filters and search on one row

6c98a2711993b1fec51af785e9ad28ced0518bf3 · Keenan Nemetz · 10d ago · parent 20442b59

Put each repository tab's filters and search on one row

The filter controls had grown into two rows on the pages that also had state
chips: the chips sat above, the search and dropdowns below. Where the search sat
also depended on the page, so moving from issues to changes to code changed the
order of the same controls.

Every filter row now reads left to right: chips and labelled dropdowns on the
left, the search group on the right, with the clear action in the same right
group on pages that have no text search. The chips moved inside the form on
issues, changes and activity so a search keeps the chosen state or kind, and an
htmx swap replaces the whole row with the values the server rendered.

The row is one `.filters` element with a `.filters-search` group, so code search
and the global search page use the same shape rather than a second one. On a
phone the row stacks and the search stays on one line with its button.

server/web/templates/code.html +9−6

@@ -14,13 +14,9 @@
14 14 </div>
15 15
16 16 {{/* Search and ref pickers filter the tree and the main pane, so they share the
17 standard filter row under the page header. */}}
17 standard filter row under the page header: refs on the left, search on the
18 right. */}}
18 19 <div class="filters">
19 <form method="get" action="/r/{{.Name}}/search" class="inline" role="search">
20 <input type="hidden" name="ref" value="{{.Ref}}">
21 <input type="search" name="q" placeholder="Search code" aria-label="Search code">
22 <button type="submit">{{icon "search"}}Search</button>
23 </form>
24 20 {{if .Branches}}
25 21 <form method="get" action="/r/{{.Name}}/code" class="inline">
26 22 <label class="filter-field">
@@ -43,6 +39,13 @@
43 39 </label>
44 40 </form>
45 41 {{end}}
42 <div class="filters-search">
43 <form method="get" action="/r/{{.Name}}/search" class="inline" role="search">
44 <input type="hidden" name="ref" value="{{.Ref}}">
45 <input type="search" name="q" placeholder="Search code" aria-label="Search code">
46 <button type="submit">{{icon "search"}}Search</button>
47 </form>
48 </div>
46 49 </div>
47 50
48 51 {{range .Latest}}