app/views/ratings/results.html.erb
<% head_info :title, t('.title') %>
<% head_info :description, t('.description') %>
<h4><%= t '.title' %></h4>
<ul class="nav nav-tabs" role="tablist">
<li class="nav-item" role="presentation">
<button class="nav-link active" id="male-tab" data-bs-toggle="tab" data-bs-target="#male-tab-pane" type="button" role="tab" aria-controls="male-tab-pane" aria-selected="false"><%= t '.men' %></button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" id="female-tab" data-bs-toggle="tab" data-bs-target="#female-tab-pane" type="button" role="tab" aria-controls="female-tab-pane" aria-selected="false"><%= t '.women' %></button>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane fade show active" id="male-tab-pane" role="tabpanel" aria-labelledby="male-tab" tabindex="0">
<%= render partial: 'results_table', locals: { results: @male_results } %>
</div>
<div class="tab-pane fade" id="female-tab-pane" role="tabpanel" aria-labelledby="female-tab" tabindex="0">
<%= render partial: 'results_table', locals: { results: @female_results } %>
</div>
</div>