]> source.dussan.org Git - gitea.git/commitdiff
Removed invalid form tag (#14391)
authorKN4CK3R <KN4CK3R@users.noreply.github.com>
Tue, 19 Jan 2021 03:02:47 +0000 (04:02 +0100)
committerGitHub <noreply@github.com>
Tue, 19 Jan 2021 03:02:47 +0000 (04:02 +0100)
introduced by #5073

templates/repo/issue/view_content/sidebar.tmpl

index c8cc454928eb53b34d28b03f3f5027afd2954403..3a21a9271b2a2b264498418fef527e1e3a7dffd9 100644 (file)
                        {{ 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>