You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/options/locale
Kyle Evans 38cd9ba47b
Allow unauthenticated users to compare (#11240)
* routers: make /compare route available to unauthenticated users

Remove some bits of the compare interface if the user isn't signed in.
Notably, they don't need to see the "New Pull Request" button box nor the
hidden form that would fail to submit due to the POST request continuing to
require proper privileges.

Follow-up commits will improve the UI a bit around this, removing some
"Pull Request" verbiage in favor of "Compare."

* ui: home: show "compare" button for unauthenticated users

This change requires pulling in the BaseRepo unconditionally and
recording if the pull request is in-fact not allowed
(.PullRequestCtx.Allowed). If the user isn't allowed to create a pull
request, either because this isn't a fork or same-fork branch PRs aren't
allowed, then we'll name the button "Compare" instead of "Pull Request."

* ui: branch list: use the new Compare language when available

When viewing the branch listing as an unauthenticated user, you'll get
"Pull Request" buttons. use the new "Compare" verbiage instead, which
matches GitHub behavior when you can't issue a pull request from the
branches.

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
4 years ago
..
TRANSLATORS Add @yasarciv67 to TRANSLATORS file (#8451) 5 years ago
locale_bg-BG.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_cs-CZ.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_de-DE.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_en-US.ini Allow unauthenticated users to compare (#11240) 4 years ago
locale_es-ES.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_fa-IR.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_fi-FI.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_fr-FR.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_hu-HU.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_id-ID.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_it-IT.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_ja-JP.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_ko-KR.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_lv-LV.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_ml-IN.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_nl-NL.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_pl-PL.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_pt-BR.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_pt-PT.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_ru-RU.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_sr-SP.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_sv-SE.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_tr-TR.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_uk-UA.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_zh-CN.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_zh-HK.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_zh-TW.ini [skip ci] Updated translations via Crowdin 4 years ago