Improve readability

This commit is contained in:
Artur Beljajev 2019-12-09 21:01:36 +02:00
parent 3c5c0c4310
commit c680b688e4
4 changed files with 10 additions and 10 deletions

View file

@ -13,11 +13,11 @@
%th{class: 'col-xs-2'}
= sort_link(@q, 'active', t('.active'))
%tbody
- @api_users.each do |x|
- @api_users.each do |api_user|
%tr
%td= link_to(x, [:admin, x])
%td= link_to(x.registrar, [:admin, x.registrar])
%td= x.active
%td= link_to api_user, [:admin, api_user]
%td= link_to api_user.registrar, [:admin, api_user.registrar]
%td= api_user.active
.row
.col-md-12
= paginate @api_users

View file

@ -39,7 +39,7 @@
<div class="row">
<div class="col-md-12">
<%= render 'admin/registrars/show/users', registrar: @registrar %>
<%= render 'admin/registrars/show/api_users', registrar: @registrar %>
</div>
</div>

View file

@ -12,10 +12,10 @@
</thead>
<tbody>
<% registrar.api_users.each do |user| %>
<% registrar.api_users.each do |api_user| %>
<tr>
<td><%= link_to(user, [:admin, user]) %></td>
<td><%= user.active %></td>
<td><%= link_to api_user, admin_registrar_api_user_path(api_user.registrar, api_user) %></td>
<td><%= api_user.active %></td>
</tr>
<% end %>
</tbody>

View file

@ -25,7 +25,7 @@ en:
preferences:
header: Preferences
users:
api_users:
header: API Users
new_btn: New API user