gitea/templates/repo/settings
wxiaoguang 6bbccdd177
Improve AJAX link and modal confirm dialog ()
Clarify the "link-action" behavior:

>  // A "link-action" can post AJAX request to its "data-url"
> // Then the browser is redirect to: the "redirect" in response, or
"data-redirect" attribute, or current URL by reloading.

And enhance the "link-action" to support showing a modal dialog for
confirm. A similar general approach could also help PRs like
https://github.com/go-gitea/gitea/pull/22344#discussion_r1062883436

> // If the "link-action" has "data-modal-confirm(-html)" attribute, a
confirm modal dialog will be shown before taking action.


And a lot of duplicate code can be removed now. A good framework design
can help to avoid code copying&pasting.

---------

Co-authored-by: silverwind <me@silverwind.io>
..
webhook New webhook trigger for receiving Pull Request review requests ()
actions.tmpl Move secrets and runners settings to actions settings ()
branches.tmpl Move `Rename branch` from repo settings page to the page of branches list ()
collaboration.tmpl Modify width of ui container, fine tune css for settings pages and org header ()
deploy_keys.tmpl Change `add_on` translation to `added_on` and include placeholder for the date ()
githook_edit.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings ()
githooks.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings ()
layout_footer.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings ()
layout_head.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings ()
lfs.tmpl Improve some modal action buttons ()
lfs_file.tmpl Add PDF rendering via PDFObject ()
lfs_file_find.tmpl Fix mobile navbar and misc cleanups ()
lfs_locks.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings ()
lfs_pointers.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings ()
nav.tmpl Move secrets and runners settings to actions settings ()
navbar.tmpl Add details summary for vertical menus in settings to allow toggling ()
options.tmpl Improve AJAX link and modal confirm dialog ()
protected_branch.tmpl Remove cancel button from branch protection form ()
runner_edit.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings ()
secrets.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings ()
tags.tmpl Modify width of ui container, fine tune css for settings pages and org header ()