gitea/templates/repo/settings
wxiaoguang 6bbccdd177
Improve AJAX link and modal confirm dialog (#25210)
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>
2023-06-13 12:10:10 +00:00
..
webhook New webhook trigger for receiving Pull Request review requests (#24481) 2023-05-24 22:06:27 -04:00
actions.tmpl Move secrets and runners settings to actions settings (#24200) 2023-04-27 20:08:47 -04:00
branches.tmpl Move `Rename branch` from repo settings page to the page of branches list (#24380) 2023-04-30 23:08:51 +08:00
collaboration.tmpl
deploy_keys.tmpl Change `add_on` translation to `added_on` and include placeholder for the date (#24562) 2023-05-06 21:11:27 +08:00
githook_edit.tmpl
githooks.tmpl
layout_footer.tmpl
layout_head.tmpl
lfs.tmpl
lfs_file.tmpl Add PDF rendering via PDFObject (#24086) 2023-05-29 12:10:00 +00:00
lfs_file_find.tmpl Fix mobile navbar and misc cleanups (#25134) 2023-06-09 09:10:51 +00:00
lfs_locks.tmpl
lfs_pointers.tmpl
nav.tmpl Move secrets and runners settings to actions settings (#24200) 2023-04-27 20:08:47 -04:00
navbar.tmpl Add details summary for vertical menus in settings to allow toggling (#25098) 2023-06-07 10:49:48 +08:00
options.tmpl Improve AJAX link and modal confirm dialog (#25210) 2023-06-13 12:10:10 +00:00
protected_branch.tmpl Remove cancel button from branch protection form (#25063) 2023-06-03 20:06:09 +08:00
runner_edit.tmpl
secrets.tmpl
tags.tmpl