forgejo/templates/org
Daniel Baumann 816cd117f7 fix(ui): hide 'New migration' button on org pages with migrations disabled (#6850) (#6851)
When migrations are disabled via `[repository].DISABLE_MIGRATIONS = true`, on organisation pages next to the 'New repository' button, the 'New migration' button is still shown.

This is caused by a logic error in the templates: instead of checking for disabled migrations, it checks for disabled pull mirrors. This patch fixes that to use `DisableMigrations` instead of `DisableNewPullMirrors`.

Signed-off-by: Daniel Baumann <daniel@debian.org>

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6851
Reviewed-by: Beowulf <beowulf@beocode.eu>
Reviewed-by: 0ko <0ko@noreply.codeberg.org>
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: Daniel Baumann <daniel@debian.org>
Co-committed-by: Daniel Baumann <daniel@debian.org>
2025-02-08 15:06:02 +00:00
..
member ui: simplify main-attribute labels 2024-12-08 17:30:52 +05:00
projects Fix the missing menu in organization project view page (#32313) 2024-11-05 09:33:15 +01:00
settings feat: add configurable cooldown to claim usernames (#6422) 2025-01-24 04:16:56 +00:00
team i18n: UX improvements: Team permissions and issue closing 2024-09-24 19:03:30 +02:00
create.tmpl feat(i18n): allow different translations of creation links and titles (#4829) 2024-08-07 16:54:05 +00:00
follow_unfollow.tmpl Migrate margin and padding helpers to tailwind (#30043) 2024-03-30 07:17:29 +01:00
header.tmpl ui: simplify main-attribute labels 2024-12-08 17:30:52 +05:00
home.tmpl fix(ui): hide 'New migration' button on org pages with migrations disabled (#6850) (#6851) 2025-02-08 15:06:02 +00:00
menu.tmpl Update module github.com/editorconfig-checker/editorconfig-checker/v2/cmd/editorconfig-checker to v3 2024-08-09 21:03:37 +02:00