forgejo/templates/user
Gusted 72bac98365 feat: require data-modal-id for delete buttons (#8711)
All instances should have a `data-modal-id` now. Throw a user-friendly error if this is not the case (custom templates, or missed cases).

Checked via `rg -P -e '^(?=.*delete-button)' | grep -v "data-modal-id"`

Removed two instances of delete modals and one case of simplified logic.

## Rationale
I am currently surveying the existing modals in Forgejo in the context of eventually replacing the modals implementation with our own modal implementation. This refactor fixes one of the many inconsistencies that the current usage of modals has. It should explicitly specify which modal should be used to avoids any problems if new modals are introduced on the page (for example via https://codeberg.org/forgejo/forgejo/pulls/8662).

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8711
Reviewed-by: oliverpool <oliverpool@noreply.codeberg.org>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
2025-08-08 01:53:23 +02:00
..
auth fix: remove trailing slash from the issuer in oauth claims (#8028) 2025-06-10 20:46:17 +02:00
dashboard feat: require data-modal-id for delete buttons (#8711) 2025-08-08 01:53:23 +02:00
notification Apply switch redesign to more areas (#6542) 2025-01-13 08:28:06 +00:00
overview feat(UI): add package counter to repo/user/org overview pages 2024-07-31 12:40:24 +02:00
settings feat(ui): show size constraints of custom avatar (#7998) 2025-06-14 16:35:50 +02:00
code.tmpl Unify search boxes (#29530) 2024-03-20 12:31:05 +00:00
heatmap.tmpl Fix heatmap localization 2024-03-20 08:20:08 +01:00
profile.tmpl fix(ui): prepend AppSubURL to visibility hint URLs (#7379) 2025-03-30 05:04:36 +00:00