This way it will be easier to change the behavior of all table actions, like adding ARIA attributes. In the past, when we changed the behavior of the `link_to` method, we had to change all table action classes.
27 lines
657 B
Plaintext
27 lines
657 B
Plaintext
<tr>
|
|
<td><%= valuator.name %></td>
|
|
<td><%= valuator.email %></td>
|
|
<td>
|
|
<% if valuator.description.present? %>
|
|
<%= valuator.description %>
|
|
<% else %>
|
|
<%= t("admin.valuators.index.no_description") %>
|
|
<% end %>
|
|
</td>
|
|
<td>
|
|
<% if valuator.valuator_group.present? %>
|
|
<%= valuator.valuator_group&.name %>
|
|
<% else %>
|
|
<%= t("admin.valuators.index.no_group") %>
|
|
<% end %>
|
|
</td>
|
|
<td>
|
|
<%= valuator_abilities(valuator) %>
|
|
</td>
|
|
<td>
|
|
<%= render Admin::TableActionsComponent.new(valuator) do |actions| %>
|
|
<%= actions.action(:show, text: t("admin.shared.view")) %>
|
|
<% end %>
|
|
</td>
|
|
</tr>
|