Gitfed
bastien-mrq/gitfed/ Commits/ 2fec01b

Apply the same locked username/ prefix to the New repo form

Matches the one-shot import form's field, for consistency between the two side-by-side "add a repo" actions on the dashboard.

bastien-mrq 2026-07-29 09:40 commit 2fec01b281695227ba3206261019d180585f5e50 parent b5915ca51ae22058691a83ee2c2ec716d7e3cb9d
1 files changed +4 −1
M cmd/gitfed-web/handlers_dashboard.go +4 −1
cmd/gitfed-web/handlers_dashboard.go
diff --git a/cmd/gitfed-web/handlers_dashboard.go b/cmd/gitfed-web/handlers_dashboard.go index fbc6b97..2057fac 100644 --- a/cmd/gitfed-web/handlers_dashboard.go +++ b/cmd/gitfed-web/handlers_dashboard.go @@ -39,7 +39,10 @@ var dashboardTpl = newTpl("dashboard", ` <summary class="gf-btn primary" style="margin:0;">+ {{t .Lang "dashboard.new_repo"}}</summary> <form class="card" method="post" action="/repos" style="margin-top:0.75rem;"> <label>{{t .Lang "dashboard.repo_name"}}</label> - <input name="name" required placeholder="{{.Username}}/my-project"> + <div class="gf-input-group"> + <span class="prefix">{{.Username}}/</span> + <input name="name" required placeholder="my-project" autocomplete="off"> + </div> <button type="submit">{{t .Lang "dashboard.create"}}</button> </form> </details>