diff --git a/app/views/moderations/actions_panel.html.erb b/app/views/moderations/actions_panel.html.erb index e785d708d..3f7fce89d 100644 --- a/app/views/moderations/actions_panel.html.erb +++ b/app/views/moderations/actions_panel.html.erb @@ -48,6 +48,21 @@ <%= crayons_icon_tag(:checkmark, class: "vomit-checkmark", title: t("views.moderations.actions.checkmark")) %> + <% if current_user.any_admin? && @moderatable.published %> + <% @recent_featured_count = Article.where(featured: true).where("published_at > ?", 1.day.ago).size %> + +
+ <%= t("views.moderations.actions.featured_past_day", count: @recent_featured_count) %> +
+ <% end %> <%= t("views.moderations.actions.how") %> @@ -177,22 +192,6 @@