mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-11 04:30:13 +00:00
e610b0389a
Backport #25629 by @wxiaoguang Fix #25628 Diff with ignoring space: https://github.com/go-gitea/gitea/pull/25629/files?diff=unified&w=1 The "modal" shouldn't appear between "ui attached segment", otherwise these segments lose margin-top. After the fix: <details> ![image](https://github.com/go-gitea/gitea/assets/2114189/ac15e73d-4ca8-416a-950d-ffc912c6ab61) ![image](https://github.com/go-gitea/gitea/assets/2114189/eb431336-4d21-4e44-8beb-8919595a83c8) ![image](https://github.com/go-gitea/gitea/assets/2114189/dffaed88-5ba2-419d-a241-24cb200f757c) ![image](https://github.com/go-gitea/gitea/assets/2114189/e8c5a03e-e16a-4c94-a1a5-7845d4e1a824) </details> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
41 lines
1.3 KiB
Handlebars
41 lines
1.3 KiB
Handlebars
<h4 class="ui top attached header">
|
|
{{.locale.Tr "settings.authorized_oauth2_applications"}}
|
|
</h4>
|
|
<div class="ui attached segment">
|
|
<div class="ui key list">
|
|
<div class="item">
|
|
{{.locale.Tr "settings.authorized_oauth2_applications_description"}}
|
|
</div>
|
|
{{range $grant := .Grants}}
|
|
<div class="item">
|
|
<div class="right floated content">
|
|
<button class="ui red tiny button delete-button" data-modal-id="revoke-gitea-oauth2-grant"
|
|
data-url="{{AppSubUrl}}/user/settings/applications/oauth2/{{$grant.ApplicationID}}/revoke/{{$grant.ID}}">
|
|
{{$.locale.Tr "settings.revoke_key"}}
|
|
</button>
|
|
</div>
|
|
<div class="left floated content">
|
|
{{svg "octicon-key"}}
|
|
</div>
|
|
<div class="content">
|
|
<strong>{{$grant.Application.Name}}</strong>
|
|
<div class="activity meta">
|
|
<i>{{$.locale.Tr "settings.added_on" (DateTime "short" $grant.CreatedUnix) | Safe}}</i>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{end}}
|
|
</div>
|
|
|
|
<div class="ui g-modal-confirm delete modal" id="revoke-gitea-oauth2-grant">
|
|
<div class="header">
|
|
{{svg "octicon-shield" 16 "gt-mr-2"}}
|
|
{{.locale.Tr "settings.revoke_oauth2_grant"}}
|
|
</div>
|
|
<div class="content">
|
|
<p>{{.locale.Tr "settings.revoke_oauth2_grant_description"}}</p>
|
|
</div>
|
|
{{template "base/modal_actions_confirm" .}}
|
|
</div>
|
|
</div>
|