From 41354392d12ce31a1aee81f70214d3a1cabae9cc Mon Sep 17 00:00:00 2001 From: baronbunny Date: Sun, 23 Oct 2022 19:01:07 +0800 Subject: [PATCH] UI: bug fix, replace html tags with
in button: delete branch reason: - unified code style - Edge Browser Warning: `Links must have discernible text: Element has no title attribute` - Using an empty anchor as an HTML tag will point to the current page, which cause the page jump before the execution of JavaScript Signed-off-by: baronbunny --- templates/repo/branch/list.tmpl | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/templates/repo/branch/list.tmpl b/templates/repo/branch/list.tmpl index 09799fbece..2da3a27317 100644 --- a/templates/repo/branch/list.tmpl +++ b/templates/repo/branch/list.tmpl @@ -123,11 +123,15 @@ {{end}} {{if and $.IsWriter (not $.IsMirror) (not $.Repository.IsArchived) (not .IsProtected)}} {{if .IsDeleted}} - {{svg "octicon-reply"}} +
+ + {{svg "octicon-reply"}} + +
{{else}} - + {{end}} {{end}}