mirror of
https://github.com/internetee/registry.git
synced 2025-05-19 02:39:37 +02:00
111396946-order_and_style_changes
This commit is contained in:
parent
f31db65d2c
commit
db819447c6
3 changed files with 5 additions and 5 deletions
|
@ -4,7 +4,7 @@ class Admin::BlockedDomainsController < AdminController
|
|||
def index
|
||||
|
||||
params[:q] ||= {}
|
||||
domains = BlockedDomain.all
|
||||
domains = BlockedDomain.all.order(:name)
|
||||
@q = domains.search(params[:q])
|
||||
@domains = @q.result.page(params[:page])
|
||||
@domains = @domains.per(params[:results_per_page]) if params[:results_per_page].to_i > 0
|
||||
|
|
|
@ -5,7 +5,7 @@ class Admin::ReservedDomainsController < AdminController
|
|||
def index
|
||||
|
||||
params[:q] ||= {}
|
||||
domains = ReservedDomain.all
|
||||
domains = ReservedDomain.all.order(:name)
|
||||
@q = domains.search(params[:q])
|
||||
@domains = @q.result.page(params[:page])
|
||||
@domains = @domains.per(params[:results_per_page]) if params[:results_per_page].to_i > 0
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
= sort_link(@q, 'created_at', t(:created_at))
|
||||
%th{class: 'col-xs-2'}
|
||||
= sort_link(@q, 'updated_at', t(:updated_at))
|
||||
%th{class: 'col-xs-2'}
|
||||
%th{class: 'col-xs-1'}
|
||||
= t(:actions)
|
||||
%tbody
|
||||
- @domains.each do |x|
|
||||
|
@ -51,9 +51,9 @@
|
|||
%td= x.name
|
||||
%td= l(x.created_at, format: :short)
|
||||
%td= l(x.updated_at, format: :short)
|
||||
%td
|
||||
%td{class: 'col-xs-1'}
|
||||
= link_to(t(:delete), delete_admin_blocked_domain_path(id: x.id),
|
||||
data: { confirm: t(:are_you_sure) }, class: 'btn btn-danger btn-xs')
|
||||
data: { confirm: t(:are_you_sure) }, class: 'btn btn-danger btn-xs center-block')
|
||||
.row
|
||||
.col-md-6
|
||||
= paginate @domains
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue