vole
Clone
Read only, no credentials:
https://rodent.software/git/vole.git
Write over SSH with a registered key:
git clone ssh://git@0.0.0.0:2222/vole.git
A free and open-source forge that lives in your Git repo.
Make the issue search results a real popover
bb541fdee195938c86d683fd4fde294b52081cd1 · Keenan Nemetz · 10d ago · parent 451332d1
Make the issue search results a real popover The results sat on the page ground with no edge, so the list read as loose text under the search box. They now open as an overlaid panel with a raised background, border and shadow, and an empty field removes the panel instead of leaving a blank one.
server/web/templates/requests.html +8−4
| @@ -253,16 +253,19 @@ | |||
| 253 | 253 | <p class="muted">No linked issues.</p> | |
| 254 | 254 | {{end}} | |
| 255 | 255 | {{if .CanEditIssues}} | |
| 256 | <form class="request-issue-search" hx-get="/r/{{.Name}}/requests/{{.Request.ID}}/issues/search" hx-trigger="input changed delay:250ms, search, submit" hx-target="#request-issue-results" hx-swap="innerHTML"> | ||
| 257 | <input name="q" type="search" placeholder="Search by title, #number, or ULID" aria-label="Search issues by title, number, or ULID" autocomplete="off"> | ||
| 258 | </form> | ||
| 259 | <div id="request-issue-results" class="request-issue-results" aria-live="polite"></div> | ||
| 256 | <div class="request-issue-picker"> | ||
| 257 | <form class="request-issue-search" hx-get="/r/{{.Name}}/requests/{{.Request.ID}}/issues/search" hx-trigger="input changed delay:250ms, search, submit" hx-target="#request-issue-results" hx-swap="innerHTML"> | ||
| 258 | <input name="q" type="search" placeholder="Search by title, #number, or ULID" aria-label="Search issues by title, number, or ULID" autocomplete="off"> | ||
| 259 | </form> | ||
| 260 | <div id="request-issue-results" class="request-issue-results" aria-live="polite"></div> | ||
| 261 | </div> | ||
| 260 | 262 | {{end}} | |
| 261 | 263 | {{if .IssuesError}}<p class="error">{{.IssuesError}}</p>{{end}} | |
| 262 | 264 | </section> | |
| 263 | 265 | {{end}} | |
| 264 | 266 | ||
| 265 | 267 | {{define "request_issue_search"}} | |
| 268 | <div class="request-issue-popover"> | ||
| 266 | 269 | {{if .Error}} | |
| 267 | 270 | <p class="error">{{.Error}}</p> | |
| 268 | 271 | {{else if .Results}} | |
| @@ -281,6 +284,7 @@ | |||
| 281 | 284 | {{else if .Query}} | |
| 282 | 285 | <p class="muted">No issues match “{{.Query}}”.</p> | |
| 283 | 286 | {{end}} | |
| 287 | </div> | ||
| 284 | 288 | {{end}} | |
| 285 | 289 | ||
| 286 | 290 | {{define "request_inline_comment"}} | |