From 905a8d0715018188d952d99af5f4686437b4a779 Mon Sep 17 00:00:00 2001 From: Peter Kozak Date: Mon, 29 Apr 2013 15:40:44 +0200 Subject: sorting and paginations --- app/views/sip_accounts/_index_core.html.haml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'app/views/sip_accounts/_index_core.html.haml') diff --git a/app/views/sip_accounts/_index_core.html.haml b/app/views/sip_accounts/_index_core.html.haml index d98ea0a..7f393d7 100644 --- a/app/views/sip_accounts/_index_core.html.haml +++ b/app/views/sip_accounts/_index_core.html.haml @@ -1,10 +1,13 @@ +.pagination + - if defined?(users.total_pages) + = will_paginate users, :renderer => BootstrapPagination::Rails %table.table.table-striped %thead %tr %th %span.hidden-phone = t('sip_accounts.index.online') - %th= t('sip_accounts.index.caller_name') + %th= sortable :caller_name, t('sip_accounts.index.caller_name') %th %span.hidden-phone = t('sip_accounts.index.phone_numbers') -- cgit v1.2.3 From 20570c967e0d63fd6d1644cd64e4c0c7859bc57f Mon Sep 17 00:00:00 2001 From: Peter Kozak Date: Thu, 2 May 2013 10:50:47 +0200 Subject: pagination --- app/views/sip_accounts/_index_core.html.haml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'app/views/sip_accounts/_index_core.html.haml') diff --git a/app/views/sip_accounts/_index_core.html.haml b/app/views/sip_accounts/_index_core.html.haml index 7f393d7..d91a3ef 100644 --- a/app/views/sip_accounts/_index_core.html.haml +++ b/app/views/sip_accounts/_index_core.html.haml @@ -1,6 +1,7 @@ -.pagination - - if defined?(users.total_pages) - = will_paginate users, :renderer => BootstrapPagination::Rails + +- if defined?(users.total_pages) + = will_paginate users, :renderer => BootstrapPagination::Rails, :previous_label => raw(''), :next_label => raw('') + %table.table.table-striped %thead %tr -- cgit v1.2.3 From 525aaf6dcb5bafe5a949a078dee6abb24d87e2a5 Mon Sep 17 00:00:00 2001 From: Peter Kozak Date: Thu, 13 Jun 2013 11:21:07 +0200 Subject: display tenant and user sip_accounts combined --- app/views/sip_accounts/_index_core.html.haml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/views/sip_accounts/_index_core.html.haml') diff --git a/app/views/sip_accounts/_index_core.html.haml b/app/views/sip_accounts/_index_core.html.haml index d91a3ef..be1f4cb 100644 --- a/app/views/sip_accounts/_index_core.html.haml +++ b/app/views/sip_accounts/_index_core.html.haml @@ -5,6 +5,8 @@ %table.table.table-striped %thead %tr + - if defined?(show_sip_accountable) && show_sip_accountable + %th= sortable :sip_accountable_id, t('sip_accounts.index.sip_accountable') %th %span.hidden-phone = t('sip_accounts.index.online') @@ -20,6 +22,9 @@ %tbody - for sip_account in sip_accounts %tr{:class => (sip_account.registration ? '' : 'warning')} + - if defined?(show_sip_accountable) && show_sip_accountable + %td + = sip_account.sip_accountable %td - if sip_account.registration %i.icon-ok -- cgit v1.2.3