From 5df72ef7e791807600bc318c0282cf1b2e590b27 Mon Sep 17 00:00:00 2001 From: Cirno the Strongest <1447794+CirnoT@users.noreply.github.com> Date: Thu, 14 May 2020 19:59:18 +0200 Subject: [PATCH] Fix svg octicon-key placement (#11410) --- templates/repo/settings/deploy_keys.tmpl | 24 +++++++++++++----------- templates/user/settings/keys_gpg.tmpl | 4 +++- templates/user/settings/keys_ssh.tmpl | 4 +++- 3 files changed, 19 insertions(+), 13 deletions(-) diff --git a/templates/repo/settings/deploy_keys.tmpl b/templates/repo/settings/deploy_keys.tmpl index 2d228597e1..a22be48bb9 100644 --- a/templates/repo/settings/deploy_keys.tmpl +++ b/templates/repo/settings/deploy_keys.tmpl @@ -20,20 +20,22 @@ {{range .Deploykeys}}
- +
+
{{svg "octicon-key" 32}} -
- {{.Name}} -
- {{.Fingerprint}} -
-
- {{$.i18n.Tr "settings.add_on"}} {{.CreatedUnix.FormatShort}} — {{svg "octicon-info" 16}} {{if .HasUsed}}{{$.i18n.Tr "settings.last_used"}} {{.UpdatedUnix.FormatShort}}{{else}}{{$.i18n.Tr "settings.no_activity"}}{{end}} - {{$.i18n.Tr "settings.can_read_info"}}{{if not .IsReadOnly}} / {{$.i18n.Tr "settings.can_write_info"}} {{end}} -
+
+
+ {{.Name}} +
+ {{.Fingerprint}}
+
+ {{$.i18n.Tr "settings.add_on"}} {{.CreatedUnix.FormatShort}} — {{svg "octicon-info" 16}} {{if .HasUsed}}{{$.i18n.Tr "settings.last_used"}} {{.UpdatedUnix.FormatShort}}{{else}}{{$.i18n.Tr "settings.no_activity"}}{{end}} - {{$.i18n.Tr "settings.can_read_info"}}{{if not .IsReadOnly}} / {{$.i18n.Tr "settings.can_write_info"}} {{end}} +
+
{{end}}
diff --git a/templates/user/settings/keys_gpg.tmpl b/templates/user/settings/keys_gpg.tmpl index 3682d3237b..f86b44bef0 100644 --- a/templates/user/settings/keys_gpg.tmpl +++ b/templates/user/settings/keys_gpg.tmpl @@ -16,7 +16,9 @@ {{$.i18n.Tr "settings.delete_key"}} - {{svg "octicon-key" 32}} +
+ {{svg "octicon-key" 32}} +
{{range .Emails}}{{.Email}} {{end}}
diff --git a/templates/user/settings/keys_ssh.tmpl b/templates/user/settings/keys_ssh.tmpl index f5c18d760e..fec68adc1f 100644 --- a/templates/user/settings/keys_ssh.tmpl +++ b/templates/user/settings/keys_ssh.tmpl @@ -20,7 +20,9 @@ {{$.i18n.Tr "settings.delete_key"}}
- {{svg "octicon-key" 32}} +
+ {{svg "octicon-key" 32}} +
{{.Name}}