From 1d78b9a90332a0c80148e85d3d5140e26a9fb19b Mon Sep 17 00:00:00 2001 From: Peter Zimon Date: Mon, 25 Nov 2019 17:03:54 +0100 Subject: [PATCH] Updated email error design in PSM --- ghost/admin/app/styles/patterns/boxes.css | 4 ++ .../gh-post-settings-menu/email.hbs | 57 ++++++++++--------- 2 files changed, 33 insertions(+), 28 deletions(-) diff --git a/ghost/admin/app/styles/patterns/boxes.css b/ghost/admin/app/styles/patterns/boxes.css index d505bc4338..7861e94685 100644 --- a/ghost/admin/app/styles/patterns/boxes.css +++ b/ghost/admin/app/styles/patterns/boxes.css @@ -55,4 +55,8 @@ .gh-box-error a { color: var(--red); +} + +.gh-box-error-border { + border-left: 5px solid var(--red); } \ No newline at end of file diff --git a/ghost/admin/app/templates/components/gh-post-settings-menu/email.hbs b/ghost/admin/app/templates/components/gh-post-settings-menu/email.hbs index 60d2d06e72..744b3544ee 100644 --- a/ghost/admin/app/templates/components/gh-post-settings-menu/email.hbs +++ b/ghost/admin/app/templates/components/gh-post-settings-menu/email.hbs @@ -21,12 +21,12 @@ - - + + - - + +
Subject:{{this.post.email.subject}}Subject:{{this.post.email.subject}}
Sent on:{{gh-format-post-time this.post.email.createdAtUTC}}Sent on:{{gh-format-post-time this.post.email.createdAtUTC}}
@@ -37,49 +37,50 @@ {{else if (or this.retryEmail.isRunning this.post.email.isFailure)}} {{!-- Mail failed to send --}} -

Email failed to send when publishing this post. Please check your Mailgun configuration under Labs → Members if the error persists.

-

- {{svg-jar "warning"}} - {{this.post.email.error}} -

-
- -
-
- -
+
- {{svg-jar "send-email" class="w7 h7 stroke-darkgrey"}} + {{svg-jar "warning" class="w7 h7 fill-red"}}

Post failed to send to

{{pluralize this.post.email.emailCount "member"}}

+
+

+ Email failed to send when publishing this post. Please check your Mailgun configuration under Labs → Members if the error persists. +

+

+ + + + + + + +
Error:{{this.post.email.error}}
+

+
- - + + - - + +
Subject:{{this.post.email.subject}}Subject:{{this.post.email.subject}}
Tried:{{gh-format-post-time this.post.email.createdAtUTC}}Tried:{{gh-format-post-time this.post.email.createdAtUTC}}
-
-

+
+ +
{{else}}