Fix linting issues in app/views/mailers (#1889) [ci skip]

This commit is contained in:
Arnelle Balane 2019-02-26 04:00:34 +08:00 committed by Mac Siri
parent 75e8c43125
commit d06902461e
14 changed files with 27 additions and 31 deletions

View file

@ -16,14 +16,13 @@
<% end %>
</ul>
<center style="margin-top:50px;">
<em>
<% if @user.follows.size == 0 %>
<b>
DEV Digest is a new periodic email featuring the best posts from our community of developers.
</b>
<br/><br/>
<br /><br />
Your digest is not yet customized. Follow the people and technologies on <a href="https://dev.to" style="text-decoration: none;">dev.to</a> that interest you in order to receive the most relevant posts in your inbox.
<% else %>
<% tip_rand = rand(5) %>

View file

@ -1,4 +1,4 @@
<img src="https://thepracticaldev.s3.amazonaws.com/i/186bp9xbue90w504wn97.png" style="height:200px; display: block; margin-left: auto; margin-right: auto;"/>
<img src="https://thepracticaldev.s3.amazonaws.com/i/186bp9xbue90w504wn97.png" style="height:200px; display: block; margin-left: auto; margin-right: auto;" />
<% if @subscription_type == "triple_unicorn_member" %>
<p>
Whoa! Youre the best, and so generous. We tip our hats to you.
@ -36,7 +36,7 @@
</p>
<p>
❤️
<br/>
<br />
PBJ
</p>
<p>
@ -60,7 +60,7 @@
</p>
<p>
Thanks again! ❤️
<br/>
<br />
PBJ
</p>
<% elsif @subscription_type == "level_2_member" %>
@ -78,7 +78,7 @@
</p>
<p>
Thanks again! ❤️
<br/>
<br />
PBJ
</p>
<% elsif @subscription_type == "level_1_member" %>
@ -96,7 +96,7 @@
</p>
<p>
Thanks again! ❤️
<br/>
<br />
PBJ
</p>
<% end %>

View file

@ -7,6 +7,6 @@ If you have any feedback that can help us improve the membership experience, ple
</p>
<p>
Thanks again,
<br/>
<br />
PBJ
</p>

View file

@ -1,4 +1,4 @@
<img src="<%= asset_path 'sustaining-membership.svg' %>" style="height:200px; display: block; margin-left: auto; margin-right: auto;"/>
<img src="<%= asset_path "sustaining-membership.svg" %>" style="height:200px; display: block; margin-left: auto; margin-right: auto;" />
<p>
Your DEV sustaining membership monthly contribution amount has been updated. Be sure to check your <a href="https://dev.to/settings/membership">membership settings</a> page to see the most up-to-date information.
</p>

View file

@ -2,7 +2,6 @@
Hi <%= @name %>,
</p>
<p>
Your dev.to account has been successfully deleted.
</p>

View file

@ -1,3 +1,3 @@
<p>
<%= simple_format @email_body %>
</p>
</p>

View file

@ -5,7 +5,7 @@
Let me get straight to the point: your mentor is <b><a href="https://dev.to/<%= @mentor.username %>">@<%= @mentor.username %></a></b>. We have had you two automatically follow each other, so you can find them on DEV Connect, and introduce yourself!
</p>
<p>
A few notes: 
A few notes:
</p>
<ul>
<li>
@ -15,10 +15,10 @@
We expect everyone to abide by our <a href="https://dev.to/code-of-conduct">Code of Conduct</a>, especially in this setting. Should your mentor demonstrate inappropriate behavior, please contact us immediately.
</li>
<li>
If you feel like this was a mismatch, or if your mentor is unresponsive after several days, let us know. 
If you feel like this was a mismatch, or if your mentor is unresponsive after several days, let us know.
</li>
<li>
We highly recommend setting goals and expectations with your mentor from Day 1. 
<li>
We highly recommend setting goals and expectations with your mentor from Day 1.
</li>
<li>
To help you all get started, weve put together some <a href="https://dev.to/jess/mentorship-resources-19p0">resources</a>.
@ -26,14 +26,11 @@
</ul>
<p>
Thanks again for participating in our program. 
Thanks again for participating in our program.
</p>
<p>
Good luck!
</p>
<p>
Liana 
Liana
</p>

View file

@ -3,7 +3,7 @@
Congratulations, <%= @user.name %>! You received the <b><%= @badge.title %></b> badge!
</p>
<p style="text-align:center;padding:20px 0px">
<img src="<%= @badge.badge_image_url %>" style="height:200px"/>
<img src="<%= @badge.badge_image_url %>" style="height:200px" />
</p>
<p>
<%= @badge.description %>
@ -13,10 +13,10 @@
<%= @badge_achievement.rewarding_context_message.html_safe %>
</em>
</p>
<br/>
<br />
<p>
<a href="https://dev.to/<%= @user.username %>" style="font-weight:bold;color:white;background:#4e57ef;padding: 5px 10px;border-radius:3px;text-decoration:none">
Check out your profile
</a>
</p>
</center>
</center>

View file

@ -3,7 +3,7 @@
<% end %>
<h2 style="font-size:32px;"><a href="https://dev.to/<%= @follower.username %>"><%= @follower.name %></a> just followed you 🤗</h2>
<h3 style="font-weight:600">You now have <%= pluralize(@user.followers_count, 'total follower') %>. See all of your recent followers <a href="https://dev.to/dashboard/user_followers">right here</a>.</h3>
<h3 style="font-weight:600">You now have <%= pluralize(@user.followers_count, "total follower") %>. See all of your recent followers <a href="https://dev.to/dashboard/user_followers">right here</a>.</h3>
<p>
When someone follows you on <a href="https://dev.to">dev.to</a>, your posts will be prioritized in their feed and notifications. The perks of popularity I suppose.
</p>

View file

@ -3,5 +3,5 @@
</td></tr><tr><td style='padding:20px;padding-bottom:30px;border-radius:3px;font-size:19px;background:#f4f4f4'>
<%= @mentionable.processed_html.html_safe %>
<a style="background:#3c7dc1;color:white;padding:5px 14px;border-radius:3px;text-decoration:none;display:inline-block;margin-top:4px;" href='https://dev.to<%=@mention.mentionable.path%>'>view on dev.to</a>
<a style="background:#3c7dc1;color:white;padding:5px 14px;border-radius:3px;text-decoration:none;display:inline-block;margin-top:4px;" href='https://dev.to<%= @mention.mentionable.path %>'>view on dev.to</a>
</td></tr></table>

View file

@ -2,9 +2,9 @@
<table><tr><td style='color:#c3c3c3;font-size:14px;padding-bottom:8px'>
</td></tr><tr><td style='padding:20px;padding-bottom:30px;border-radius:3px;font-size:19px;background:#f4f4f4'>
<%= @message.message_html %>
<br/><br/>
<br /><br />
<a style="background:#3c7dc1;color:white;padding:5px 14px;border-radius:3px;text-decoration:none;display:inline-block;margin-top:4px;" href='https://dev.to/connect/@<%= @message.user.username %>'>view on dev.to</a>
</td></tr></table>
<br/>
<br />
<em>You only get emails like this if you have not been active on <a href="https://dev.to/connect">dev.to/connect</a> in the past day. You may disable this type of email in your settings.
<em>You only get emails like this if you have not been active on <a href="https://dev.to/connect">dev.to/connect</a> in the past day. You may disable this type of email in your settings.</em>

View file

@ -6,5 +6,6 @@
</td></tr><tr><td style='padding:20px;padding-bottom:30px;border-radius:3px;font-size:19px;background:#f4f4f4'>
<h2 style="font-size:22px;color:rgb(107, 107, 107)">re: <em><%= @comment.commentable.title %></em></h2>
<%= @comment.processed_html.html_safe %>
<a style="background:#3c7dc1;color:white;padding:5px 14px;border-radius:3px;text-decoration:none;display:inline-block;margin-top:4px;" href='https://dev.to<%=@comment.path%>'>view on dev.to</a> <a style="background:#1f1f1f;color:white;padding:5px 14px;border-radius:3px;text-decoration:none;display:inline-block;margin-top:4px;" href='https://dev.to<%=@comment.commentable.path%>'>read original post</a>
<a style="background:#3c7dc1;color:white;padding:5px 14px;border-radius:3px;text-decoration:none;display:inline-block;margin-top:4px;" href='https://dev.to<%= @comment.path %>'>view on dev.to</a>&nbsp;
<a style="background:#1f1f1f;color:white;padding:5px 14px;border-radius:3px;text-decoration:none;display:inline-block;margin-top:4px;" href='https://dev.to<%= @comment.commentable.path %>'>read original post</a>
</td></tr></table>

View file

@ -4,4 +4,4 @@
<h2>
🎥 <a href="https://dev.to<%= @article.path %>/edit">Finalize and publish your video</a> 😊
</h2>
</h2>

View file

@ -1,4 +1,4 @@
<img src="https://thepracticaldev.s3.amazonaws.com/i/nn3vxwwm23p1hu67wbzt.png" style="height:220px; display: block; margin-left: auto; margin-right: auto;"/>
<img src="https://thepracticaldev.s3.amazonaws.com/i/nn3vxwwm23p1hu67wbzt.png" style="height:220px; display: block; margin-left: auto; margin-right: auto;" />
<p>Congratulations!</p>
<p>
Weve received your DEV scholarship application and are excited to provide you with a workshop pass for