You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/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>
2 years ago
..
admin Webhook list enhancements (#21893) 2 years ago
api/packages/pypi Add Package Registry (#16510) 2 years ago
base Allow disable RSS/Atom feed (#21622) 2 years ago
code Run `make fmt` (#21437) 2 years ago
custom Add footer extra links template (#9576) 5 years ago
explore Fix flex layout for repo list icons (#21896) 2 years ago
mail Add team member invite by email (#20307) 2 years ago
org Embed Matrix icon as SVG (#21890) 2 years ago
package Add package registry cleanup rules (#21658) 2 years ago
repo Fix button in branch list, avoid unexpected page jump before restore branch actually done (#21562) 2 years ago
shared Timeline and color tweaks (#21799) 2 years ago
status Remove fomantic image module (#21145) 2 years ago
swagger Support comma-delimited string as labels in issue template (#21831) 2 years ago
user Add option to enable CAPTCHA validation for login (#21638) 2 years ago
home.tmpl fix(web): add `alt` for logo in home page (#21887) 2 years ago
install.tmpl Clean up formatting on install page (#21668) 2 years ago
post-install.tmpl Rename StaticUrlPrefix to AssetUrlPrefix (#15779) 3 years ago