Add and apply ArgumentAlignment rubocop rule
We're choosing the default `with_first_argument` style because it's the one we use the most.
This commit is contained in:
@@ -7,8 +7,8 @@
|
||||
|
||||
<p class="info">
|
||||
<%= sanitize(t("layouts.footer.description",
|
||||
open_source: link_to(t("layouts.footer.open_source"), t("layouts.footer.open_source_url"), target: "blank", rel: "nofollow"),
|
||||
consul: link_to(t("layouts.footer.consul"), t("layouts.footer.consul_url"), target: "blank", rel: "nofollow"))) %>
|
||||
open_source: link_to(t("layouts.footer.open_source"), t("layouts.footer.open_source_url"), target: "blank", rel: "nofollow"),
|
||||
consul: link_to(t("layouts.footer.consul"), t("layouts.footer.consul_url"), target: "blank", rel: "nofollow"))) %>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
<% if user %>
|
||||
<li>
|
||||
<%= layout_menu_link_to t("layouts.header.my_activity_link"),
|
||||
user_path(user),
|
||||
controller_name == "users",
|
||||
rel: "nofollow",
|
||||
title: t("shared.go_to_page") +
|
||||
t("layouts.header.my_activity_link") %>
|
||||
user_path(user),
|
||||
controller_name == "users",
|
||||
rel: "nofollow",
|
||||
title: t("shared.go_to_page") +
|
||||
t("layouts.header.my_activity_link") %>
|
||||
</li>
|
||||
<li>
|
||||
<%= layout_menu_link_to t("layouts.header.my_account_link"),
|
||||
account_path,
|
||||
controller_name == "account",
|
||||
rel: "nofollow",
|
||||
title: t("shared.go_to_page") +
|
||||
t("layouts.header.my_account_link") %>
|
||||
account_path,
|
||||
controller_name == "account",
|
||||
rel: "nofollow",
|
||||
title: t("shared.go_to_page") +
|
||||
t("layouts.header.my_account_link") %>
|
||||
</li>
|
||||
<li>
|
||||
<%= link_to t("devise_views.menu.login_items.logout"),
|
||||
|
||||
@@ -21,9 +21,9 @@
|
||||
<% if feature?(:polls) %>
|
||||
<li>
|
||||
<%= layout_menu_link_to t("layouts.header.poll_questions"),
|
||||
polls_path,
|
||||
controller_name == "polls" || (controller_name == "questions" && controller.class.module_parent == Polls),
|
||||
accesskey: "3" %>
|
||||
polls_path,
|
||||
controller_name == "polls" || (controller_name == "questions" && controller.class.module_parent == Polls),
|
||||
accesskey: "3" %>
|
||||
</li>
|
||||
<% end %>
|
||||
<% if feature?(:legislation) %>
|
||||
@@ -37,9 +37,9 @@
|
||||
<% if feature?(:budgets) %>
|
||||
<li>
|
||||
<%= layout_menu_link_to t("layouts.header.budgets"),
|
||||
budgets_path,
|
||||
controller_name == "budgets" || controller_name == "investments",
|
||||
accesskey: "5" %>
|
||||
budgets_path,
|
||||
controller_name == "budgets" || controller_name == "investments",
|
||||
accesskey: "5" %>
|
||||
</li>
|
||||
<% end %>
|
||||
<% if feature?(:sdg) %>
|
||||
|
||||
Reference in New Issue
Block a user