0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-28 19:18:52 +01:00
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
branches.tmpl
collaboration.tmpl
deploy_keys.tmpl
githook_edit.tmpl
githooks.tmpl
layout_footer.tmpl
layout_head.tmpl
lfs_file_find.tmpl Fix mobile navbar and misc cleanups (#25134) 2023-06-09 09:10:51 +00:00
lfs_file.tmpl Add PDF rendering via PDFObject (#24086) 2023-05-29 12:10:00 +00:00
lfs_locks.tmpl
lfs_pointers.tmpl
lfs.tmpl
nav.tmpl
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