forgejo/templates/repo
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
branch feat: require data-modal-id for delete buttons (#8711) 2025-08-08 01:53:23 +02:00
cite
code
diff fix(ui): compare branches even with pull requests disabled (#8496) 2025-08-03 06:19:45 +02:00
editor chore(ui): improve hashbox (#8721) 2025-08-03 05:49:24 +02:00
find
graph feat: add tag label to commit list view (#8759) 2025-08-06 14:47:51 +02:00
issue feat: require data-modal-id for delete buttons (#8711) 2025-08-08 01:53:23 +02:00
migrate
projects
pulls
release feat: require data-modal-id for delete buttons (#8711) 2025-08-08 01:53:23 +02:00
settings feat: require data-modal-id for delete buttons (#8711) 2025-08-08 01:53:23 +02:00
tag feat: require data-modal-id for delete buttons (#8711) 2025-08-08 01:53:23 +02:00
wiki feat: require data-modal-id for delete buttons (#8711) 2025-08-08 01:53:23 +02:00
activity.tmpl
admin_flags.tmpl
blame.tmpl
branch_dropdown.tmpl
clone_buttons.tmpl
clone_script.tmpl
code_frequency.tmpl
commit_header.tmpl chore(ui): improve hashbox (#8721) 2025-08-03 05:49:24 +02:00
commit_load_branches_and_tags.tmpl
commit_page.tmpl
commit_status.tmpl
commit_statuses.tmpl
commits.tmpl
commits_list.tmpl feat: add tag label to commit list view (#8759) 2025-08-06 14:47:51 +02:00
commits_list_small.tmpl
commits_search_dropdown.tmpl
commits_table.tmpl chore(ui): improve hashbox (#8721) 2025-08-03 05:49:24 +02:00
contributors.tmpl
create.tmpl
create_advanced.tmpl
create_basic.tmpl
create_from_template.tmpl
create_helper.tmpl
create_init.tmpl
empty.tmpl
file_info.tmpl
flags.tmpl
forks.tmpl
graph.tmpl
header.tmpl
header_fork.tmpl
home.tmpl
icon.tmpl
latest_commit.tmpl
navbar.tmpl
packages.tmpl
pulse.tmpl
recent_commits.tmpl
release_tag_header.tmpl fix(ui): make releases filtering responsive (#8399) 2025-07-08 16:58:49 +02:00
search.tmpl
search_name.tmpl
shabox.tmpl chore(ui): improve hashbox (#8721) 2025-08-03 05:49:24 +02:00
shabox_badge.tmpl
star_unstar.tmpl
sub_menu.tmpl feat(ui): pretty-print commit counts and other numbers (#8704) 2025-07-28 15:16:27 +02:00
unicode_escape_prompt.tmpl
upload.tmpl
user_cards.tmpl
view_file.tmpl frontend: generic lazy loader for webcomponents (#8510) 2025-07-23 04:10:50 +02:00
view_list.tmpl git/commit: re-implement submodules file reader (#8438) 2025-07-15 00:20:00 +02:00
watch_unwatch.tmpl
watchers.tmpl