Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Show "email failed" state in posts list
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinansfield committed Nov 20, 2019
1 parent 76c357a commit c56856e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/templates/components/gh-posts-list-item.hbs
Expand Up @@ -11,7 +11,7 @@
<p>
<span class="gh-content-entry-meta">
By <span class="midgrey-l2 fw5">{{this.authorNames}}</span>

{{#if this.primaryTag}}
in <span class="midgrey-l2 fw5">{{this.primaryTag}}</span>
{{/if}}
Expand Down Expand Up @@ -44,8 +44,8 @@
{{/if}}

{{#if (or this.post.email (and this.post.isScheduled this.post.sendEmailWhenPublished))}}
<span data-tooltip="Sent by email" class="gh-content-emailed">
{{svg-jar "send-email" class="stroke-midgrey"}}
<span data-tooltip={{if (eq this.post.email.status "failed") "Sending failed" "Sent by email"}} class="gh-content-emailed">
{{svg-jar "send-email" class=(if (eq this.post.email.status "failed") "stroke-red" "stroke-midgrey")}}
</span>
{{/if}}
</div>
Expand Down

0 comments on commit c56856e

Please sign in to comment.