This help page can only be accessed from either the help page or the forms. There is no button in the navigation bar related to this page. For this reason we do not mark any section of the navigation bar as active when we are on this page..
65 lines
2.3 KiB
Plaintext
65 lines
2.3 KiB
Plaintext
<div class="small-12 medium-9 column">
|
|
<ul>
|
|
<%= raw content_block("subnavigation_left", I18n.locale) %>
|
|
|
|
<% if feature?(:debates) %>
|
|
<li>
|
|
<%= layout_menu_link_to t("layouts.header.debates"),
|
|
debates_path,
|
|
controller_name == "debates",
|
|
accesskey: "1" %>
|
|
</li>
|
|
<% end %>
|
|
<% if feature?(:proposals) %>
|
|
<li>
|
|
<%= layout_menu_link_to t("layouts.header.proposals"),
|
|
proposals_path,
|
|
controller.class == ProposalsController,
|
|
accesskey: "2" %>
|
|
</li>
|
|
<% end %>
|
|
<% if feature?(:polls) %>
|
|
<li>
|
|
<%= layout_menu_link_to t("layouts.header.poll_questions"),
|
|
polls_path,
|
|
controller_name == "polls" || (controller_name == "questions" && controller.class.parent == Polls),
|
|
accesskey: "3" %>
|
|
</li>
|
|
<% end %>
|
|
<% if feature?(:legislation) %>
|
|
<li>
|
|
<%= layout_menu_link_to t("layouts.header.collaborative_legislation"),
|
|
legislation_processes_path,
|
|
controller.class.parent == Legislation,
|
|
accesskey: "4" %>
|
|
</li>
|
|
<% end %>
|
|
<% if feature?(:budgets) %>
|
|
<li>
|
|
<%= layout_menu_link_to t("layouts.header.budgets"),
|
|
budgets_path,
|
|
controller_name == "budgets" || controller_name == "investments",
|
|
accesskey: "5" %>
|
|
</li>
|
|
<% end %>
|
|
<% if feature?(:sdg) %>
|
|
<li>
|
|
<%= layout_menu_link_to t("layouts.header.sdg"),
|
|
sdg_goals_path,
|
|
controller_path == "sdg/goals" && action_name != "help",
|
|
accesskey: "6" %>
|
|
</li>
|
|
<% end %>
|
|
<% if feature?(:help_page) %>
|
|
<li>
|
|
<%= layout_menu_link_to t("layouts.header.help"),
|
|
help_path,
|
|
current_page?(help_path),
|
|
accesskey: "7" %>
|
|
</li>
|
|
<% end %>
|
|
|
|
<%= raw content_block("subnavigation_right", I18n.locale) %>
|
|
</ul>
|
|
</div>
|