mirror of
https://github.com/go-gitea/gitea.git
synced 2026-09-16 01:43:24 +09:00
refactor(templates): update djlint to 1.46.0 and resolve its new findings (#39231)
This commit is contained in:
@@ -58,13 +58,13 @@
|
||||
{{end}}
|
||||
{{end}}
|
||||
{{if eq $.SignedUser.ID .ID}}
|
||||
<button class="ui red tiny button link-action"
|
||||
<button type="button" class="ui red tiny button link-action"
|
||||
data-url="{{$.OrgLink}}/members/action/leave?uid={{.ID}}"
|
||||
data-modal-confirm-header="{{ctx.Locale.Tr "org.members.leave"}}"
|
||||
data-modal-confirm-content="{{ctx.Locale.Tr "org.members.leave.detail" $.Org.DisplayName}}"
|
||||
>{{ctx.Locale.Tr "org.members.leave"}}</button>
|
||||
{{else if $.IsOrganizationOwner}}
|
||||
<button class="ui red tiny button link-action"
|
||||
<button type="button" class="ui red tiny button link-action"
|
||||
data-url="{{$.OrgLink}}/members/action/remove?uid={{.ID}}"
|
||||
data-modal-confirm-header="{{ctx.Locale.Tr "org.members.remove"}}"
|
||||
data-modal-confirm-content="{{ctx.Locale.Tr "org.members.remove.detail" .DisplayName $.Org.DisplayName}}"
|
||||
|
||||
Reference in New Issue
Block a user