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 %> + + <%= @moderatable.featured ? t("views.moderations.actions.unfeature") : t("views.moderations.actions.feature") %> + +