From 82221da674553779520ab0ba1b84d42954d0d1ab Mon Sep 17 00:00:00 2001 From: Martin Lensment Date: Thu, 30 Jul 2015 18:14:05 +0300 Subject: [PATCH] Add result count #2122 --- app/views/admin/domains/index.haml | 5 ++++- config/locales/en.yml | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/views/admin/domains/index.haml b/app/views/admin/domains/index.haml index ce2a16ed3..d6c2a9be9 100644 --- a/app/views/admin/domains/index.haml +++ b/app/views/admin/domains/index.haml @@ -75,8 +75,11 @@ %td= l(x.valid_to, format: :short) %td= link_to(x.registrar, admin_registrar_path(x.registrar)) if x.registrar .row - .col-md-12 + .col-md-6 = paginate @domains + .col-md-6.text-right + .pagination + = t(:result_count, count: @domains.total_count) :coffee $(".js-reset-form").on "click", (e) -> diff --git a/config/locales/en.yml b/config/locales/en.yml index 7e32b672b..77fd119bd 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -892,3 +892,4 @@ en: contact_ident: 'Contact ident' results_per_page: 'Results per page' nameserver_hostname: 'Nameserver hostname' + result_count: '%{count} results'