forgejo/templates
HesterG c6f1fb1c6d
Use fetch form action for lock/unlock/pin/unpin on sidebar (#25380)
Before:

<img width="364" alt="Screen Shot 2023-06-20 at 11 59 11"
src="https://github.com/go-gitea/gitea/assets/17645053/ad284b7e-8d21-43be-b178-bbcfd37cb5bd">

Might trigger many posts when keep clicking the buttons above.

<img width="448" alt="Screen Shot 2023-06-20 at 11 52 28"
src="https://github.com/go-gitea/gitea/assets/17645053/a60aa6ac-af74-45e4-b13a-512b436b81b0">
<img width="678" alt="Screen Shot 2023-06-20 at 11 52 37"
src="https://github.com/go-gitea/gitea/assets/17645053/d6662700-3643-4cc7-a2ec-64e1c0f5fbdb">

After (PR sidebar, Same for issue):


https://github.com/go-gitea/gitea/assets/17645053/9df3ad1f-e29c-439b-8bde-e6b917d63cc6

For delete, it is using `base/modal_actions_confirm` subtemplate, and we
might need another general solution for this (maybe add another
attribute to the subtemplate or something)

---------

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Giteabot <teabot@gitea.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2023-06-29 04:16:04 +00:00
..
admin Split lfs size from repository size (#22900) 2023-06-28 22:41:02 +00:00
api/packages/pypi Remove incorrect HTML self close tag (#23748) 2023-03-27 18:05:51 +02:00
base Align language menu icon and fit the footer area (#25556) 2023-06-28 14:57:50 +00:00
code Use flex instead of float for sort button and search input (#25519) 2023-06-28 20:10:36 +08:00
custom
devtest Add toasts to UI (#25449) 2023-06-27 02:45:24 +00:00
explore Use flex instead of float for sort button and search input (#25519) 2023-06-28 20:10:36 +08:00
mail Add template linting via djlint (#25212) 2023-06-14 18:17:58 +00:00
org Support configuration variables on Gitea Actions (#24724) 2023-06-20 22:54:15 +00:00
package Introduce shared template for search inputs (#25338) 2023-06-22 10:27:35 +00:00
projects Remove test string (#25447) 2023-06-22 10:29:57 -05:00
repo Use fetch form action for lock/unlock/pin/unpin on sidebar (#25380) 2023-06-29 04:16:04 +00:00
shared Introduce shared template for search inputs (#25338) 2023-06-22 10:27:35 +00:00
status Show OAuth2 errors to end users (#25261) 2023-06-15 01:12:50 +00:00
swagger Use correct response code in push mirror creation response in v1_json.tmpl (#25476) 2023-06-28 22:00:19 +00:00
user Split lfs size from repository size (#22900) 2023-06-28 22:41:02 +00:00
home.tmpl Improve home page template, fix Sort dropdown menu flash (#23856) 2023-04-01 13:47:54 +08:00
install.tmpl Remove "CHARSET" config option for MySQL, always use "utf8mb4" (#25413) 2023-06-21 10:49:25 +00:00
post-install.tmpl Remove incorrect element ID on "post-install" page (#25104) 2023-06-08 12:23:39 +08:00