Simplify title on navigation links
This commit is contained in:
@@ -7,8 +7,7 @@
|
||||
<%= layout_menu_link_to t("layouts.header.debates"),
|
||||
debates_path,
|
||||
controller_name == "debates",
|
||||
accesskey: "1",
|
||||
title: t("shared.go_to_page") + t("layouts.header.debates") %>
|
||||
accesskey: "1" %>
|
||||
</li>
|
||||
<% end %>
|
||||
<% if feature?(:proposals) %>
|
||||
@@ -16,8 +15,7 @@
|
||||
<%= layout_menu_link_to t("layouts.header.proposals"),
|
||||
proposals_path,
|
||||
controller.class == ProposalsController,
|
||||
accesskey: "2",
|
||||
title: t("shared.go_to_page") + t("layouts.header.proposals") %>
|
||||
accesskey: "2" %>
|
||||
</li>
|
||||
<% end %>
|
||||
<% if feature?(:polls) %>
|
||||
@@ -25,8 +23,7 @@
|
||||
<%= layout_menu_link_to t("layouts.header.poll_questions"),
|
||||
polls_path,
|
||||
controller_name == "polls" || (controller_name == "questions" && controller.class.parent == Polls),
|
||||
accesskey: "3",
|
||||
title: t("shared.go_to_page") + t("layouts.header.poll_questions") %>
|
||||
accesskey: "3" %>
|
||||
</li>
|
||||
<% end %>
|
||||
<% if feature?(:legislation) %>
|
||||
@@ -42,8 +39,7 @@
|
||||
<%= layout_menu_link_to t("layouts.header.budgets"),
|
||||
budgets_path,
|
||||
controller_name == "budgets" || controller_name == "investments",
|
||||
accesskey: "5",
|
||||
title: t("shared.go_to_page") + t("layouts.header.budgets") %>
|
||||
accesskey: "5" %>
|
||||
</li>
|
||||
<% end %>
|
||||
<% if feature?(:help_page) %>
|
||||
@@ -51,8 +47,7 @@
|
||||
<%= layout_menu_link_to t("layouts.header.help"),
|
||||
help_path,
|
||||
current_page?(help_path),
|
||||
accesskey: "6",
|
||||
title: t("shared.go_to_page") + t("layouts.header.help") %>
|
||||
accesskey: "6" %>
|
||||
</li>
|
||||
<% end %>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user