diff options
Diffstat (limited to 'templates/user')
-rw-r--r-- | templates/user/settings/account.tmpl | 12 | ||||
-rw-r--r-- | templates/user/settings/applications.tmpl | 6 | ||||
-rw-r--r-- | templates/user/settings/applications_oauth2_list.tmpl | 6 | ||||
-rw-r--r-- | templates/user/settings/grants_oauth2.tmpl | 6 | ||||
-rw-r--r-- | templates/user/settings/keys_gpg.tmpl | 6 | ||||
-rw-r--r-- | templates/user/settings/keys_principal.tmpl | 6 | ||||
-rw-r--r-- | templates/user/settings/keys_ssh.tmpl | 6 | ||||
-rw-r--r-- | templates/user/settings/organization.tmpl | 7 | ||||
-rw-r--r-- | templates/user/settings/repos.tmpl | 16 | ||||
-rw-r--r-- | templates/user/settings/security/accountlinks.tmpl | 6 | ||||
-rw-r--r-- | templates/user/settings/security/openid.tmpl | 6 | ||||
-rw-r--r-- | templates/user/settings/security/twofa.tmpl | 6 | ||||
-rw-r--r-- | templates/user/settings/security/webauthn.tmpl | 6 |
13 files changed, 46 insertions, 49 deletions
diff --git a/templates/user/settings/account.tmpl b/templates/user/settings/account.tmpl index 53f7d021e0..2ad3eb7af2 100644 --- a/templates/user/settings/account.tmpl +++ b/templates/user/settings/account.tmpl @@ -161,26 +161,26 @@ </div> </div> -<div class="ui small basic delete modal" id="delete-email"> - <div class="ui icon header"> +<div class="ui gitea-confirm-modal delete modal" id="delete-email"> + <div class="header"> {{svg "octicon-trash"}} {{.locale.Tr "settings.email_deletion"}} </div> <div class="content"> <p>{{.locale.Tr "settings.email_deletion_desc"}}</p> </div> - {{template "base/delete_modal_actions" .}} + {{template "base/modal_actions_confirm" .}} </div> -<div class="ui small basic delete modal" id="delete-account"> - <div class="ui icon header"> +<div class="ui gitea-confirm-modal delete modal" id="delete-account"> + <div class="header"> {{svg "octicon-trash"}} {{.locale.Tr "settings.delete_account_title"}} </div> <div class="content"> <p>{{.locale.Tr "settings.delete_account_desc"}}</p> </div> - {{template "base/delete_modal_actions" .}} + {{template "base/modal_actions_confirm" .}} </div> {{template "base/footer" .}} diff --git a/templates/user/settings/applications.tmpl b/templates/user/settings/applications.tmpl index 2694f5cad0..bb0fba8f4f 100644 --- a/templates/user/settings/applications.tmpl +++ b/templates/user/settings/applications.tmpl @@ -268,8 +268,8 @@ </div> </div> -<div class="ui small basic delete modal" id="delete-token"> - <div class="ui icon header"> +<div class="ui gitea-confirm-modal delete modal" id="delete-token"> + <div class="header"> {{svg "octicon-trash"}} {{.locale.Tr "settings.access_token_deletion"}} </div> @@ -277,7 +277,7 @@ <p>{{.locale.Tr "settings.access_token_deletion_desc"}}</p> </div> - <div class="actions">{{/* TODO: Convert to base/delete_modal_actions.tmpl */}} + <div class="actions">{{/* TODO: Convert to base/modal_actions_confirm.tmpl */}} <button class="ui green basic inverted cancel button"> {{svg "octicon-x"}} {{.locale.Tr "settings.access_token_deletion_cancel_action"}} diff --git a/templates/user/settings/applications_oauth2_list.tmpl b/templates/user/settings/applications_oauth2_list.tmpl index 8ec3045324..5a9554b030 100644 --- a/templates/user/settings/applications_oauth2_list.tmpl +++ b/templates/user/settings/applications_oauth2_list.tmpl @@ -47,13 +47,13 @@ </form> </div> -<div class="ui small basic delete modal" id="remove-gitea-oauth2-application"> - <div class="ui icon header"> +<div class="ui gitea-confirm-modal delete modal" id="remove-gitea-oauth2-application"> + <div class="header"> {{svg "octicon-trash"}} {{.locale.Tr "settings.remove_oauth2_application"}} </div> <div class="content"> <p>{{.locale.Tr "settings.oauth2_application_remove_description"}}</p> </div> - {{template "base/delete_modal_actions" .}} + {{template "base/modal_actions_confirm" .}} </div> diff --git a/templates/user/settings/grants_oauth2.tmpl b/templates/user/settings/grants_oauth2.tmpl index 3b92f35f37..205b374176 100644 --- a/templates/user/settings/grants_oauth2.tmpl +++ b/templates/user/settings/grants_oauth2.tmpl @@ -28,13 +28,13 @@ </div> </div> -<div class="ui small basic delete modal" id="revoke-gitea-oauth2-grant"> - <div class="ui icon header"> +<div class="ui gitea-confirm-modal 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/delete_modal_actions" .}} + {{template "base/modal_actions_confirm" .}} </div> diff --git a/templates/user/settings/keys_gpg.tmpl b/templates/user/settings/keys_gpg.tmpl index 9ba9199db7..46b60aafd8 100644 --- a/templates/user/settings/keys_gpg.tmpl +++ b/templates/user/settings/keys_gpg.tmpl @@ -111,13 +111,13 @@ <br> <p>{{.locale.Tr "settings.gpg_helper" "https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/about-commit-signature-verification#gpg-commit-signature-verification" | Str2html}}</p> -<div class="ui small basic delete modal" id="delete-gpg"> - <div class="ui icon header"> +<div class="ui gitea-confirm-modal delete modal" id="delete-gpg"> + <div class="header"> {{svg "octicon-trash"}} {{.locale.Tr "settings.gpg_key_deletion"}} </div> <div class="content"> <p>{{.locale.Tr "settings.gpg_key_deletion_desc"}}</p> </div> - {{template "base/delete_modal_actions" .}} + {{template "base/modal_actions_confirm" .}} </div> diff --git a/templates/user/settings/keys_principal.tmpl b/templates/user/settings/keys_principal.tmpl index 6194db13ab..5251e465fd 100644 --- a/templates/user/settings/keys_principal.tmpl +++ b/templates/user/settings/keys_principal.tmpl @@ -54,14 +54,14 @@ </div> </div> - <div class="ui small basic delete modal" id="delete-principal"> - <div class="ui icon header"> + <div class="ui gitea-confirm-modal delete modal" id="delete-principal"> + <div class="header"> {{svg "octicon-trash"}} {{.locale.Tr "settings.ssh_principal_deletion"}} </div> <div class="content"> <p>{{.locale.Tr "settings.ssh_principal_deletion_desc"}}</p> </div> - {{template "base/delete_modal_actions" .}} + {{template "base/modal_actions_confirm" .}} </div> {{end}} diff --git a/templates/user/settings/keys_ssh.tmpl b/templates/user/settings/keys_ssh.tmpl index b60434cae4..d66b4ea528 100644 --- a/templates/user/settings/keys_ssh.tmpl +++ b/templates/user/settings/keys_ssh.tmpl @@ -100,13 +100,13 @@ <br> <p>{{.locale.Tr "settings.ssh_helper" "https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/connecting-to-github-with-ssh" "https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/troubleshooting-ssh" | Str2html}}</p> -<div class="ui small basic delete modal" id="delete-ssh"> - <div class="ui icon header"> +<div class="ui gitea-confirm-modal delete modal" id="delete-ssh"> + <div class="header"> {{svg "octicon-trash"}} {{.locale.Tr "settings.ssh_key_deletion"}} </div> <div class="content"> <p>{{.locale.Tr "settings.ssh_key_deletion_desc"}}</p> </div> - {{template "base/delete_modal_actions" .}} + {{template "base/modal_actions_confirm" .}} </div> diff --git a/templates/user/settings/organization.tmpl b/templates/user/settings/organization.tmpl index cd513db249..97b5a6a0bc 100644 --- a/templates/user/settings/organization.tmpl +++ b/templates/user/settings/organization.tmpl @@ -40,14 +40,13 @@ </div> </div> </div> -<div class="ui small basic delete modal" id="leave-organization"> - <div class="ui icon header"> - {{svg "octicon-x" 16 "close inside"}} +<div class="ui gitea-confirm-modal delete modal" id="leave-organization"> + <div class="header"> {{$.locale.Tr "org.members.leave"}} </div> <div class="content"> <p>{{$.locale.Tr "org.members.leave.detail" `<span class="dataOrganizationName"></span>` | Safe}}</p> </div> - {{template "base/delete_modal_actions" .}} + {{template "base/modal_actions_confirm" .}} </div> {{template "base/footer" .}} diff --git a/templates/user/settings/repos.tmpl b/templates/user/settings/repos.tmpl index 95ea8d7d0d..7f0b106614 100644 --- a/templates/user/settings/repos.tmpl +++ b/templates/user/settings/repos.tmpl @@ -38,8 +38,7 @@ <div class="right floated content"> {{if $.allowAdopt}} <button class="ui button submit tiny green adopt show-modal" data-modal="#adopt-unadopted-modal-{{$dirI}}"><span class="icon">{{svg "octicon-plus"}}</span><span class="label">{{$.locale.Tr "repo.adopt_preexisting_label"}}</span></button> - <div class="ui basic modal" id="adopt-unadopted-modal-{{$dirI}}"> - {{svg "octicon-x" 16 "close inside"}} + <div class="ui gitea-confirm-modal modal" id="adopt-unadopted-modal-{{$dirI}}"> <div class="header"> <span class="label">{{$.locale.Tr "repo.adopt_preexisting"}}</span> </div> @@ -50,7 +49,7 @@ {{$.CsrfTokenHtml}} <input type="hidden" name="id" value="{{$dir}}"> <input type="hidden" name="action" value="adopt"> - <div class="actions"> + <div class="actions">{{/* TODO: Convert to base/modal_actions_confirm */}} <button class="ui red basic inverted cancel button"> {{svg "octicon-x"}} {{$.locale.Tr "modal.no"}} @@ -65,8 +64,7 @@ {{end}} {{if $.allowDelete}} <button class="ui button submit tiny red delete show-modal" data-modal="#delete-unadopted-modal-{{$dirI}}"><span class="icon">{{svg "octicon-x"}}</span><span class="label">{{$.locale.Tr "repo.delete_preexisting_label"}}</span></button> - <div class="ui basic modal" id="delete-unadopted-modal-{{$dirI}}"> - {{svg "octicon-x" 16 "close inside"}} + <div class="ui gitea-confirm-modal modal" id="delete-unadopted-modal-{{$dirI}}"> <div class="header"> <span class="label">{{$.locale.Tr "repo.delete_preexisting"}}</span> </div> @@ -77,7 +75,7 @@ {{$.CsrfTokenHtml}} <input type="hidden" name="id" value="{{$dir}}"> <input type="hidden" name="action" value="delete"> - {{template "base/delete_modal_actions" $}} + {{template "base/modal_actions_confirm" $}} </form> </div> {{end}} @@ -131,14 +129,14 @@ </div> </div> -<div class="ui small basic delete modal"> - <div class="ui icon header"> +<div class="ui gitea-confirm-modal delete modal"> + <div class="header"> {{svg "octicon-trash"}} {{.locale.Tr "settings.remove_account_link"}} </div> <div class="content"> <p>{{.locale.Tr "settings.remove_account_link_desc"}}</p> </div> - {{template "base/delete_modal_actions" .}} + {{template "base/modal_actions_confirm" .}} </div> {{template "base/footer" .}} diff --git a/templates/user/settings/security/accountlinks.tmpl b/templates/user/settings/security/accountlinks.tmpl index e8eed63294..196d07c56f 100644 --- a/templates/user/settings/security/accountlinks.tmpl +++ b/templates/user/settings/security/accountlinks.tmpl @@ -41,13 +41,13 @@ </div> </div> -<div class="ui small basic delete modal" id="delete-account-link"> - <div class="ui icon header"> +<div class="ui gitea-confirm-modal delete modal" id="delete-account-link"> + <div class="header"> {{svg "octicon-trash"}} {{.locale.Tr "settings.remove_account_link"}} </div> <div class="content"> <p>{{.locale.Tr "settings.remove_account_link_desc"}}</p> </div> - {{template "base/delete_modal_actions" .}} + {{template "base/modal_actions_confirm" .}} </div> diff --git a/templates/user/settings/security/openid.tmpl b/templates/user/settings/security/openid.tmpl index 5d6c9cf8cd..7a206a021a 100644 --- a/templates/user/settings/security/openid.tmpl +++ b/templates/user/settings/security/openid.tmpl @@ -51,13 +51,13 @@ </form> </div> -<div class="ui small basic delete modal" id="delete-openid"> - <div class="ui icon header"> +<div class="ui gitea-confirm-modal delete modal" id="delete-openid"> + <div class="header"> {{svg "octicon-trash"}} {{.locale.Tr "settings.openid_deletion"}} </div> <div class="content"> <p>{{.locale.Tr "settings.openid_deletion_desc"}}</p> </div> - {{template "base/delete_modal_actions" .}} + {{template "base/modal_actions_confirm" .}} </div> diff --git a/templates/user/settings/security/twofa.tmpl b/templates/user/settings/security/twofa.tmpl index 1a0a8a6432..f00651e7fc 100644 --- a/templates/user/settings/security/twofa.tmpl +++ b/templates/user/settings/security/twofa.tmpl @@ -23,13 +23,13 @@ {{end}} </div> -<div class="ui small basic delete modal" id="disable-twofa"> - <div class="ui icon header"> +<div class="ui gitea-confirm-modal delete modal" id="disable-twofa"> + <div class="header"> {{svg "octicon-trash"}} {{.locale.Tr "settings.twofa_disable"}} </div> <div class="content"> <p>{{.locale.Tr "settings.twofa_disable_desc"}}</p> </div> - {{template "base/delete_modal_actions" .}} + {{template "base/modal_actions_confirm" .}} </div> diff --git a/templates/user/settings/security/webauthn.tmpl b/templates/user/settings/security/webauthn.tmpl index 2fea2843f6..25b7f03fca 100644 --- a/templates/user/settings/security/webauthn.tmpl +++ b/templates/user/settings/security/webauthn.tmpl @@ -30,13 +30,13 @@ {{template "user/auth/webauthn_error" .}} -<div class="ui small basic delete modal" id="delete-registration"> - <div class="ui icon header"> +<div class="ui gitea-confirm-modal delete modal" id="delete-registration"> + <div class="header"> {{svg "octicon-trash"}} {{.locale.Tr "settings.webauthn_delete_key"}} </div> <div class="content"> <p>{{.locale.Tr "settings.webauthn_delete_key_desc"}}</p> </div> - {{template "base/delete_modal_actions" .}} + {{template "base/modal_actions_confirm" .}} </div> |