~gitpocket/gitpocket

8

style(signup): drop the introductory paragraph from the register page

commit
dcdc19f797c1cea091a621e954b9cc870283ace7 browse tree
parent
d06b9496659e01bfa719390cf67852a85ad30570
author
~james <[email protected]>
signature
Signed by: ~james SHA256:KlzJ0P0gvJcnOYpaxD5yCUw52ImHttTKRjVAEnnYnKg
date
2026-11-13 13:33 UTC

1 files changed, +1 −1

templates/register.html modified

@@ -1,7 +1,7 @@
11 {{define "content"}}
22 <div class="auth">
33 <h3 class="rule">Register for {{.Host}} <small>or <a href="/login">log in</a></small></h3>
4-{{if eq .Data.Mode "closed"}}<p class="info">Registration is closed on {{.Host}}. Ask an administrator for an account.</p>{{else}}<p>Registration gives you a page at <code>~username</code>, repositories under it, SSH and HTTPS push, and pull requests on anything public. It needs an email address, which is never verified, and you are logged in straight away.</p>
4+{{if eq .Data.Mode "closed"}}<p class="info">Registration is closed on {{.Host}}. Ask an administrator for an account.</p>{{else}}
55 <form method="post" action="/register" class="stack centred">
66 <label>Username <input name="name" required autofocus autocomplete="username" pattern="[a-z0-9][a-z0-9_.-]{0,38}" value="{{.Data.Name}}"><small>Lowercase letters, digits, dot, dash or underscore.</small></label>
77 <label>Password <input name="password" type="password" required minlength="8" autocomplete="new-password"></label>