From 16e9f4edd004150d9eece61c9e05ce119370c0f3 Mon Sep 17 00:00:00 2001 From: baronbunny Date: Mon, 24 Oct 2022 08:59:20 +0800 Subject: [PATCH] UI: use `button` tags as buttons in branch view Instead of divs these should be buttons so Screen readers know they are buttons Signed-off-by: baronbunny --- templates/repo/branch/list.tmpl | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/templates/repo/branch/list.tmpl b/templates/repo/branch/list.tmpl index 2da3a27317..3702410df5 100644 --- a/templates/repo/branch/list.tmpl +++ b/templates/repo/branch/list.tmpl @@ -22,18 +22,18 @@ {{if and $.IsWriter (not $.Repository.IsArchived) (not .IsDeleted)}} -
+
+ {{end}} {{if not $.DisableDownloadSourceArchives}} - + {{end}} @@ -108,30 +108,30 @@ {{if and $.IsWriter (not $.Repository.IsArchived) (not .IsDeleted)}} -
+
+ {{end}} {{if and (not .IsDeleted) (not $.DisableDownloadSourceArchives)}} - + {{end}} {{if and $.IsWriter (not $.IsMirror) (not $.Repository.IsArchived) (not .IsProtected)}} {{if .IsDeleted}} -
+
+ {{else}} -
+
+ {{end}} {{end}}