summaryrefslogtreecommitdiff
path: root/app/views/phones/show.html.haml
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2012-12-28 19:31:31 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2012-12-28 19:31:31 +0100
commit3b07751150c0cd70eee4e750dd7a3670120a8675 (patch)
tree6107e30015715160fa4a7e35d5fd0761631dc864 /app/views/phones/show.html.haml
parentb2e5168b917202ebd71f3032f125691ef1fd062f (diff)
Fallback SIP Accounts are only shown when the hotdeskable field is checked.
Diffstat (limited to 'app/views/phones/show.html.haml')
-rw-r--r--app/views/phones/show.html.haml14
1 files changed, 7 insertions, 7 deletions
diff --git a/app/views/phones/show.html.haml b/app/views/phones/show.html.haml
index 7629fb9..090323e 100644
--- a/app/views/phones/show.html.haml
+++ b/app/views/phones/show.html.haml
@@ -6,13 +6,13 @@
%p
%strong= t('phones.show.phone_model_id') + ":"
= @phone.phone_model
-%p
- %strong= t('phones.show.hot_deskable') + ":"
- = @phone.hot_deskable
-
-%p
- %strong= t('phones.show.fallback_sip_account_id') + ":"
- = @phone.fallback_sip_account
+- if @phone.hot_deskable == true
+ %p
+ %strong= t('phones.show.hot_deskable') + ":"
+ = @phone.hot_deskable
+ %p
+ %strong= t('phones.show.fallback_sip_account_id') + ":"
+ = @phone.fallback_sip_account
- if defined? NIGHTLY_REBOOT_OF_PHONES && NIGHTLY_REBOOT_OF_PHONES == true
%p