Add LocalCensusRecords link to admin menu
* Add to menu as a Settings sub-options * Add translations for EN and ES locales * Activate menu sub-option when user is at any LocalCensusRecords page
This commit is contained in:
committed by
Javi Martín
parent
5fa1bd8a6f
commit
76400a8c23
@@ -47,8 +47,10 @@ module AdminHelper
|
||||
end
|
||||
|
||||
def menu_settings?
|
||||
["settings", "tags", "geozones", "images", "content_blocks"].include?(controller_name) &&
|
||||
controller.class.parent != Admin::Poll::Questions::Answers
|
||||
controllers_names = ["settings", "tags", "geozones", "images", "content_blocks",
|
||||
"local_census_records"]
|
||||
controllers_names.include?(controller_name) &&
|
||||
controller.class.parent != Admin::Poll::Questions::Answers
|
||||
end
|
||||
|
||||
def menu_customization?
|
||||
|
||||
@@ -302,6 +302,10 @@
|
||||
<li <%= "class=is-active" if controller_name == "content_blocks" %>>
|
||||
<%= link_to t("admin.menu.site_customization.content_blocks"), admin_site_customization_content_blocks_path%>
|
||||
</li>
|
||||
|
||||
<li <%= "class=is-active" if controller_name == "local_census_records" %>>
|
||||
<%= link_to t("admin.menu.local_census_records"), admin_local_census_records_path %>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="section-title">
|
||||
|
||||
@@ -742,6 +742,7 @@ en:
|
||||
budget_investments_milestones: "Participatory budgeting (Milestones)"
|
||||
debates: "Debates"
|
||||
comments: "Comments"
|
||||
local_census_records: Manage local census
|
||||
administrators:
|
||||
index:
|
||||
title: Administrators
|
||||
|
||||
@@ -743,6 +743,7 @@ es:
|
||||
budget_investments_milestones: "Pressupuestos participativos (Seguimiento)"
|
||||
debates: "Debates"
|
||||
comments: "Comentarios"
|
||||
local_census_records: Gestionar censo local
|
||||
administrators:
|
||||
index:
|
||||
title: Administradores
|
||||
|
||||
Reference in New Issue
Block a user