Files
grecia/app/views/admin/valuators/_valuators.html.erb
Javi Martín 911fe4e481 Simplify calls to render partial
We're also adding a bit of consistency, since most of our calls to
partial rendering omit the `partial` and `locals` keys.
2019-09-04 15:00:36 +02:00

22 lines
803 B
Plaintext

<table>
<thead>
<th scope="col"><%= t("admin.valuators.index.name") %></th>
<th scope="col"><%= t("admin.valuators.index.email") %></th>
<th scope="col"><%= t("admin.valuators.index.description") %></th>
<th scope="col"><%= t("admin.valuators.index.group") %></th>
<th scope="col"><%= t("admin.valuators.index.abilities") %></th>
<th scope="col" class="small-3"><%= t("admin.actions.actions") %></th>
</thead>
<tbody>
<% valuators.each do |valuator| %>
<% if valuator.is_a?(Valuator) %>
<%= render "valuator_row", valuator: valuator %>
<% elsif valuator.valuator? %>
<%= render "valuator_row", valuator: valuator.valuator %>
<% else %>
<%= render "user_row", user: valuator %>
<% end %>
<% end %>
</tbody>
</table>