diff --git a/app/components/moderation/shared/index_component.html.erb b/app/components/moderation/shared/index_component.html.erb
index 275bfc6c4..d06fb9722 100644
--- a/app/components/moderation/shared/index_component.html.erb
+++ b/app/components/moderation/shared/index_component.html.erb
@@ -1,4 +1,4 @@
-
<%= t("moderation.#{i18n_namespace}.index.title") %>
+<%= header %>
<%= render "shared/filter_subnav", i18n_namespace: "moderation.#{i18n_namespace}.index" %>
diff --git a/app/components/moderation/shared/index_component.rb b/app/components/moderation/shared/index_component.rb
index c70e4cd30..117f0610f 100644
--- a/app/components/moderation/shared/index_component.rb
+++ b/app/components/moderation/shared/index_component.rb
@@ -1,4 +1,5 @@
class Moderation::Shared::IndexComponent < ApplicationComponent
+ include Header
attr_reader :records
def initialize(records)
@@ -7,6 +8,10 @@ class Moderation::Shared::IndexComponent < ApplicationComponent
private
+ def title
+ t("moderation.#{i18n_namespace}.index.title")
+ end
+
def i18n_namespace
table_name
end
diff --git a/app/components/moderation/users/index_component.html.erb b/app/components/moderation/users/index_component.html.erb
index 24962c975..c13aff728 100644
--- a/app/components/moderation/users/index_component.html.erb
+++ b/app/components/moderation/users/index_component.html.erb
@@ -1,6 +1,6 @@
<% provide :main_class, "moderation-users-index" %>
-<%= t("moderation.users.index.title") %>
+<%= header %>
<%= render Admin::SearchComponent.new(label: t("moderation.users.index.search_placeholder")) %>
diff --git a/app/components/moderation/users/index_component.rb b/app/components/moderation/users/index_component.rb
index ddfa20e85..d933a9ef5 100644
--- a/app/components/moderation/users/index_component.rb
+++ b/app/components/moderation/users/index_component.rb
@@ -1,4 +1,5 @@
class Moderation::Users::IndexComponent < ApplicationComponent
+ include Header
attr_reader :users
def initialize(users)
@@ -7,6 +8,10 @@ class Moderation::Users::IndexComponent < ApplicationComponent
private
+ def title
+ t("moderation.users.index.title")
+ end
+
def status(user)
t("admin.activity.show.actions.#{activity_action(user)}")
end