forgejo/templates/repo/issue
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
..
fields Don't show hidden labels when filling out an issue template (#31576) 2024-07-14 10:39:08 +02:00
labels feat: require data-modal-id for delete buttons (#8711) 2025-08-08 01:53:23 +02:00
milestone feat: reduce amount of morphing for milestone (#8350) 2025-07-15 02:22:49 +02:00
view_content feat: require data-modal-id for delete buttons (#8711) 2025-08-08 01:53:23 +02:00
card.tmpl chore: move template context (#8663) 2025-07-25 11:55:15 +02:00
choose.tmpl Fix spacing in issue navbar (#30238) 2024-04-07 15:40:31 +02:00
comment_tab.tmpl Always use ctx.Locale.Tr inside templates (#27231) 2023-09-25 08:56:50 +00:00
filter_actions.tmpl chore: move template context (#8663) 2025-07-25 11:55:15 +02:00
filter_list.tmpl [gitea] week 2025-22 cherry pick (gitea/main -> forgejo) (#8198) 2025-06-17 18:28:07 +02:00
filters.tmpl Migrate margin and padding helpers to tailwind (#30043) 2024-03-30 07:17:29 +01:00
label_precolors.tmpl Replace 10 more gt- classes with tw- (#29945) 2024-03-26 19:04:27 +01:00
labels.tmpl Fix spacing in issue navbar (#30238) 2024-04-07 15:40:31 +02:00
list.tmpl Replace gt-word-break with tw-break-anywhere 2024-06-11 08:57:27 +05:00
milestone_issues.tmpl [PORT] Refactor DateUtils and merge TimeSince (gitea#32409) 2024-11-10 22:23:27 +01:00
milestone_new.tmpl feat: use combo markdown editor for milestone description 2024-10-22 19:58:44 +02:00
milestones.tmpl feat: require data-modal-id for delete buttons (#8711) 2025-08-08 01:53:23 +02:00
navbar.tmpl fix(ui): correct switch ordering (#6576) 2025-01-15 19:56:17 +00:00
new.tmpl Fix incorrect redirection when creating a PR fails (#29537) 2024-03-06 12:10:45 +08:00
new_form.tmpl fix(ui): use usual and consistent size for project icons of 16 (#7175) 2025-03-09 15:05:24 +00:00
openclose.tmpl fix(ui): use gap in switch items (#7581) 2025-04-21 04:25:08 +00:00
search.tmpl port(gitea): Retain issue/pull sort type (#8067) 2025-06-06 15:30:52 +02:00
view.tmpl Make Issue/PR/projects more compact, misc CSS tweaks (#24459) 2023-05-03 17:58:59 -04:00
view_content.tmpl feat: require data-modal-id for delete buttons (#8711) 2025-08-08 01:53:23 +02:00
view_title.tmpl feat(ui): Display to maintainers in PR when it is editable 2025-02-09 16:22:25 +01:00