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,7 +47,9 @@ module AdminHelper
|
|||||||
end
|
end
|
||||||
|
|
||||||
def menu_settings?
|
def menu_settings?
|
||||||
["settings", "tags", "geozones", "images", "content_blocks"].include?(controller_name) &&
|
controllers_names = ["settings", "tags", "geozones", "images", "content_blocks",
|
||||||
|
"local_census_records"]
|
||||||
|
controllers_names.include?(controller_name) &&
|
||||||
controller.class.parent != Admin::Poll::Questions::Answers
|
controller.class.parent != Admin::Poll::Questions::Answers
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -302,6 +302,10 @@
|
|||||||
<li <%= "class=is-active" if controller_name == "content_blocks" %>>
|
<li <%= "class=is-active" if controller_name == "content_blocks" %>>
|
||||||
<%= link_to t("admin.menu.site_customization.content_blocks"), admin_site_customization_content_blocks_path%>
|
<%= link_to t("admin.menu.site_customization.content_blocks"), admin_site_customization_content_blocks_path%>
|
||||||
</li>
|
</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>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li class="section-title">
|
<li class="section-title">
|
||||||
|
|||||||
@@ -742,6 +742,7 @@ en:
|
|||||||
budget_investments_milestones: "Participatory budgeting (Milestones)"
|
budget_investments_milestones: "Participatory budgeting (Milestones)"
|
||||||
debates: "Debates"
|
debates: "Debates"
|
||||||
comments: "Comments"
|
comments: "Comments"
|
||||||
|
local_census_records: Manage local census
|
||||||
administrators:
|
administrators:
|
||||||
index:
|
index:
|
||||||
title: Administrators
|
title: Administrators
|
||||||
|
|||||||
@@ -743,6 +743,7 @@ es:
|
|||||||
budget_investments_milestones: "Pressupuestos participativos (Seguimiento)"
|
budget_investments_milestones: "Pressupuestos participativos (Seguimiento)"
|
||||||
debates: "Debates"
|
debates: "Debates"
|
||||||
comments: "Comentarios"
|
comments: "Comentarios"
|
||||||
|
local_census_records: Gestionar censo local
|
||||||
administrators:
|
administrators:
|
||||||
index:
|
index:
|
||||||
title: Administradores
|
title: Administradores
|
||||||
|
|||||||
Reference in New Issue
Block a user