Capture accumulated application, UI, CLI, regression tests and design documentation changes, including task project mapping and default CalDAV list naming. Keep deployment data, backups, local credentials and build artifacts out of Git. Move the Compose enrollment token to an ignored local environment file.
2 lines
1.7 KiB
Go Template
2 lines
1.7 KiB
Go Template
{{ define "groups.gohtml" }}<!doctype html><html lang="{{ .Locale }}"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>{{ T "auth.groups" }} · {{ .WikiName }}</title><link rel="stylesheet" href="/static/css/main.css"><link rel="stylesheet" href="/static/css/theme/base.css"><link rel="stylesheet" href="{{ .ThemeCSS }}"></head><body><header class="topbar"><div class="brand"><a href="/">{{ .WikiName }}</a></div>{{ template "auth-menu" . }}</header><main class="container"><h1>{{ T "auth.groups" }}</h1><div class="table-scroll"><table class="recent-table"><thead><tr><th>{{ T "config.name" }}</th><th>{{ T "auth.group_visibility" }}</th></tr></thead><tbody>{{ range .Groups }}<tr><td><a href="/g/{{ .Name }}">{{ .DisplayName }}</a><br><span class="muted">@{{ .Name }}</span></td><td>{{ T (printf "auth.group_visibility_%s" .Visibility) }}</td></tr>{{ else }}<tr><td colspan="2">—</td></tr>{{ end }}</tbody></table></div>{{ if .CanCreate }}<h2>{{ T "auth.group_create" }}</h2><form method="post" class="auth-account-form"><label>{{ T "auth.group_name" }}<input name="name" pattern="[a-z0-9][a-z0-9_-]{1,63}" required></label><label>{{ T "auth.display_name" }}<input name="display_name"></label><label>{{ T "auth.group_description" }}<input name="description"></label><label>{{ T "auth.group_visibility" }}<select name="visibility"><option value="members">{{ T "auth.group_visibility_members" }}</option><option value="domain">{{ T "auth.group_visibility_domain" }}</option><option value="public">{{ T "auth.group_visibility_public" }}</option></select></label><button>{{ T "config.add" }}</button></form>{{ end }}</main></body></html>{{ end }}
|