* 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
20 lines
1.1 KiB
Text
20 lines
1.1 KiB
Text
<% if @boosted_article %>
|
|
<%= render "additional_content_boxes/article_box",
|
|
article: @boosted_article,
|
|
classification: "boosted",
|
|
classification_text: "From one of our Community Sponsors",
|
|
follow_cue: @boosted_article.organization&.tag_line || @boosted_article.organization&.tag_line %>
|
|
<% elsif @alt_classic %>
|
|
<%= render "additional_content_boxes/article_box",
|
|
article: @alt_classic,
|
|
classification: "alt_classic",
|
|
classification_text: "Classic DEV Post from #{@alt_classic.readable_publish_date}",
|
|
follow_cue: @alt_classic.organization&.tag_line || "Follow <a href='#{@alt_classic.user.path}'>@#{@alt_classic.user.username}</a> to see more of their posts in your feed." %>
|
|
<% end %>
|
|
<% if @for_user_article %>
|
|
<%= render "additional_content_boxes/article_box",
|
|
article: @for_user_article,
|
|
classification: "for_user_article",
|
|
classification_text: "Another Post You Might Like",
|
|
follow_cue: @for_user_article.organization&.tag_line || "Follow <a href='#{@for_user_article.user.path}'>@#{@for_user_article.user.username}</a> to see more of their posts in your feed." %>
|
|
<% end %>
|