This rule was introduced in RuboCop 1.76.0 to ensure methods ending in '?' return boolean. This commit applies suggested renames and code cleanup: - Renames 'is_active?' to 'active_class' since it returns a string - Renames 'parsed_value' to 'in_favor?' and 'is_request_active' to end with '?' for boolean semantics - Skips false positives like 'save', 'auto_labels' or 'save_requiring_finish_signup', which are not predicate methods.
30 lines
997 B
Plaintext
30 lines
997 B
Plaintext
<% provide :title, t("sdg.goals.help.title") %>
|
|
|
|
<% content_for :canonical do %>
|
|
<%= render "shared/canonical", href: sdg_help_url %>
|
|
<% end %>
|
|
|
|
<section class="sdg-help-content">
|
|
<h1><%= t("sdg.goals.help.title") %></h1>
|
|
<p><%= t("sdg.goals.help.description") %></p>
|
|
<ul class="tabs" id="help_tabs" data-deep-link="true" data-tabs>
|
|
<% goals.each do |goal| %>
|
|
<li class="tabs-title <%= active_class(goal) %>">
|
|
<%= link_to "#goal_#{goal.code}_tab" do %>
|
|
<% render SDG::Goals::IconComponent.new(goal) %>
|
|
<% end %>
|
|
</li>
|
|
<% end %>
|
|
</ul>
|
|
|
|
<div class="tabs-content" data-tabs-content="help_tabs">
|
|
<% goals.each do |goal| %>
|
|
<div id="goal_<%= goal.code %>_tab" class="tabs-panel <%= active_class(goal) %>">
|
|
<h2><%= goal.code_and_title %></h2>
|
|
<p><%= sanitize t("sdg.goals.goal_#{goal.code}.description") %></p>
|
|
<%= render SDG::Goals::TargetsComponent.new(goal) %>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
</section>
|