-
+ {{svg "octicon-trashcan"}}
{{.i18n.Tr "repo.settings.delete"}}
diff --git a/templates/admin/user/edit.tmpl b/templates/admin/user/edit.tmpl
index 95323a97b215..66f3c967112e 100644
--- a/templates/admin/user/edit.tmpl
+++ b/templates/admin/user/edit.tmpl
@@ -123,7 +123,7 @@
-
+ {{svg "octicon-trashcan"}}
{{.i18n.Tr "settings.delete_account_title"}}
diff --git a/templates/base/delete_modal_actions.tmpl b/templates/base/delete_modal_actions.tmpl
index a889c67e5ac5..7a0760b12585 100644
--- a/templates/base/delete_modal_actions.tmpl
+++ b/templates/base/delete_modal_actions.tmpl
@@ -1,10 +1,10 @@
diff --git a/templates/base/footer_content.tmpl b/templates/base/footer_content.tmpl
index ddd4f236498a..f0d8a6f5a450 100644
--- a/templates/base/footer_content.tmpl
+++ b/templates/base/footer_content.tmpl
@@ -5,10 +5,10 @@
-
+ {{svg "octicon-trashcan"}}
{{.i18n.Tr "modal.no"}}
-
+ {{svg "octicon-check"}}
{{.i18n.Tr "modal.yes"}}
{{if .ShowFooterBranding}}
- GitHub
+ {{svg "octicon-mark-github"}}GitHub
{{end}}
-
+ {{svg "octicon-globe"}}
{{.LangName}}
{{range .AllLangs}}
diff --git a/templates/org/settings/delete.tmpl b/templates/org/settings/delete.tmpl
index 54d60f93f08a..a8d42b5476e3 100644
--- a/templates/org/settings/delete.tmpl
+++ b/templates/org/settings/delete.tmpl
@@ -32,7 +32,7 @@
-
+ {{svg "octicon-trashcan"}}
{{.i18n.Tr "org.settings.delete_org_title"}}
diff --git a/templates/org/team/new.tmpl b/templates/org/team/new.tmpl
index 228f86824a06..eeb9b1186a60 100644
--- a/templates/org/team/new.tmpl
+++ b/templates/org/team/new.tmpl
@@ -116,7 +116,7 @@
-
+ {{svg "octicon-trashcan"}}
{{.i18n.Tr "org.teams.delete_team_title"}}
diff --git a/templates/org/team/repositories.tmpl b/templates/org/team/repositories.tmpl
index de39fee2ea90..16418b474d47 100644
--- a/templates/org/team/repositories.tmpl
+++ b/templates/org/team/repositories.tmpl
@@ -66,7 +66,7 @@
-
+ {{svg "octicon-trashcan"}}
{{.i18n.Tr "org.teams.remove_all_repos_title"}}
diff --git a/templates/repo/branch/list.tmpl b/templates/repo/branch/list.tmpl
index 51ddf6c1e1b1..4f184397d307 100644
--- a/templates/repo/branch/list.tmpl
+++ b/templates/repo/branch/list.tmpl
@@ -131,7 +131,7 @@
-
+ {{svg "octicon-trashcan"}}
{{.i18n.Tr "repo.branch.delete_html"}}
diff --git a/templates/repo/issue/labels/edit_delete_label.tmpl b/templates/repo/issue/labels/edit_delete_label.tmpl
index 4ffa20ef174c..54ef58422425 100644
--- a/templates/repo/issue/labels/edit_delete_label.tmpl
+++ b/templates/repo/issue/labels/edit_delete_label.tmpl
@@ -1,6 +1,6 @@
-
+ {{svg "octicon-trashcan"}}
{{.i18n.Tr "repo.issues.label_deletion"}}
diff --git a/templates/repo/issue/milestones.tmpl b/templates/repo/issue/milestones.tmpl
index bb42a9c73d93..bc88d1015f10 100644
--- a/templates/repo/issue/milestones.tmpl
+++ b/templates/repo/issue/milestones.tmpl
@@ -95,7 +95,7 @@
{{if or .CanWriteIssues .CanWritePulls}}
-
+ {{svg "octicon-trashcan"}}
{{.i18n.Tr "repo.milestones.deletion"}}
diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl
index 190f5117b852..0ddea1681644 100644
--- a/templates/repo/issue/view_content.tmpl
+++ b/templates/repo/issue/view_content.tmpl
@@ -219,7 +219,7 @@
-
+ {{svg "octicon-trashcan"}}
{{.i18n.Tr "repo.branch.delete" .HeadTarget }}
diff --git a/templates/repo/issue/view_content/sidebar.tmpl b/templates/repo/issue/view_content/sidebar.tmpl
index 8a89f2b20c04..3a1fcf3e8b3d 100644
--- a/templates/repo/issue/view_content/sidebar.tmpl
+++ b/templates/repo/issue/view_content/sidebar.tmpl
@@ -611,7 +611,7 @@
-
+ {{svg "octicon-trashcan"}}
{{.i18n.Tr "repo.issues.dependency.remove_header"}}
diff --git a/templates/repo/projects/list.tmpl b/templates/repo/projects/list.tmpl
index 7151442689e1..3974cd3dd175 100644
--- a/templates/repo/projects/list.tmpl
+++ b/templates/repo/projects/list.tmpl
@@ -78,7 +78,7 @@
{{if or .CanWriteIssues .CanWritePulls}}
-
+ {{svg "octicon-trashcan"}}
{{.i18n.Tr "repo.projects.deletion"}}
diff --git a/templates/repo/release/new.tmpl b/templates/repo/release/new.tmpl
index 8d94970bf6eb..963d0dcde7cf 100644
--- a/templates/repo/release/new.tmpl
+++ b/templates/repo/release/new.tmpl
@@ -99,7 +99,7 @@
{{if .PageIsEditRelease}}
-
+ {{svg "octicon-trashcan"}}
{{.i18n.Tr "repo.release.deletion"}}
diff --git a/templates/repo/settings/collaboration.tmpl b/templates/repo/settings/collaboration.tmpl
index 9061857041fe..13030fe86a03 100644
--- a/templates/repo/settings/collaboration.tmpl
+++ b/templates/repo/settings/collaboration.tmpl
@@ -114,7 +114,7 @@
-
+ {{svg "octicon-trashcan"}}
{{.i18n.Tr "repo.settings.collaborator_deletion"}}
diff --git a/templates/repo/settings/deploy_keys.tmpl b/templates/repo/settings/deploy_keys.tmpl
index 15d861d74ec7..d6fb87bb83a1 100644
--- a/templates/repo/settings/deploy_keys.tmpl
+++ b/templates/repo/settings/deploy_keys.tmpl
@@ -82,7 +82,7 @@
-
+ {{svg "octicon-trashcan"}}
{{.i18n.Tr "repo.settings.deploy_key_deletion"}}
diff --git a/templates/repo/settings/webhook/delete_modal.tmpl b/templates/repo/settings/webhook/delete_modal.tmpl
index 2a2a7c8da2f4..f775228ce0bc 100644
--- a/templates/repo/settings/webhook/delete_modal.tmpl
+++ b/templates/repo/settings/webhook/delete_modal.tmpl
@@ -1,6 +1,6 @@
-
+ {{svg "octicon-trashcan"}}
{{.i18n.Tr "repo.settings.webhook_deletion"}}
diff --git a/templates/repo/wiki/view.tmpl b/templates/repo/wiki/view.tmpl
index 3d29cdcc56ec..7252093fb6b6 100644
--- a/templates/repo/wiki/view.tmpl
+++ b/templates/repo/wiki/view.tmpl
@@ -101,7 +101,7 @@
-
+ {{svg "octicon-trashcan"}}
{{.i18n.Tr "repo.wiki.delete_page_button"}}
diff --git a/templates/user/settings/account.tmpl b/templates/user/settings/account.tmpl
index 113e03cd9b20..1a978a6c2834 100644
--- a/templates/user/settings/account.tmpl
+++ b/templates/user/settings/account.tmpl
@@ -194,7 +194,7 @@
-
+ {{svg "octicon-trashcan"}}
{{.i18n.Tr "settings.email_deletion"}}
@@ -205,7 +205,7 @@
-
+ {{svg "octicon-trashcan"}}
{{.i18n.Tr "settings.delete_account_title"}}
diff --git a/templates/user/settings/applications.tmpl b/templates/user/settings/applications.tmpl
index b2751ae13b7f..56f78d8e62b7 100644
--- a/templates/user/settings/applications.tmpl
+++ b/templates/user/settings/applications.tmpl
@@ -55,7 +55,7 @@
-
+ {{svg "octicon-trashcan"}}
{{.i18n.Tr "settings.access_token_deletion"}}
diff --git a/templates/user/settings/applications_oauth2.tmpl b/templates/user/settings/applications_oauth2.tmpl
index 42d1950f9fca..65b9da495087 100644
--- a/templates/user/settings/applications_oauth2.tmpl
+++ b/templates/user/settings/applications_oauth2.tmpl
@@ -48,7 +48,7 @@
-
+ {{svg "octicon-trashcan"}}
{{.i18n.Tr "settings.remove_oauth2_application"}}
diff --git a/templates/user/settings/applications_oauth2_edit.tmpl b/templates/user/settings/applications_oauth2_edit.tmpl
index c978ad5c2cae..495f8ec1688f 100644
--- a/templates/user/settings/applications_oauth2_edit.tmpl
+++ b/templates/user/settings/applications_oauth2_edit.tmpl
@@ -57,7 +57,7 @@
-
+ {{svg "octicon-trashcan"}}
{{.i18n.Tr "settings.remove_oauth2_application"}}
diff --git a/templates/user/settings/keys_gpg.tmpl b/templates/user/settings/keys_gpg.tmpl
index 5cde1d214d34..91658a15ee31 100644
--- a/templates/user/settings/keys_gpg.tmpl
+++ b/templates/user/settings/keys_gpg.tmpl
@@ -59,7 +59,7 @@
-
+ {{svg "octicon-trashcan"}}
{{.i18n.Tr "settings.gpg_key_deletion"}}
diff --git a/templates/user/settings/keys_principal.tmpl b/templates/user/settings/keys_principal.tmpl
index c163263ea9bf..26204b5b98c4 100644
--- a/templates/user/settings/keys_principal.tmpl
+++ b/templates/user/settings/keys_principal.tmpl
@@ -56,7 +56,7 @@
-
+ {{svg "octicon-trashcan"}}
{{.i18n.Tr "settings.ssh_principal_deletion"}}
diff --git a/templates/user/settings/keys_ssh.tmpl b/templates/user/settings/keys_ssh.tmpl
index 3d41f335953e..9a4db09c2d15 100644
--- a/templates/user/settings/keys_ssh.tmpl
+++ b/templates/user/settings/keys_ssh.tmpl
@@ -63,7 +63,7 @@
-
+ {{svg "octicon-trashcan"}}
{{.i18n.Tr "settings.ssh_key_deletion"}}
diff --git a/templates/user/settings/repos.tmpl b/templates/user/settings/repos.tmpl
index 456647d9bec5..a9d029a2b8da 100644
--- a/templates/user/settings/repos.tmpl
+++ b/templates/user/settings/repos.tmpl
@@ -142,7 +142,7 @@
-
+ {{svg "octicon-trashcan"}}
{{.i18n.Tr "settings.remove_account_link"}}
diff --git a/templates/user/settings/security_accountlinks.tmpl b/templates/user/settings/security_accountlinks.tmpl
index 057a0f9aff4f..ba3962836cea 100644
--- a/templates/user/settings/security_accountlinks.tmpl
+++ b/templates/user/settings/security_accountlinks.tmpl
@@ -26,7 +26,7 @@
-
+ {{svg "octicon-trashcan"}}
{{.i18n.Tr "settings.remove_account_link"}}
diff --git a/templates/user/settings/security_openid.tmpl b/templates/user/settings/security_openid.tmpl
index a16501acfac5..72442d45e146 100644
--- a/templates/user/settings/security_openid.tmpl
+++ b/templates/user/settings/security_openid.tmpl
@@ -53,7 +53,7 @@
-
+ {{svg "octicon-trashcan"}}
{{.i18n.Tr "settings.openid_deletion"}}
diff --git a/templates/user/settings/security_twofa.tmpl b/templates/user/settings/security_twofa.tmpl
index 138872d3172f..c877aebc3258 100644
--- a/templates/user/settings/security_twofa.tmpl
+++ b/templates/user/settings/security_twofa.tmpl
@@ -25,7 +25,7 @@
-
+ {{svg "octicon-trashcan"}}
{{.i18n.Tr "settings.twofa_disable"}}
diff --git a/templates/user/settings/security_u2f.tmpl b/templates/user/settings/security_u2f.tmpl
index 5fb5f344d1a4..41bec78b7010 100644
--- a/templates/user/settings/security_u2f.tmpl
+++ b/templates/user/settings/security_u2f.tmpl
@@ -45,7 +45,7 @@
-
+ {{svg "octicon-trashcan"}}
{{.i18n.Tr "settings.u2f_delete_key"}}
diff --git a/web_src/less/_base.less b/web_src/less/_base.less
index 81111d82fae5..fdaa3c1814b1 100644
--- a/web_src/less/_base.less
+++ b/web_src/less/_base.less
@@ -679,6 +679,23 @@ code,
}
}
}
+
+ /* modal svg icons, copied from fomantic except width and height */
+ &.icon.header svg {
+ width: 3em;
+ height: 3em;
+ float: none;
+ display: block;
+ line-height: 1;
+ padding: 0;
+ margin: 0 auto .5rem;
+ opacity: 1;
+ }
+
+ /* center text in fomantic modal dialogs */
+ &.modal > .content {
+ text-align: center;
+ }
}
.file-comment {