Skip to content

Commit

Permalink
Added time and link to email digest header (publiclab#5855)
Browse files Browse the repository at this point in the history
  • Loading branch information
ManethKulatunge authored and enviro3 committed Aug 12, 2019
1 parent e48f96f commit d271400
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/views/subscription_mailer/send_digest.html.erb
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<header style="text-align: center;color:black">
<img src="https://avatars2.githubusercontent.com/u/4621650?s=200&v=4" style="width: 100px;height: 100px">
<p style="font-size: 20px">[Public Lab] <%= @subject %></p>
<p><%= Time.now.strftime("%B %-d %Y") %></p>
</header>

<div style="width:95%;margin: 0 auto;margin-top: 54px;color: black;">
<p style="font-size: 1.2em; font-family: sans-serif;margin-bottom: 0;color: lightgray;">Top picks for you</p>
<p style="font-size: 1.2em; font-family: sans-serif;margin-bottom: 0;color: lightgray;">Based on what you're following at <a href="https://publiclab.org">PublicLab.org</a></p>
<hr id="first" style="border: none;height: 1px;background-color: #e2e2e2;margin-bottom: 32px;">
<table style="font-family: sans-serif;">
<% @nodes.each do |n| %>
Expand All @@ -21,7 +22,7 @@
</div>
<div style="margin-top: 20px;">
<b style="font-weight: 500;"><%= n.author.username.capitalize %></b>
<p style="margin: 0;color: #999;font-weight: 500;">Published <%= n.created_at.strftime("%m/%d") %></p>
<p style="margin: 0;color: #999;font-weight: 500;">Published <%= n.created_at.strftime("%B %-d %Y") %></p>
</div>
<% if n.main_image.present? %>
<div style="padding-bottom: 30px;">
Expand Down

0 comments on commit d271400

Please sign in to comment.