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.
Title the linked issues section Issues and shrink unlink
267feec2a6089cca6532d0a3d75eaffe2ba48594 · Keenan Nemetz · 10d ago · parent 86ddbd14
Title the linked issues section Issues and shrink unlink The section lists linked issues, so calling it Details described the shape rather than the content. Removing a link is now a small unlink icon whose accessible name still names the issue, instead of a wide Remove button beside every row.
server/web/templates/requests.html +8−8
| @@ -158,7 +158,7 @@ | |||
| 158 | 158 | ||
| 159 | 159 | {{template "request_changes" .}} | |
| 160 | 160 | ||
| 161 | {{template "request_details" .}} | ||
| 161 | {{template "request_issues" .}} | ||
| 162 | 162 | ||
| 163 | 163 | <section> | |
| 164 | 164 | <h2>{{icon "check"}}Approvals{{template "help" "Approving names the current base and head; a new base or head starts over. An approval stops counting if its author is retired or no longer maintains the repository."}}</h2> | |
| @@ -228,9 +228,9 @@ | |||
| 228 | 228 | </div> | |
| 229 | 229 | {{end}} | |
| 230 | 230 | ||
| 231 | {{define "request_details"}} | ||
| 232 | <section id="request-details"> | ||
| 233 | <h2>{{icon "circle-dot"}}Details{{template "help" "Issues linked to this change close when it is merged. An open change can be relinked by its author or a maintainer."}}</h2> | ||
| 231 | {{define "request_issues"}} | ||
| 232 | <section id="request-issues"> | ||
| 233 | <h2>{{icon "circle-dot"}}Issues{{template "help" "Issues linked to this change close when it is merged. An open change can be relinked by its author or a maintainer."}}</h2> | ||
| 234 | 234 | {{if .LinkedIssues}} | |
| 235 | 235 | <div class="side-list"> | |
| 236 | 236 | {{range .LinkedIssues}} | |
| @@ -240,10 +240,10 @@ | |||
| 240 | 240 | <span class="side-meta">{{who .Author}}{{if not .Created.IsZero}}<span>{{since .Created.Unix}}</span>{{end}}</span> | |
| 241 | 241 | </a> | |
| 242 | 242 | {{if $.CanEditIssues}} | |
| 243 | <form method="post" action="/r/{{$.Name}}/requests/{{$.Request.ID}}/issues" hx-post="/r/{{$.Name}}/requests/{{$.Request.ID}}/issues" hx-target="#request-details" hx-swap="outerHTML"> | ||
| 243 | <form method="post" action="/r/{{$.Name}}/requests/{{$.Request.ID}}/issues" hx-post="/r/{{$.Name}}/requests/{{$.Request.ID}}/issues" hx-target="#request-issues" hx-swap="outerHTML"> | ||
| 244 | 244 | <input type="hidden" name="csrf" value="{{$.CSRF}}"> | |
| 245 | 245 | <input type="hidden" name="issue" value="{{.ID}}"> | |
| 246 | <button class="link" type="submit" name="action" value="remove" title="Remove this issue from the change" aria-label="Remove {{num .Number}} from this change">{{icon "x"}}Remove</button> | ||
| 246 | <button class="link request-unlink" type="submit" name="action" value="remove" title="Unlink this issue" aria-label="Unlink {{num .Number}} from this change">{{icon "unlink"}}</button> | ||
| 247 | 247 | </form> | |
| 248 | 248 | {{end}} | |
| 249 | 249 | </div> | |
| @@ -253,13 +253,13 @@ | |||
| 253 | 253 | <p class="muted">No linked issues.</p> | |
| 254 | 254 | {{end}} | |
| 255 | 255 | {{if .CanEditIssues}} | |
| 256 | <form method="post" action="/r/{{.Name}}/requests/{{.Request.ID}}/issues" class="request-issue-add" hx-post="/r/{{.Name}}/requests/{{.Request.ID}}/issues" hx-target="#request-details" hx-swap="outerHTML"> | ||
| 256 | <form method="post" action="/r/{{.Name}}/requests/{{.Request.ID}}/issues" class="request-issue-add" hx-post="/r/{{.Name}}/requests/{{.Request.ID}}/issues" hx-target="#request-issues" hx-swap="outerHTML"> | ||
| 257 | 257 | <input type="hidden" name="csrf" value="{{.CSRF}}"> | |
| 258 | 258 | <input name="issue" type="text" placeholder="#42 or issue id" aria-label="Issue number or id to link"> | |
| 259 | 259 | <button class="secondary" type="submit" name="action" value="add">{{icon "plus"}}Link issue</button> | |
| 260 | 260 | </form> | |
| 261 | 261 | {{end}} | |
| 262 | {{if .DetailsError}}<p class="error">{{.DetailsError}}</p>{{end}} | ||
| 262 | {{if .IssuesError}}<p class="error">{{.IssuesError}}</p>{{end}} | ||
| 263 | 263 | </section> | |
| 264 | 264 | {{end}} | |
| 265 | 265 | ||