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

<% if article.archived %> <%= t("views.dashboard.article.archived") %> <% end %> <% if article.organization_id %> <% end %> <%= article.title %>

<% if article.published %>

<%= t("views.dashboard.article.#{article.scheduled? ? 'scheduled_at' : 'published'}") %> <%= local_date(article.published_timestamp, show_year: article.displayable_published_at.year != Time.current.year) %> <% if article.edited? %> <%= t("views.dashboard.article.edited") %> <%= local_date(article.edited_at, show_year: article.edited_at.year != Time.current.year) %> <% end %> <% if article.collection_id %> <%= t("views.dashboard.article.series") %> <%= article.series %> <% end %>

<% end %>
<% if !article.published? %> <%= t("views.dashboard.article.draft") %> <% elsif article.scheduled? %> <%= t("views.dashboard.article.scheduled") %> <% else %>
"> <%= crayons_icon_tag("small-heart", class: "mr-1", title: t("views.dashboard.article.reactions.icon")) %> <% if article.published %> <%= article.public_reactions_count %> <% else %> 0 <% end %> "> <%= crayons_icon_tag("small-comment", class: "mr-1", title: t("views.dashboard.article.comments.icon")) %> <%= article.comments_count %> "> <%= crayons_icon_tag("small-eye", class: "mr-1", title: t("views.dashboard.article.views.icon")) %> <% if article.published %> <% if article.page_views_count > 25 %> <%= article.page_views_count %> <% else %> <%= t("views.dashboard.article.views.lt_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="<%= t("views.dashboard.article.subscriptions.title") %>"> <%= crayons_icon_tag("small-data", class: "mr-1", title: t("views.dashboard.article.subscriptions.icon")) %> <%= article.user_subscriptions_count %> <% end %>
<% end %>
<% if manage_view %> <%= t("views.dashboard.article.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 && !article.scheduled? %> "><%= t("views.dashboard.article.manage.text") %> <% elsif @user == article.user %> <%= t("views.dashboard.article.delete") %> <% end %> "><%= t("views.dashboard.article.edit.text") %>
<% if article.user_subscriptions_count > 0 %> " class="crayons-link crayons-link--block w-100"><%= t("views.dashboard.article.subscriptions.number", num: article.user_subscriptions_count) %> <% end %> <%= t("views.dashboard.article.stats") %> <%= 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}" %> <%= f.hidden_field :from_dashboard, value: 1 %> <% 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" } %> <%= f.hidden_field :from_dashboard, value: 1 %>
<%= f.text_field :co_author_ids_list, id: "article_#{article.id}_co_author_ids_list", class: "article_org_co_author_ids_list", data: { fetch_users: organization_members_path(organization.username, format: "json") } %>
<%= f.hidden_field :from_dashboard, value: 1 %>
<% end %> <% end %>