* Remove mock from specs to test the actual Suggester * Fix articles API top articles n+1 * Fix n+1 in articles API with state parameter * Remove eager loading for organization dashboard * Eager load notifiables in notifications only when needed * Algolia does not like this
17 lines
836 B
Text
17 lines
836 B
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 %>
|
|
<% end %>
|
|
|
|
<% if @suggested_articles.any? %>
|
|
<% @suggested_articles.each do |article| %>
|
|
<%= render "additional_content_boxes/article_box",
|
|
article: article,
|
|
classification: "for_user_article",
|
|
classification_text: "Another Post You Might Like",
|
|
follow_cue: article.organization&.tag_line || "Follow <a href='#{article.user.path}'>@#{article.user.username}</a> to see more of their posts in your feed." %>
|
|
<% end %>
|
|
<% end %>
|