mirror of
1
Fork 0
forgejo/templates
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
..
admin feat: improve 'download diagnosis report' ui 2025-01-05 17:05:31 +01:00
api/packages/pypi
base Rewrite OpenGraph Header 2025-01-01 20:43:20 +01:00
custom
devtest [PORT] Refactor DateUtils and merge TimeSince (gitea#32409) 2024-11-10 22:23:27 +01: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 Merge pull request '[SEC] Notify owner about TOTP enrollment' (#4704) from gusted/sec-more-totp into forgejo 2024-07-27 20:53:47 +00:00
org fix(ui): hide 'New migration' button on org pages with migrations disabled (#6850) (#6851) 2025-02-08 15:06:02 +00:00
package Alt Linux Apt-Rpm repository support for Forgejo packages. (#6351) 2025-01-22 14:01:49 +00:00
projects fix(sec): permission check for project issue 2025-02-08 07:22:10 +00:00
repo fix(ui): display verified icon for default gpg key (#6803) 2025-02-07 12:30:25 +00:00
shared fix(ui): remove code search git grep warning (#6794) 2025-02-05 14:27:07 +00:00
status chore(branding): strip metadata information from the footer 2024-12-29 22:40:13 +00:00
swagger Inclusion of rename organization api (#33303) 2025-02-02 12:01:58 +01:00
user Added `alt`'s to `<img>` 2025-01-31 21:22:00 +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