mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 08:52:04 +02:00
Convert HAML to ERB
This commit is contained in:
parent
de6934625c
commit
4d60985138
10 changed files with 211 additions and 131 deletions
42
app/views/admin/api_users/index.html.erb
Normal file
42
app/views/admin/api_users/index.html.erb
Normal file
|
@ -0,0 +1,42 @@
|
|||
<%= render 'shared/title', name: t('.title') %>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover table-bordered table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="col-xs-2">
|
||||
<%= sort_link(@q, 'username') %>
|
||||
</th>
|
||||
<th class="col-xs-2">
|
||||
<%= sort_link(@q, 'registrar_name', t(:registrar_name)) %>
|
||||
</th>
|
||||
<th class="col-xs-2">
|
||||
<%= sort_link(@q, 'active', t('.active')) %>
|
||||
</th>
|
||||
</tr>
|
||||
</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 %>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<%= paginate @api_users %>
|
||||
</div>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue