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.

Fold admin work into repository settings and a Users page

9579c1f976254fdeb2ec73d4016db5b25c7921c1 · Keenan Nemetz · 14d ago · parent 381d6aac

Fold admin work into repository settings and a Users page

Remove the combined /admin tabs. Per-repository access rules now live on the repository's Settings page, visible to instance admins while repository details and the danger zone stay with repository admins. User management moves to /users, linked from the top navigation only for instance admins, and repository creation moves to /repos/new. Align the invite, danger-zone, and settings forms with the shared card-and-actions layout, and make settings section headings consistent.

server/web/templates/admin_repo_new.html +3−4

@@ -1,7 +1,6 @@
1 1 {{define "admin_repo_new"}}
2 2 {{template "header" .}}
3 {{template "adminhead" .}}
4 <div class="page-head subhead">
3 <div class="page-head">
5 4 <div class="page-head-main">
6 5 <h1>New repository</h1>
7 6 <p class="page-sub">The owner becomes the repository's first admin. New repositories are private.</p>
@@ -10,7 +9,7 @@
10 9
11 10 {{if .Error}}<div class="flash bad">{{.Error}}</div>{{end}}
12 11
13 <form method="post" action="/admin/repos" class="form-block">
12 <form method="post" action="/repos" class="form-block">
14 13 <input type="hidden" name="csrf" value="{{.CSRF}}">
15 14 <div class="card form-card">
16 15 <label>Name
@@ -27,7 +26,7 @@
27 26 </label>
28 27 </div>
29 28 <div class="form-actions">
30 <a class="button secondary" href="/admin">Cancel</a>
29 <a class="button secondary" href="/">Cancel</a>
31 30 <button type="submit">{{icon "plus"}}Create repository</button>
32 31 </div>
33 32 </form>