Skip to content

Commit

Permalink
fix pages title translations
Browse files Browse the repository at this point in the history
  • Loading branch information
tsubik committed May 10, 2023
1 parent 6c7dff8 commit c229eef
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/admin/observation_reports_dashboard.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
}
end

index title: I18n.t("active_admin.observation_reports_dashboard_page.name") do
index title: proc { I18n.t("active_admin.observation_reports_dashboard_page.name") } do
column :date, sortable: false do |resource|
resource.date.to_date
end
Expand Down
2 changes: 1 addition & 1 deletion app/admin/observations_dashboard.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
}
end

index title: I18n.t("active_admin.observations_dashboard_page.name") do
index title: proc { I18n.t("active_admin.observations_dashboard_page.name") } do
column :date, sortable: false do |resource|
resource.date.to_date
end
Expand Down
2 changes: 1 addition & 1 deletion app/admin/observer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def scoped_collection
column :updated_at
end

index title: I18n.t("activerecord.models.observer") do
index title: proc { I18n.t("activerecord.models.observer") } do
column :is_active
column :public_info
# TODO: Reactivate rubocop and fix this
Expand Down
2 changes: 1 addition & 1 deletion app/admin/operator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
end
end

index title: I18n.t("active_admin.operator_page.producer") do
index title: proc { I18n.t("active_admin.operator_page.producer") } do
column :is_active
column :id
column :holding
Expand Down
2 changes: 1 addition & 1 deletion app/admin/operator_documents_dashboard.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
filter :fmu_forest_type_eq, label: proc { I18n.t("activerecord.attributes.fmu.forest_type") }, as: :select, collection: -> { ForestType.select_collection }
filter :date

index title: I18n.t("active_admin.producer_documents_dashboard_page.name"), pagination_total: false do
index title: proc { I18n.t("active_admin.producer_documents_dashboard_page.name") }, pagination_total: false do
column :date do |resource|
resource.date.to_date
end
Expand Down

0 comments on commit c229eef

Please sign in to comment.