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.

Add one Admin page with status, accounts, and the audit log

43e681d8a5d94567aa9530d32b2c89223c1a17f9 · Keenan Nemetz · 5d ago · parent af018ce8

Add one Admin page with status, accounts, and the audit log

Instance administration was split between the Status and Accounts pages,
and the audit log had no browser view at all. The new /admin page gathers
the status tabs, the account roster, and a read-only audit viewer into one
place with a tab for each, and /status, /runners, and /users redirect to
the tab they named so old links keep working.

The audit reader walks the file backwards a chunk at a time, returns the
newest records first, and shows one extra record to know whether an older
page exists. It skips a line it cannot parse rather than failing the page
and refuses a symlink or a non-regular file, as startup already does.

Refs #198 (01M6MK0NNZ2XR1D5TQKNWYT4HN).

server/web/web.go +2−2

@@ -70,7 +70,7 @@ type Web struct {
70 70 DeleteRepo func(name, actor string) error
71 71 Logger func(format string, args ...any)
72 72
73 // Started is the process start, shown on the status page as uptime.
73 // Started is the process start, shown on the Admin page as uptime.
74 74 Started time.Time
75 75
76 76 // sem bounds archive streams; see releases.go.
@@ -86,7 +86,7 @@ type Web struct {
86 86 devSess *session.Session
87 87 devMu sync.Mutex
88 88
89 // statusCache holds the last filesystem walk shown on the status page.
89 // statusCache holds the last filesystem walk shown on the Admin page.
90 90 statusCache statusCache
91 91
92 92 // History summaries, keyed by repository and commit. They are properties of