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/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.

Let the browser edit issue and change details

a4e7a99a9ecf697586abdb884351a722fc25a864 · Keenan Nemetz · 5d ago · parent de84c32b

Let the browser edit issue and change details

An issue's title and description could only be corrected with the CLI, and a
change request's prose could not be corrected at all after it was opened. Add an
edit page for each, offered to the author and to a maintainer. A change edit writes
through a new metadata writer so the record is still validated, and neither edit
touches the discussion, labels, or review state.

server/web/templates/request_edit.html +29

@@ -0,0 +1,29 @@
1 {{define "request_edit"}}
2 {{template "header" .}}
3 {{template "repohead" (nav .Page "requests")}}
4
5 <div class="page-head">
6 <div class="page-head-main">
7 <h1>Edit change</h1>
8 <p class="page-sub">Correct the title or the description. Reviews and approvals stay as they are.</p>
9 </div>
10 </div>
11
12 <form method="post" action="/r/{{.Name}}/requests/{{.ID}}/edit" class="form-block">
13 <input type="hidden" name="csrf" value="{{.CSRF}}">
14 <div class="card form-card">
15 {{if .Error}}<p class="error">{{.Error}}</p>{{end}}
16 <label>Title
17 <input type="text" name="title" required maxlength="200" value="{{.Title}}" autofocus>
18 </label>
19 <label>Description
20 <textarea name="body" placeholder="Why should this land?">{{.Description}}</textarea>
21 </label>
22 </div>
23 <div class="form-actions">
24 <a class="button secondary" href="/r/{{.Name}}/requests/{{.ID}}">{{icon "x"}}Cancel</a>
25 <button type="submit">{{icon "check"}}Save changes</button>
26 </div>
27 </form>
28 {{template "footer" .}}
29 {{end}}