Use flex classes in package settings (#26314)
Regression of #25790 Fixes #26310 --------- Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
parent
daf7092863
commit
e6f8e9318b
|
@ -53,17 +53,23 @@
|
||||||
</div>
|
</div>
|
||||||
{{if and .Invites $.IsOrganizationOwner}}
|
{{if and .Invites $.IsOrganizationOwner}}
|
||||||
<h4 class="ui top attached header">{{$.locale.Tr "org.teams.invite_team_member.list"}}</h4>
|
<h4 class="ui top attached header">{{$.locale.Tr "org.teams.invite_team_member.list"}}</h4>
|
||||||
<div class="ui bottom attached table segment members">
|
<div class="ui attached segment">
|
||||||
{{range .Invites}}
|
<div class="flex-list">
|
||||||
<div class="item gt-df gt-ac gt-fw">
|
{{range .Invites}}
|
||||||
<span class="gt-f1">{{.Email}}</span>
|
<div class="flex-item flex-item-center">
|
||||||
<form action="{{$.OrgLink}}/teams/{{$.Team.LowerName | PathEscape}}/action/remove_invite" method="post">
|
<div class="flex-item-main">
|
||||||
{{$.CsrfTokenHtml}}
|
{{.Email}}
|
||||||
<input type="hidden" name="iid" value="{{.ID}}">
|
</div>
|
||||||
<button class="ui red button">{{$.locale.Tr "org.members.remove"}}</button>
|
<div class="flex-item-trailing">
|
||||||
</form>
|
<form action="{{$.OrgLink}}/teams/{{$.Team.LowerName | PathEscape}}/action/remove_invite" method="post">
|
||||||
</div>
|
{{$.CsrfTokenHtml}}
|
||||||
{{end}}
|
<input type="hidden" name="iid" value="{{.ID}}">
|
||||||
|
<button class="ui red button">{{$.locale.Tr "org.members.remove"}}</button>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{end}}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -38,28 +38,30 @@
|
||||||
<h4 class="ui top attached error header">
|
<h4 class="ui top attached error header">
|
||||||
{{.locale.Tr "repo.settings.danger_zone"}}
|
{{.locale.Tr "repo.settings.danger_zone"}}
|
||||||
</h4>
|
</h4>
|
||||||
<div class="ui attached error table danger segment">
|
<div class="ui attached error danger segment">
|
||||||
<div class="item">
|
<div class="flex-list">
|
||||||
<div class="ui right">
|
<div class="flex-item">
|
||||||
<button class="ui basic red show-modal button" data-modal="#delete-package-modal">{{.locale.Tr "packages.settings.delete"}}</button>
|
<div class="flex-item-main">
|
||||||
</div>
|
<div class="flex-item-title">{{.locale.Tr "packages.settings.delete"}}</div>
|
||||||
<div>
|
<div class="flex-item-body">{{.locale.Tr "packages.settings.delete.description"}}</div>
|
||||||
<h5>{{.locale.Tr "packages.settings.delete"}}</h5>
|
|
||||||
<p>{{.locale.Tr "packages.settings.delete.description"}}</p>
|
|
||||||
</div>
|
|
||||||
<div class="ui tiny modal" id="delete-package-modal">
|
|
||||||
<div class="header">
|
|
||||||
{{.locale.Tr "packages.settings.delete"}}
|
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="flex-item-trailing">
|
||||||
<div class="ui warning message gt-word-break">
|
<button class="ui basic red show-modal button" data-modal="#delete-package-modal">{{.locale.Tr "packages.settings.delete"}}</button>
|
||||||
{{.locale.Tr "packages.settings.delete.notice" .PackageDescriptor.Package.Name .PackageDescriptor.Version.Version}}
|
</div>
|
||||||
|
<div class="ui tiny modal" id="delete-package-modal">
|
||||||
|
<div class="header">
|
||||||
|
{{.locale.Tr "packages.settings.delete"}}
|
||||||
|
</div>
|
||||||
|
<div class="content">
|
||||||
|
<div class="ui warning message gt-word-break">
|
||||||
|
{{.locale.Tr "packages.settings.delete.notice" .PackageDescriptor.Package.Name .PackageDescriptor.Version.Version}}
|
||||||
|
</div>
|
||||||
|
<form class="ui form" action="{{.Link}}" method="post">
|
||||||
|
{{.CsrfTokenHtml}}
|
||||||
|
<input type="hidden" name="action" value="delete">
|
||||||
|
{{template "base/modal_actions_confirm" .}}
|
||||||
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<form class="ui form" action="{{.Link}}" method="post">
|
|
||||||
{{.CsrfTokenHtml}}
|
|
||||||
<input type="hidden" name="action" value="delete">
|
|
||||||
{{template "base/modal_actions_confirm" .}}
|
|
||||||
</form>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue