forgejo/templates/admin
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
..
applications Always use ctx.Locale.Tr inside templates (#27231) 2023-09-25 08:56:50 +00:00
auth feat: require data-modal-id for delete buttons (#8711) 2025-08-08 01:53:23 +02:00
emails feat: require data-modal-id for delete buttons (#8711) 2025-08-08 01:53:23 +02:00
moderation feat: Admin interface for abuse reports (#7905) 2025-07-23 00:20:15 +02:00
org fix(i18n): fix several usages of i18n (#7422) 2025-04-02 14:50:02 +00:00
packages feat: require data-modal-id for delete buttons (#8711) 2025-08-08 01:53:23 +02:00
repo feat: require data-modal-id for delete buttons (#8711) 2025-08-08 01:53:23 +02:00
runners Move secrets and runners settings to actions settings (#24200) 2023-04-27 20:08:47 -04:00
user feat(ui): show size constraints of custom avatar (#7998) 2025-06-14 16:35:50 +02:00
actions.tmpl Added instance-level variables (#28115) 2023-12-25 07:28:59 +00:00
config.tmpl feat!: Abusive content reporting (#6977) 2025-05-18 08:05:16 +00:00
config_settings.tmpl Remove fomantic checkbox module (#30162) 2024-04-07 11:05:37 +02:00
cron.tmpl [PORT] Refactor DateUtils and merge TimeSince (gitea#32409) 2024-11-10 22:23:27 +01:00
dashboard.tmpl Remove urls from translations (#31950) 2024-09-12 17:28:58 +05: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
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 [UI] Fix admin layout 2024-07-30 23:35:22 +02:00
navbar.tmpl feat: Admin interface for abuse reports (#7905) 2025-07-23 00:20:15 +02:00
notice.tmpl fix(i18n): fix several usages of i18n (#7422) 2025-04-02 14:50:02 +00:00
queue.tmpl Always use ctx.Locale.Tr inside templates (#27231) 2023-09-25 08:56:50 +00:00
queue_manage.tmpl Migrate margin and padding helpers to tailwind (#30043) 2024-03-30 07:17:29 +01:00
self_check.tmpl Add cache test for admins (#31265) 2024-06-23 11:27:03 +02:00
stacktrace-row.tmpl feat: require data-modal-id for delete buttons (#8711) 2025-08-08 01:53:23 +02:00
stacktrace.tmpl feat: require data-modal-id for delete buttons (#8711) 2025-08-08 01:53:23 +02:00
stats.tmpl [REFACTOR] Simplify converting struct to map in admin stats 2024-02-22 22:25:19 +01:00
system_status.tmpl Auto-update the system status in admin dashboard (#29163) 2024-02-17 23:24:31 +01:00