gitea/templates
Xinyu Zhou 26f941fbda
Fix button in branch list, avoid unexpected page jump before restore branch actually done (#21562)
This patch:
- Use `<button>` replace anchor link `<a>` in **_Delete/Restore
Branch_** button to avoid unexpected page jump before restore branch
actually done.
- Also replace right side buttons with `<button>` in branch list, let
some screen readers know they are buttons.


## Before
click restore branch -> restore triggered -> page refreshed, but branch
status not update -> manually refresh page

<details>


https://user-images.githubusercontent.com/76462613/197389108-5a0bd259-0455-40b2-92ac-4326900276f8.mp4

</details>

## After
waiting restore done -> page refresh -> branch status update

<details>


https://user-images.githubusercontent.com/76462613/197428683-616fcbd2-70f9-4572-bf76-e0b7f77b6dd7.mp4

</details>

Signed-off-by: baronbunny <its@baronbunny.cn>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
2022-11-24 20:29:43 +08:00
..
admin Webhook list enhancements (#21893) 2022-11-22 07:10:42 +08:00
api/packages/pypi
base Allow disable RSS/Atom feed (#21622) 2022-11-21 13:14:58 +08:00
code
custom
explore Fix flex layout for repo list icons (#21896) 2022-11-23 22:01:30 -06:00
mail
org
package
repo Fix button in branch list, avoid unexpected page jump before restore branch actually done (#21562) 2022-11-24 20:29:43 +08:00
shared
status
swagger
user Add option to enable CAPTCHA validation for login (#21638) 2022-11-22 21:13:18 +00:00
home.tmpl
install.tmpl
post-install.tmpl