Extract partial

This commit is contained in:
Artur Beljajev 2019-12-09 22:33:30 +02:00
parent d82c44600a
commit 3cea41e119
2 changed files with 6 additions and 9 deletions

View file

@ -0,0 +1,5 @@
<tr>
<td><%= link_to api_user, admin_registrar_api_user_path(api_user.registrar, api_user) %></td>
<td><%= link_to api_user.registrar, [:admin, api_user.registrar] %></td>
<td><%= api_user.active %></td>
</tr>

View file

@ -21,15 +21,7 @@
</thead>
<tbody>
<% @api_users.each do |api_user| %>
<tr>
<td><%= link_to api_user,
admin_registrar_api_user_path(api_user.registrar,
api_user) %></td>
<td><%= link_to api_user.registrar, [:admin, api_user.registrar] %></td>
<td><%= api_user.active %></td>
</tr>
<% end %>
<%= render @api_users %>
</tbody>
</table>
</div>