Skip to content

Commit 8d0e331

Browse files
authored
Removed invalid form tag (#14391)
introduced by #5073
1 parent 185c5ae commit 8d0e331

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

templates/repo/issue/view_content/sidebar.tmpl

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -527,18 +527,15 @@
527527
{{ if and .IsRepoAdmin (not .Repository.IsArchived) }}
528528
<div class="ui divider"></div>
529529
<div class="ui watching">
530-
<div>
531-
<button class="fluid ui show-modal button {{if .Issue.IsLocked }} negative {{ end }}" data-modal="#lock">
532-
{{if .Issue.IsLocked}}
533-
{{svg "octicon-key"}}
534-
{{.i18n.Tr "repo.issues.unlock"}}
535-
{{else}}
536-
{{svg "octicon-lock"}}
537-
{{.i18n.Tr "repo.issues.lock"}}
538-
{{end}}
539-
</button>
540-
</form>
541-
</div>
530+
<button class="fluid ui show-modal button {{if .Issue.IsLocked }} negative {{ end }}" data-modal="#lock">
531+
{{if .Issue.IsLocked}}
532+
{{svg "octicon-key"}}
533+
{{.i18n.Tr "repo.issues.unlock"}}
534+
{{else}}
535+
{{svg "octicon-lock"}}
536+
{{.i18n.Tr "repo.issues.lock"}}
537+
{{end}}
538+
</button>
542539
</div>
543540

544541

0 commit comments

Comments
 (0)