summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2021-01-19 06:12:04 +0100
committerGitHub <noreply@github.com>2021-01-19 07:12:04 +0200
commit4583caa077b2bf3b4d580646fdee06e4b08d99b4 (patch)
tree65cc53a4a4abb5f2bbc4e561181598abba6b588d
parentcf20ebc8ba27a2a8a3cf351dcfc4677fc21e90f9 (diff)
downloadgitea-4583caa077b2bf3b4d580646fdee06e4b08d99b4.tar.gz
gitea-4583caa077b2bf3b4d580646fdee06e4b08d99b4.zip
Removed invalid form tag (#14391) (#14395)
introduced by #5073 Co-authored-by: KN4CK3R <KN4CK3R@users.noreply.github.com>
-rw-r--r--templates/repo/issue/view_content/sidebar.tmpl23
1 files changed, 10 insertions, 13 deletions
diff --git a/templates/repo/issue/view_content/sidebar.tmpl b/templates/repo/issue/view_content/sidebar.tmpl
index 8a89f2b20c..34b4a25f39 100644
--- a/templates/repo/issue/view_content/sidebar.tmpl
+++ b/templates/repo/issue/view_content/sidebar.tmpl
@@ -193,7 +193,7 @@
{{if .IsProjectsEnabled}}
<div class="ui divider"></div>
-
+
<div class="ui {{if or (not .HasIssuesOrPullsWritePermission) .Repository.IsArchived}}disabled{{end}} floating jump select-project dropdown">
<span class="text">
<strong>{{.i18n.Tr "repo.issues.new.projects"}}</strong>
@@ -518,18 +518,15 @@
{{ if and .IsRepoAdmin (not .Repository.IsArchived) }}
<div class="ui divider"></div>
<div class="ui watching">
- <div>
- <button class="fluid ui show-modal button {{if .Issue.IsLocked }} negative {{ end }}" data-modal="#lock">
- {{if .Issue.IsLocked}}
- {{svg "octicon-key"}}
- {{.i18n.Tr "repo.issues.unlock"}}
- {{else}}
- {{svg "octicon-lock"}}
- {{.i18n.Tr "repo.issues.lock"}}
- {{end}}
- </button>
- </form>
- </div>
+ <button class="fluid ui show-modal button {{if .Issue.IsLocked }} negative {{ end }}" data-modal="#lock">
+ {{if .Issue.IsLocked}}
+ {{svg "octicon-key"}}
+ {{.i18n.Tr "repo.issues.unlock"}}
+ {{else}}
+ {{svg "octicon-lock"}}
+ {{.i18n.Tr "repo.issues.lock"}}
+ {{end}}
+ </button>
</div>