From bdb14342dd502ea01a83a791bb51507a82522daf Mon Sep 17 00:00:00 2001 From: Stefan Wintermeyer Date: Thu, 27 Jun 2013 12:08:55 +0200 Subject: Added: (sip_account.registration.expires - Time.now.to_i) > 0 --- app/views/sip_accounts/_index_core.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/sip_accounts/_index_core.html.haml b/app/views/sip_accounts/_index_core.html.haml index 2032720..57641ce 100644 --- a/app/views/sip_accounts/_index_core.html.haml +++ b/app/views/sip_accounts/_index_core.html.haml @@ -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 -- cgit v1.2.3