summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-06-27 12:08:55 +0200
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-06-27 12:08:55 +0200
commitbdb14342dd502ea01a83a791bb51507a82522daf (patch)
tree348858963d2a22aa6060c608be9d493105856274
parentb9eb27eedd2fc1fc0b8edd7d09a895745f259312 (diff)
Added: (sip_account.registration.expires - Time.now.to_i) > 0
-rw-r--r--app/views/sip_accounts/_index_core.html.haml2
1 files changed, 1 insertions, 1 deletions
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