mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 19:48:28 +02:00
Extract partial
This commit is contained in:
parent
d82c44600a
commit
3cea41e119
2 changed files with 6 additions and 9 deletions
5
app/views/admin/api_users/_api_user.html.erb
Normal file
5
app/views/admin/api_users/_api_user.html.erb
Normal 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>
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue