summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKN4CK3R <KN4CK3R@users.noreply.github.com>2021-01-19 04:02:47 +0100
committerGitHub <noreply@github.com>2021-01-19 04:02:47 +0100
commit8d0e331c0abcda2a6da16c3eafecc98d38a8d4ae (patch)
treef2e44ac439618847f753fbb3178f3625fa328d12
parent185c5ae2c468c71e08649b619185bad5959c0c57 (diff)
downloadgitea-8d0e331c0abcda2a6da16c3eafecc98d38a8d4ae.tar.gz
gitea-8d0e331c0abcda2a6da16c3eafecc98d38a8d4ae.zip
Removed invalid form tag (#14391)
introduced by #5073
-rw-r--r--templates/repo/issue/view_content/sidebar.tmpl21
1 files changed, 9 insertions, 12 deletions
diff --git a/templates/repo/issue/view_content/sidebar.tmpl b/templates/repo/issue/view_content/sidebar.tmpl
index c8cc454928..3a21a9271b 100644
--- a/templates/repo/issue/view_content/sidebar.tmpl
+++ b/templates/repo/issue/view_content/sidebar.tmpl
@@ -527,18 +527,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>