diff options
Diffstat (limited to 'app/views/sip_accounts')
-rw-r--r-- | app/views/sip_accounts/_index_core.html.haml | 6 | ||||
-rw-r--r-- | app/views/sip_accounts/show.html.haml | 5 |
2 files changed, 8 insertions, 3 deletions
diff --git a/app/views/sip_accounts/_index_core.html.haml b/app/views/sip_accounts/_index_core.html.haml index be1f4cb..57641ce 100644 --- a/app/views/sip_accounts/_index_core.html.haml +++ b/app/views/sip_accounts/_index_core.html.haml @@ -1,6 +1,6 @@ -- if defined?(users.total_pages) - = will_paginate users, :renderer => BootstrapPagination::Rails, :previous_label => raw('<i class = "icon-chevron-left"></i>'), :next_label => raw('<i class = "icon-chevron-right"></i>') +- if defined?(sip_accounts.total_pages) + = will_paginate sip_accounts, :renderer => BootstrapPagination::Rails, :previous_label => raw('<i class = "icon-chevron-left"></i>'), :next_label => raw('<i class = "icon-chevron-right"></i>') %table.table.table-striped %thead @@ -26,7 +26,7 @@ %td = sip_account.sip_accountable %td - - if sip_account.registration + - if sip_account.registration && (sip_account.registration.expires - Time.now.to_i) > 0 %i.icon-ok - else %i.icon-ban-circle diff --git a/app/views/sip_accounts/show.html.haml b/app/views/sip_accounts/show.html.haml index a7cd3ce..0974ee5 100644 --- a/app/views/sip_accounts/show.html.haml +++ b/app/views/sip_accounts/show.html.haml @@ -42,6 +42,11 @@ %strong= t('sip_accounts.show.voicemail_account') + ":" %td = @sip_account.voicemail_account + %tr + %td + %strong= t('sip_accounts.show.language_code') + ":" + %td + = @sip_account.language_code - if @sip_account.registration.try(:network_ip) && @sip_account.registration.try(:network_port) %tr |