<%= "js-dashboard-story story-archived hidden" if article.archived %>">

<% if article.archived %> Archived <% end %> <% if article.organization_id %> <% end %> <%= sanitize_and_decode article.title %>

<% if article.published %>

Published: <% if article.edited? %> Edited: <% end %> <% if article.collection_id %> Series: <%= article.series %> <% end %>

<% end %>
<% if !article.published? %> Draft <% else %>
<%= inline_svg_tag("small-heart.svg", aria: true, class: "crayons-icon mr-1", title: "Reactions") %> <% if article.published %> <%= article.public_reactions_count %> <% else %> 0 <% end %> <%= inline_svg_tag("small-comment.svg", aria: true, class: "crayons-icon mr-1", title: "Comments") %> <%= article.comments_count %> <%= inline_svg_tag("small-eye.svg", aria: true, class: "crayons-icon mr-1", title: "Views") %> <% if article.published %> <% if article.page_views_count > 25 %> <%= article.page_views_count %> <% else %> < 25 <% end %> <% else %> 0 <% end %> <% if article.user_subscriptions_count > 0 %> " class="flex items-center crayons-btn crayons-btn--ghost-dimmed crayons-btn--s" title="Subscriptions"> <%= inline_svg_tag("small-data.svg", aria: true, class: "crayons-icon mr-1", title: "Data") %> <%= article.user_subscriptions_count %> <% end %>
<% end %>
<% if manage_view %> Delete <% if article.profile_pins.any? %> <%= form_for(article.profile_pins.first) do |f| %> <% end %> <% else %> <%= form_for(ProfilePin.new) do |f| %> <%= f.hidden_field :pinnable_id, value: article.id %> <% end %> <% end %> <% elsif article.published %> Manage <% elsif @user == article.user %> Delete <% end %> Edit
<% if article.user_subscriptions_count > 0 %> " class="crayons-link crayons-link--block w-100"><%= "Subscriptions (#{article.user_subscriptions_count})" %> <% end %> <% if @current_user_pro %> Stats <% end %> <%= form_for(article, method: :patch, remote: true, authenticity_token: true, html: { "data-type": "json", class: "js-archive-toggle" }) do |f| %> <%= f.hidden_field :archived, value: !article.archived, id: "article_archived_#{article.id}" %> <% end %> <% if organization && org_admin %> <%= form_for(article, html: { class: "mt-4 pt-4 border-0 border-t-1 border-color-base-10 border-solid" }) do |f| %>
<%= f.select :user_id, options_for_select(organization.users.pluck(:name, :id), article.user_id), {}, { class: "crayons-select" } %>
<% end %> <% end %>