mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-09-25 12:15:54 +00:00
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:  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:  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:  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> |
||
---|---|---|
.. | ||
locale_ar.json | ||
locale_be.json | ||
locale_bg.json | ||
locale_bn.json | ||
locale_bs.json | ||
locale_ca.json | ||
locale_cs-CZ.json | ||
locale_da.json | ||
locale_de-DE.json | ||
locale_el-GR.json | ||
locale_en-US.json | ||
locale_eo.json | ||
locale_es-ES.json | ||
locale_et.json | ||
locale_fa-IR.json | ||
locale_fi-FI.json | ||
locale_fil.json | ||
locale_fr-FR.json | ||
locale_gl.json | ||
locale_hi.json | ||
locale_hu-HU.json | ||
locale_id-ID.json | ||
locale_is-IS.json | ||
locale_it-IT.json | ||
locale_ja-JP.json | ||
locale_ko-KR.json | ||
locale_lt.json | ||
locale_lv-LV.json | ||
locale_ml-IN.json | ||
locale_nb_NO.json | ||
locale_nds.json | ||
locale_nl-NL.json | ||
locale_pl-PL.json | ||
locale_pt-BR.json | ||
locale_pt-PT.json | ||
locale_ru-RU.json | ||
locale_si-LK.json | ||
locale_sk-SK.json | ||
locale_sl.json | ||
locale_sr-SP.json | ||
locale_sv-SE.json | ||
locale_tr-TR.json | ||
locale_uk-UA.json | ||
locale_vi.json | ||
locale_yi.json | ||
locale_zh-CN.json | ||
locale_zh-HK.json | ||
locale_zh-TW.json |