<% if user_signed_in? %> <% @sticky_collection = StickyArticleCollection.new(@article, @organization || @user) %> <% @sticky_articles = @sticky_collection.suggested_stickies %> <% @user_stickies = @sticky_collection.user_stickies %> <% end %> <% @actor = @article.organization || @article.user %>
<%= @actor.name %>
<% if @actor.tag_line.present? %> <%= truncate (@actor.tag_line || @actor.summary || "Posts in this tag"), length: 200 %> <% end %>
<%= follow_button(@actor) %>
<% if @actor.class.name == "User" %> <%= render "articles/user_metadata", context: "sidebar" %> <% elsif @actor.class.name == "Organization" && @actor.approved_and_filled_out_cta? %>
<%= @actor.cta_processed_html.html_safe %>
<% end %>
<% if params[:html_variant_id] %> <% @html_variant = HtmlVariant.where(group: "article_show_sidebar_cta", id: params[:html_variant_id].to_i ).first %> <% else %> <% @html_variant = HtmlVariant.find_for_test(@article.cached_tag_list_array) %> <% end %> <% if ( params[:html_variant_id] || !user_signed_in? ) && @html_variant %>
<%= @html_variant.html.html_safe %>
<% end %> <% if user_signed_in? && @user_stickies && @user_stickies.any? %> <% @user_stickies.each_with_index do |article, index| %>
<% if index == 0 %>
<% if @actor.username.size < 18 %> More from @<%= @actor.username %> <% else %> More from
@<%= @actor.username %> <% end %>
<% end %> <%= article.title %>
<% article.decorate.cached_tag_list_array.each do |tag| %> #<%= tag %> <% end %>
<% end %> <% end %> <% if user_signed_in? && @sticky_articles %> <% @sticky_articles.each_with_index do |article, index| %>
<% if index == 0 %>
"/> Trending on dev.to
<% end %> <%= article.title %>
<% article.decorate.cached_tag_list_array.each do |tag| %> #<%= tag %> <% end %>
<% end %> <% end %>