* Update email subjects split test * Create alternate editor * Add proof of concept to emails * Add utm for internal nav * Add ability to boost in DEV Digest * Adjust articles.scss * Adjust article_form.scss * Remove unnecessary files * Remove files from PR * Adjust boosted email settings * Conditionally include organization in additional box * Modify schema.rb
30 lines
2.1 KiB
Text
30 lines
2.1 KiB
Text
<h2><a href="<%= article.path + article.decorate.internal_utm_params %>" class="<%= 'partner-link' if classification == "boosted" %>" data-details="<%= organization&.slug %>__<%= article.slug %>"><%= article.title %></a></h2>
|
|
<div class="content-author">
|
|
<a href="<%= article.user.path + article.decorate.internal_utm_params %>">
|
|
<img class="profile-pic" src="<%= ProfileImage.new(article.user).get(50)%>" alt="<%= article.user.username %> profile image"/>
|
|
<span><%= article.user.name %></span>
|
|
</a>
|
|
</div>
|
|
<p>
|
|
<a href="<%= article.path + article.decorate.internal_utm_params%>" class="<%= 'partner-link' if classification == "boosted" %>" data-details="<%= organization&.slug %>__<%= article.slug %>">
|
|
<%= article.description %>
|
|
</a>
|
|
<div class="engagement-count">
|
|
<% if article.positive_reactions_count > 0 %>
|
|
<img src="<%= asset_path("reactions-stack.png") %>" alt="Reactions" /> <%= article.positive_reactions_count %>
|
|
<% end %>
|
|
<% if article.comments_count > 0 %>
|
|
<img src="<%= asset_path("comments-bubble.png") %>" alt="Reactions" class="comments-bubble"/> <%= article.comments_count %>
|
|
<% end %>
|
|
</div>
|
|
</p>
|
|
<a href="<%= article.path + article.decorate.internal_utm_params%>" class="cta<%= ' partner-link' if classification == "boosted" %>" data-details="<%= organization&.slug %>__<%= article.slug %>">READ POST</a>
|
|
<button
|
|
class="article-engagement-count bookmark-engage<%= ' partner-link' if classification == "boosted" %>"
|
|
data-reactable-id="<%= article.id %>"
|
|
aria-label="Save to reading list"
|
|
data-details="<%= organization&.slug %>__<%= article.slug %>__SAVE"
|
|
title="Save to reading list">
|
|
<span class="bm-success" data-details="<%= organization&.slug %>__<%= article.slug %>__SAVE"><img src="<%= asset_path("readinglist-button.png") %>" alt="bookmark" /> SAVED</span>
|
|
<span class="bm-initial" data-details="<%= organization&.slug %>__<%= article.slug %>__SAVE">SAVE FOR LATER</span>
|
|
</button>
|