add global reputations page

This commit is contained in:
2021-05-05 20:20:06 +02:00
parent 62cdf32593
commit 3366251172
34 changed files with 170 additions and 6 deletions

View File

@@ -0,0 +1,22 @@
<h2>Reputations list</h2>
<table class="table table-hover table-dark table-image">
<thead>
<tr>
<th scope="col"><%= t('wow_reputations.reputation_list.name') %></th>
<th scope="col"><%= t('wow_reputations.reputation_list.description') %></th>
<th scope="col"><%= t('wow_reputations.reputation_list.highest_reputation_character') %></th>
</tr>
</thead>
<tbody>
<% @wow_reputations.each do |reputation| %>
<tr>
<td><%= reputation.name %></td>
<td><%= reputation.description %></td>
<td><%= render partial: 'wow_reputations/standing', locals: { standing: reputation.wow_standings.joins(:wow_character).where(wow_character: { user: current_user }).order(raw: :desc).first } %></td>
</tr>
<% end %>
</tbody>
</table>
<%== pagy_bootstrap_nav(@pagy) %>