forgejo/templates/shared
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
..
actions feat: require data-modal-id for delete buttons (#8711) 2025-08-08 01:53:23 +02:00
search feat(issue search): query string for boolean operators and phrase search (#6952) 2025-02-23 08:35:35 +00:00
secrets [PORT] Refactor DateUtils and merge TimeSince (gitea#32409) 2024-11-10 22:23:27 +01:00
user feat(ui): redesign user profile actions layout (#7906) 2025-06-24 14:16:51 +02:00
variables [PORT] Refactor DateUtils and merge TimeSince (gitea#32409) 2024-11-10 22:23:27 +01:00
webhook Added alt's to <img> 2025-01-31 21:22:00 +00:00
blocked_users_list.tmpl fix: use DateUtils for blocked users list 2024-12-30 10:58:24 +01:00
combomarkdowneditor.tmpl Reimplement editor Tab handling with accessibility safeguards (#6813) 2025-05-25 19:17:03 +02:00
issueicon.tmpl ui: update pull request icons (#4455) 2024-07-16 14:38:46 +00:00
issuelist.tmpl chore: move template context (#8663) 2025-07-25 11:55:15 +02:00
label_filter.tmpl chore: move template context (#8663) 2025-07-25 11:55:15 +02:00
quota_overview.tmpl feat(ui): add quota overview (#6602) 2025-02-26 14:36:53 +00:00
repo_search.tmpl Migrate margin and padding helpers to tailwind (#30043) 2024-03-30 07:17:29 +01:00
searchbottom.tmpl [PORT] Refactor DateUtils and merge TimeSince (gitea#32409) 2024-11-10 22:23:27 +01:00
searchfile.tmpl Update module github.com/editorconfig-checker/editorconfig-checker/v2/cmd/editorconfig-checker to v3 2024-08-09 21:03:37 +02:00