jojo/templates/user/settings
Gusted 7ed496ea37 fix: reflect allowed username change in profile setting (#11171)
- When working forgejo/forgejo!8714 I did not touch the UI to remove the
note and `disabled` attribute. This was not intentional, and was likely
caused by me straight going for testing (as the backend code would allow
the username change).
- Slightly refactor the context to a common function, don't hard error
if `CanUserRename` fails but does default to that you cannot rename in
that case (which is the standard behavior of OAuth2 users anyway).

I already was aware that it seems !8714 wasn't working on Codeberg but someone at FOSDEM pointed it out again, thus the reason for this bug fix.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/11171
Reviewed-by: Mathieu Fenniak <mfenniak@noreply.codeberg.org>
Reviewed-by: Beowulf <beowulf@beocode.eu>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
2026-02-06 17:47:30 +01:00
..
security feat: replace cross origin protection (#9830) 2025-10-29 22:43:22 +01:00
account.tmpl feat: add manage_password to user disable features (#10541) 2026-01-26 18:58:39 +01:00
actions.tmpl Support configuration variables on Gitea Actions (#24724) 2023-06-20 22:54:15 +00:00
appearance.tmpl feat: replace cross origin protection (#9830) 2025-10-29 22:43:22 +01:00
applications.tmpl feat: replace cross origin protection (#9830) 2025-10-29 22:43:22 +01:00
applications_oauth2.tmpl Always use ctx.Locale.Tr inside templates (#27231) 2023-09-25 08:56:50 +00:00
applications_oauth2_edit.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2023-04-23 18:21:21 +08:00
applications_oauth2_edit_form.tmpl feat: replace cross origin protection (#9830) 2025-10-29 22:43:22 +01:00
applications_oauth2_list.tmpl feat: replace cross origin protection (#9830) 2025-10-29 22:43:22 +01:00
blocked_users.tmpl [MODERATION] User blocking 2024-02-05 15:56:45 +01:00
grants_oauth2.tmpl [PORT] Refactor DateUtils and merge TimeSince (gitea#32409) 2024-11-10 22:23:27 +01:00
hook_new.tmpl Always use ctx.Locale.Tr inside templates (#27231) 2023-09-25 08:56:50 +00:00
hooks.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2023-04-23 18:21:21 +08:00
keys.tmpl Allow options to disable user ssh keys configuration from the interface on app.ini (#29447) 2024-03-11 23:36:57 +07:00
keys_gpg.tmpl fix(ui): document token validity in key verification view (#9002) 2025-11-14 23:40:03 +01:00
keys_principal.tmpl feat: replace cross origin protection (#9830) 2025-10-29 22:43:22 +01:00
keys_ssh.tmpl feat: use AppDomain for key verification (#10429) 2025-12-17 17:01:14 +01:00
layout_footer.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2023-04-23 18:21:21 +08:00
layout_head.tmpl Reduce margins on user settings page, introduce flex-container (#26046) 2023-07-31 07:16:03 +00:00
navbar.tmpl feat: Global 2FA enforcement (#8753) 2025-08-15 10:56:45 +02:00
organization.tmpl feat: replace cross origin protection (#9830) 2025-10-29 22:43:22 +01:00
packages.tmpl feat: replace cross origin protection (#9830) 2025-10-29 22:43:22 +01:00
packages_cleanup_rules_edit.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2023-04-23 18:21:21 +08:00
packages_cleanup_rules_preview.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2023-04-23 18:21:21 +08:00
profile.tmpl fix: reflect allowed username change in profile setting (#11171) 2026-02-06 17:47:30 +01:00
repos.tmpl feat: replace cross origin protection (#9830) 2025-10-29 22:43:22 +01:00
runner_edit.tmpl Add user level action runners (#24995) 2023-05-31 09:39:54 +08:00
storage_overview.tmpl feat(ui): add quota overview (#6602) 2025-02-26 14:36:53 +00:00