Skip to content

Commit

Permalink
Removed invalid form tag (#14391)
Browse files Browse the repository at this point in the history
introduced by #5073
  • Loading branch information
KN4CK3R committed Jan 19, 2021
1 parent 185c5ae commit 8d0e331
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions templates/repo/issue/view_content/sidebar.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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>


Expand Down

0 comments on commit 8d0e331

Please sign in to comment.