mirror of
https://github.com/internetee/registry.git
synced 2025-06-07 21:25:39 +02:00
Improve readability
This commit is contained in:
parent
3c5c0c4310
commit
c680b688e4
4 changed files with 10 additions and 10 deletions
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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>
|
|
@ -25,7 +25,7 @@ en:
|
|||
preferences:
|
||||
header: Preferences
|
||||
|
||||
users:
|
||||
api_users:
|
||||
header: API Users
|
||||
new_btn: New API user
|
||||
|
||||
|
@ -67,4 +67,4 @@ en:
|
|||
iban_hint: Used for e-invoices
|
||||
|
||||
preferences:
|
||||
header: Preferences
|
||||
header: Preferences
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue