forgejo/templates
John Moon 09f7dbecda fix: Remove "create branch" button on mirrored repos (#7640)
Currently, if you have a mirrored repo, the button on the "branches"
page to create a new branch is available to be pressed. Once you name
your new branch and click submit, you get a 404 page that doesn't explain
what went wrong.

As new branch creation is not supported on mirrored repos, let's just
take that button away if the repo is a mirror. This is already done for
archived repos, so we just need to add another check.

Fixes #7639.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7640
Reviewed-by: Otto <otto@codeberg.org>
Co-authored-by: John Moon <john.moon@vts-i.com>
Co-committed-by: John Moon <john.moon@vts-i.com>
2025-05-14 23:26:12 +00:00
..
admin fix(i18n): fix several usages of i18n (#7422) 2025-04-02 14:50:02 +00:00
api/packages/pypi Update templates/api/packages/pypi/simple.tmpl 2024-04-12 16:43:30 +00:00
base feat(ui): make JS asset load error message translatable (#7388) 2025-04-01 16:14:38 +00:00
custom [FEAT] Repository flags 2024-02-05 16:09:42 +01:00
devtest ui: improve error pages (#7274) 2025-03-28 19:50:43 +00:00
explore ui: simplify main-attribute labels 2024-12-08 17:30:52 +05:00
htmx Update module github.com/editorconfig-checker/editorconfig-checker/v2/cmd/editorconfig-checker to v3 2024-08-09 21:03:37 +02:00
mail feat: consider WebAuthn & SSH for instance signing (#7693) 2025-04-29 10:34:07 +00:00
org Restore form inputs on organization create error (#34201) 2025-04-22 09:54:18 +02:00
package feat(ui): improve description in packages settings (#7531) 2025-04-18 12:36:59 +00:00
projects fix(ui): use gap in switch items (#7581) 2025-04-21 04:25:08 +00:00
repo fix: Remove "create branch" button on mirrored repos (#7640) 2025-05-14 23:26:12 +00:00
shared feat: add label for avatar settings (#7678) 2025-04-29 13:31:07 +00:00
status ui: improve error pages (#7274) 2025-03-28 19:50:43 +00:00
swagger fix(api): document is_system_webhook field (#7784) 2025-05-05 13:58:55 +00:00
user fix(ui): disable spellcheck on TOTP form fields (#7868) 2025-05-14 23:04:43 +00:00
webhook fix: improve discord webhook api conformance 2024-10-08 22:43:28 +02:00
home.tmpl Split Forgejo landing page template to allow patching or removing Forgejo introduction section (#6675) 2025-02-03 08:41:52 +00:00
home_forgejo.tmpl Split Forgejo landing page template to allow patching or removing Forgejo introduction section (#6675) 2025-02-03 08:41:52 +00:00
install.tmpl Added alt's to <img> 2025-01-31 21:22:00 +00:00
post-install.tmpl [BRANDING] Custom loading animation for Forgejo 2024-02-05 16:02:13 +01:00