forgejo/options/locale_next
Ryan Lerch a0f902f635 fix(ui): make limits clearer in create repo form (#7402)
Resolves: #7341

Previously, the Create Repository button was only enabled if a user was able to create a repo in their own namespace. However, if they had reached the global repo limit, but were stlll able to create a repo in an org, the button would still be disabled.

In this pull request, the create repo form now:

1. Behaves like it always did previously if the user has not reached the repo limit.

2. If the User has reached the repo limit, and they are unable to create a repo in any of their orgs (or they have no orgs), the create repo form is displayed as:
![Screenshot](/attachments/9f22f43d-0036-4c48-b794-54302c0f241c)

3. If the User has reached the repo limit, and the **limit is greater than zero**, an alert appears at the top of the form, and they are only allowed to choose from the orgs that they are allowed to create repos in:
![Screenshot](/attachments/f5508e05-74fd-4858-9e95-967bd7017abd)

4. If the User has reached the repo limit, and the **limit is equal to zero**, no alert is displayed, as no user can create repos on that instance, and they are only allowed to choose from the orgs that they are allowed to create repos in:
![localhost_3000_repo_create (4).png](/attachments/e7a87da8-c19c-47e1-845e-2afc3667ab02)

Co-authored-by: 0ko <0ko@noreply.codeberg.org>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7402
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: Ryan Lerch <rlerch@redhat.com>
Co-committed-by: Ryan Lerch <rlerch@redhat.com>
2025-05-20 16:37:15 +02:00
..
locale_ar.json i18n: update of translations from Codeberg Translate 2025-05-08 06:08:41 +00:00
locale_be.json Initial support for localization and pluralization with go-i18n-JSON-v2 format 2025-01-17 11:21:28 +01:00
locale_bg.json fix(i18n): flatten next locales (#6607) 2025-01-18 07:35:28 +00:00
locale_bn.json Initial support for localization and pluralization with go-i18n-JSON-v2 format 2025-01-17 11:21:28 +01:00
locale_bs.json Initial support for localization and pluralization with go-i18n-JSON-v2 format 2025-01-17 11:21:28 +01:00
locale_ca.json i18n: update of translations from Codeberg Translate 2025-03-16 06:50:16 +00:00
locale_cs-CZ.json i18n: update of translations from Codeberg Translate 2025-05-08 06:08:41 +00:00
locale_da.json i18n: update of translations from Codeberg Translate 2025-05-08 06:08:41 +00:00
locale_de-DE.json i18n: update of translations from Codeberg Translate 2025-05-08 06:08:41 +00:00
locale_el-GR.json i18n: update of translations from Codeberg Translate 2025-05-08 06:08:41 +00:00
locale_en-US.json fix(ui): make limits clearer in create repo form (#7402) 2025-05-20 16:37:15 +02:00
locale_eo.json i18n: update of translations from Codeberg Translate 2025-03-16 06:50:16 +00:00
locale_es-ES.json i18n: update of translations from Codeberg Translate 2025-05-17 10:37:51 +00:00
locale_et.json i18n: update of translations from Codeberg Translate 2025-03-16 06:50:16 +00:00
locale_fa-IR.json i18n: update of translations from Codeberg Translate (#7066) 2025-03-07 14:26:37 +00:00
locale_fi-FI.json i18n: update of translations from Codeberg Translate 2025-05-08 06:08:41 +00:00
locale_fil.json i18n: update of translations from Codeberg Translate 2025-05-08 06:08:41 +00:00
locale_fr-FR.json i18n: update of translations from Codeberg Translate 2025-05-17 10:37:51 +00:00
locale_gl.json Initial support for localization and pluralization with go-i18n-JSON-v2 format 2025-01-17 11:21:28 +01:00
locale_hi.json Initial support for localization and pluralization with go-i18n-JSON-v2 format 2025-01-17 11:21:28 +01:00
locale_hu-HU.json i18n: update of translations from Codeberg Translate 2025-03-16 06:50:16 +00:00
locale_id-ID.json fix(i18n): flatten next locales (#6607) 2025-01-18 07:35:28 +00:00
locale_is-IS.json fix(i18n): flatten next locales (#6607) 2025-01-18 07:35:28 +00:00
locale_it-IT.json i18n: update of translations from Codeberg Translate 2025-04-03 07:02:09 +00:00
locale_ja-JP.json i18n: update of translations from Codeberg Translate 2025-03-16 06:50:16 +00:00
locale_ko-KR.json i18n: update of translations from Codeberg Translate 2025-04-24 06:35:00 +00:00
locale_lt.json i18n: update of translations from Codeberg Translate 2025-03-16 06:50:16 +00:00
locale_lv-LV.json i18n: update of translations from Codeberg Translate 2025-05-08 06:08:41 +00:00
locale_ml-IN.json Initial support for localization and pluralization with go-i18n-JSON-v2 format 2025-01-17 11:21:28 +01:00
locale_nb_NO.json Initial support for localization and pluralization with go-i18n-JSON-v2 format 2025-01-17 11:21:28 +01:00
locale_nds.json i18n: update of translations from Codeberg Translate 2025-05-08 06:08:41 +00:00
locale_nl-NL.json i18n: update of translations from Codeberg Translate 2025-05-08 06:08:41 +00:00
locale_pl-PL.json i18n: update of translations from Codeberg Translate 2025-04-24 06:35:00 +00:00
locale_pt-BR.json i18n: update of translations from Codeberg Translate 2025-05-08 06:08:41 +00:00
locale_pt-PT.json i18n: update of translations from Codeberg Translate 2025-05-08 06:08:41 +00:00
locale_ru-RU.json i18n: update of translations from Codeberg Translate 2025-05-17 10:37:51 +00:00
locale_si-LK.json fix(i18n): flatten next locales (#6607) 2025-01-18 07:35:28 +00:00
locale_sk-SK.json i18n: update of translations from Codeberg Translate 2025-04-24 06:35:00 +00:00
locale_sl.json Initial support for localization and pluralization with go-i18n-JSON-v2 format 2025-01-17 11:21:28 +01:00
locale_sr-SP.json Initial support for localization and pluralization with go-i18n-JSON-v2 format 2025-01-17 11:21:28 +01:00
locale_sv-SE.json i18n: update of translations from Codeberg Translate 2025-03-16 06:50:16 +00:00
locale_tr-TR.json i18n: update of translations from Codeberg Translate 2025-03-16 06:50:16 +00:00
locale_uk-UA.json i18n: update of translations from Codeberg Translate 2025-05-08 06:08:41 +00:00
locale_vi.json Initial support for localization and pluralization with go-i18n-JSON-v2 format 2025-01-17 11:21:28 +01:00
locale_yi.json Initial support for localization and pluralization with go-i18n-JSON-v2 format 2025-01-17 11:21:28 +01:00
locale_zh-CN.json i18n: update of translations from Codeberg Translate 2025-05-08 06:08:41 +00:00
locale_zh-HK.json fix(i18n): flatten next locales (#6607) 2025-01-18 07:35:28 +00:00
locale_zh-TW.json i18n: update of translations from Codeberg Translate 2025-05-01 09:50:01 +00:00