forgejo/templates/repo/issue/view_content
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
..
sidebar feat(ui): make 'Reference' in the issue sidebar more uniform (#8506) 2025-07-16 18:29:51 +02:00
add_reaction.tmpl Fix issue/comment menus 2024-12-30 16:06:18 +01:00
attachments.tmpl fix(ui): add missing lazy load attribute to images (#8246) 2025-06-25 18:31:03 +02:00
comments.tmpl fix(ui): issue comment review request targets when aggregated (#8689) 2025-07-27 10:12:28 +02:00
comments_authorlink.tmpl Include resource state events in Gitlab downloads (#29382) 2024-03-06 12:10:43 +08:00
comments_delete_time.tmpl Replace some gt- classes with tw- (#29570) 2024-03-11 23:36:57 +07:00
context_menu.tmpl fix: correct image source for quoted reply (#8565) 2025-07-19 15:03:10 +02:00
conversation.tmpl ui: update styling of comment headers and role labels (#6816) 2025-02-07 01:07:16 +00:00
pull.tmpl feat: require data-modal-id for delete buttons (#8711) 2025-08-08 01:53:23 +02:00
pull_merge_instruction.tmpl feat(ui): Suggest git switch instead of git checkout (#7385) 2025-03-30 11:37:15 +00:00
reactions.tmpl Fix issue/comment menus 2024-12-30 16:06:18 +01:00
reference_issue_dialog.tmpl Fix dropdown text ellipsis (#30628) 2024-04-22 21:02:29 +02:00
show_role.tmpl ui: update styling of comment headers and role labels (#6816) 2025-02-07 01:07:16 +00:00
sidebar.tmpl feat: "assign to me" button on PRs and issues 2024-10-08 18:36:37 +02:00
update_branch_by_merge.tmpl feat: allow changing default branch update style 2024-12-23 18:55:25 +03:00