mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 20:18:22 +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>
|
</thead>
|
||||||
|
|
||||||
<tbody>
|
<tbody>
|
||||||
<% @api_users.each do |api_user| %>
|
<%= render @api_users %>
|
||||||
<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 %>
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue