Skip to content

Commit 4583caa

Browse files
6543KN4CK3R
andauthored
Removed invalid form tag (#14391) (#14395)
introduced by #5073 Co-authored-by: KN4CK3R <[email protected]>
1 parent cf20ebc commit 4583caa

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

templates/repo/issue/view_content/sidebar.tmpl

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@
193193

194194
{{if .IsProjectsEnabled}}
195195
<div class="ui divider"></div>
196-
196+
197197
<div class="ui {{if or (not .HasIssuesOrPullsWritePermission) .Repository.IsArchived}}disabled{{end}} floating jump select-project dropdown">
198198
<span class="text">
199199
<strong>{{.i18n.Tr "repo.issues.new.projects"}}</strong>
@@ -518,18 +518,15 @@
518518
{{ if and .IsRepoAdmin (not .Repository.IsArchived) }}
519519
<div class="ui divider"></div>
520520
<div class="ui watching">
521-
<div>
522-
<button class="fluid ui show-modal button {{if .Issue.IsLocked }} negative {{ end }}" data-modal="#lock">
523-
{{if .Issue.IsLocked}}
524-
{{svg "octicon-key"}}
525-
{{.i18n.Tr "repo.issues.unlock"}}
526-
{{else}}
527-
{{svg "octicon-lock"}}
528-
{{.i18n.Tr "repo.issues.lock"}}
529-
{{end}}
530-
</button>
531-
</form>
532-
</div>
521+
<button class="fluid ui show-modal button {{if .Issue.IsLocked }} negative {{ end }}" data-modal="#lock">
522+
{{if .Issue.IsLocked}}
523+
{{svg "octicon-key"}}
524+
{{.i18n.Tr "repo.issues.unlock"}}
525+
{{else}}
526+
{{svg "octicon-lock"}}
527+
{{.i18n.Tr "repo.issues.lock"}}
528+
{{end}}
529+
</button>
533530
</div>
534531

535532

0 commit comments

Comments
 (0)