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'}
|
%th{class: 'col-xs-2'}
|
||||||
= sort_link(@q, 'active', t('.active'))
|
= sort_link(@q, 'active', t('.active'))
|
||||||
%tbody
|
%tbody
|
||||||
- @api_users.each do |x|
|
- @api_users.each do |api_user|
|
||||||
%tr
|
%tr
|
||||||
%td= link_to(x, [:admin, x])
|
%td= link_to api_user, [:admin, api_user]
|
||||||
%td= link_to(x.registrar, [:admin, x.registrar])
|
%td= link_to api_user.registrar, [:admin, api_user.registrar]
|
||||||
%td= x.active
|
%td= api_user.active
|
||||||
.row
|
.row
|
||||||
.col-md-12
|
.col-md-12
|
||||||
= paginate @api_users
|
= paginate @api_users
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<%= render 'admin/registrars/show/users', registrar: @registrar %>
|
<%= render 'admin/registrars/show/api_users', registrar: @registrar %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -12,10 +12,10 @@
|
||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
<tbody>
|
<tbody>
|
||||||
<% registrar.api_users.each do |user| %>
|
<% registrar.api_users.each do |api_user| %>
|
||||||
<tr>
|
<tr>
|
||||||
<td><%= link_to(user, [:admin, user]) %></td>
|
<td><%= link_to api_user, admin_registrar_api_user_path(api_user.registrar, api_user) %></td>
|
||||||
<td><%= user.active %></td>
|
<td><%= api_user.active %></td>
|
||||||
</tr>
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
</tbody>
|
</tbody>
|
|
@ -25,7 +25,7 @@ en:
|
||||||
preferences:
|
preferences:
|
||||||
header: Preferences
|
header: Preferences
|
||||||
|
|
||||||
users:
|
api_users:
|
||||||
header: API Users
|
header: API Users
|
||||||
new_btn: New API user
|
new_btn: New API user
|
||||||
|
|
||||||
|
@ -67,4 +67,4 @@ en:
|
||||||
iban_hint: Used for e-invoices
|
iban_hint: Used for e-invoices
|
||||||
|
|
||||||
preferences:
|
preferences:
|
||||||
header: Preferences
|
header: Preferences
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue