Sign in

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

vole
Site
Clone

Read only, no credentials:

https://rodent.software/vole.git

Write over SSH with a registered key:

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

Self-hosted forge that lives in your Git repo.

Move channel forms off the releases page

ea6ce9fe5d829a7f4153793f0a096d00331f7e29 · Keenan Nemetz · 17d ago · parent de72893e

Move channel forms off the releases page

Create and edit channels on focused release subpages, leaving the
releases page with the read-only channel list and its row actions.

The new-release target is now a grouped branch and tag picker instead of
a free-text field, matching the channel form's selection of annotated
releases.

server/web/templates/release_form.html +17−2

@@ -19,8 +19,23 @@
19 19 <input type="text" name="tag" value="{{.Tag}}" {{if .Editing}}readonly{{else}}required autocomplete="off" placeholder="v1.0.0"{{end}}>
20 20 </label>
21 21 <label>Target
22 <input type="text" name="target" value="{{.Target}}" {{if .Editing}}readonly{{else}}required list="release-refs" autocomplete="off"{{end}}>
23 {{if not .Editing}}<datalist id="release-refs">{{range .Refs}}<option value="{{.}}">{{.}}</option>{{end}}</datalist>{{end}}
22 {{if .Editing}}
23 <input type="text" name="target" value="{{.Target}}" readonly>
24 {{else}}
25 <select name="target" required>
26 <option value=""{{if not .Target}} selected{{end}} disabled>Choose a branch or tag</option>
27 {{with .Targets.Branches}}
28 <optgroup label="Branches">
29 {{range .}}<option value="{{.}}"{{if eq . $.Target}} selected{{end}}>{{.}}</option>{{end}}
30 </optgroup>
31 {{end}}
32 {{with .Targets.Tags}}
33 <optgroup label="Tags">
34 {{range .}}<option value="{{.}}"{{if eq . $.Target}} selected{{end}}>{{.}}</option>{{end}}
35 </optgroup>
36 {{end}}
37 </select>
38 {{end}}
24 39 </label>
25 40 <label>Release notes
26 41 <textarea name="notes" required rows="12" placeholder="What changed in this release?">{{.Notes}}</textarea>