diff options
author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-03-10 18:32:13 +0100 |
---|---|---|
committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-03-10 18:32:13 +0100 |
commit | b9aeac77779f7a9ae0e51b8d95adc7d542e09ece (patch) | |
tree | 7bdec18d5bc3f45cd924aa01d351d0c1ea8179c1 /app/views/switchboard_entries/_switchboard_entry.html.haml | |
parent | 3004ad318aecab81d8d3fb451901efc4d485e9ab (diff) |
Small fixes.
Diffstat (limited to 'app/views/switchboard_entries/_switchboard_entry.html.haml')
-rw-r--r-- | app/views/switchboard_entries/_switchboard_entry.html.haml | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/app/views/switchboard_entries/_switchboard_entry.html.haml b/app/views/switchboard_entries/_switchboard_entry.html.haml index 5608757..8d8e747 100644 --- a/app/views/switchboard_entries/_switchboard_entry.html.haml +++ b/app/views/switchboard_entries/_switchboard_entry.html.haml @@ -21,12 +21,7 @@ %i.icon-user.icon-white - if switchboard_entry.sip_account.call_legs(:where => ["RINGING"]).size != 0 %span.label.label-info - %i.icon-bell.icon-white - - if switchboard_entry.sip_account.non_e164_phone_numbers.size == 0 - - phone_numbers = switchboard_entry.sip_account.phone_numbers - - else - - phone_numbers = switchboard_entry.sip_account.non_e164_phone_numbers - - - phone_numbers.each do |phone_number| + %i.icon-bell.icon-white + - if switchboard_entry.sip_account.phone_numbers.any? %span.label - = phone_number.number + = switchboard_entry.sip_account.phone_numbers.first.number |