<%= article.title %>

Edit Manage User @<%= article.user&.username %> ❤️ <%= article.public_reactions_count %> 💬 <%= article.comments_count %> <% if article.published_from_feed? && !article.published? %> RSS Import <%= article.created_at.strftime("%b %d, %Y") %> Originally Published <%= article.published_at&.strftime("%b %d, %Y") %> <% elsif article.crossposted_at? %> Crossposted <%= article.crossposted_at.strftime("%b %d, %Y") %> & Published <%= article.published_at&.strftime("%b %d, %Y") %> <% else %> <%= article.published_at&.strftime("%b %d, %Y") %> <% end %> <% article.decorate.cached_tag_list_array.each do |tag| %> #<%= tag %> <% end %>
<% featured = article.featured ? "bg-featured" : "" %> <% approved = article.approved ? "bg-approved" : featured %> <% background_color = approved %>
"> <% if article.video %>

Contains Video

<% end %> <% cache "admin-user-info-#{article.user_id}-#{article.user&.updated_at}", expires_in: 4.hours do %> <% if article.user&.warned %>

USER WARNED

<% end %> <% if article.user&.notes&.any? %>

User Notes (<%= article.user&.notes&.size %> total)

<% article.user&.notes&.last(3)&.each do |note| %>

<%= note.created_at.strftime("%d %B %Y %H:%M UTC") %> by <%= note.author_id ? User.find(note.author_id).username : "No Author" %> - <%= note.content %>

<% end %>

View All

<% end %> <% end %> <% if article.main_image.present? %>
cover image
<% end %> <%= form_with url: admin_article_path(article.id), local: true do |f| %>
">
id="featured-<%= article.id %>">
id="approved-<%= article.id %>">
id="boosted_additional_articles-<%= article.id %>">
<% unless article.last_buffered %>
<% end %>
<% end %> <% if article.last_buffered %>
Last Buffered <%= article.last_buffered %> <% article.buffer_updates.order(created_at: :asc).each do |buffer_update| %>
<%= buffer_update.social_service_name %> <%= " MAIN" if buffer_update.buffer_profile_id_code == ApplicationConfig["BUFFER_TWITTER_ID"] %>
<%= time_ago_in_words(buffer_update.created_at) %> ago

<%= buffer_update.body_text %>

<% end %>
<% end %> <% if article.boosted_dev_digest_email %>

<% phrase = "#{article.path}?booster_org=#{article.organization&.slug || 'generic'}" %> BOOSTED IN <%= EmailMessage.where("subject LIKE ?", "%#{phrase}%").where.not(opened_at: nil).size %> EMAILS
BOOSTED IN <%= EmailMessage.where("subject LIKE ?", "%#{phrase}%").where.not(opened_at: nil).where("sent_at > ?", 1.week.ago).size %> EMAILS IN THE PAST WEEK

BOOSTED IN <%= EmailMessage.where("subject LIKE ?", "%#{phrase}%").where.not(opened_at: nil).where.not(opened_at: nil).size %> OPENED EMAILS
BOOSTED IN <%= EmailMessage.where("subject LIKE ?", "%#{phrase}%").where.not(opened_at: nil).where.not(opened_at: nil).where("sent_at > ?", 1.week.ago).size %> OPENED EMAILS IN THE PAST WEEK <% end %>
<%= article.processed_html&.html_safe %>
<%= form_with url: admin_buffer_updates_path, html: { data: { action: "submit->article#highlightElement" } } do %>
Twitter MAIN
<% end %> <% if (article.decorate.cached_tag_list_array & Tag.bufferized_tags).any? %> <%= form_with url: admin_buffer_updates_path, html: { data: { action: "submit->article#highlightElement" } } do %>
Twitter Satellite
<% end %> <% end %> <%= form_with url: admin_buffer_updates_path, html: { data: { action: "submit->article#highlightElement" } } do %>
Facebook & LinkedIn
<% end %>