summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-26 22:44:11 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-26 22:44:11 +0100
commit5e83f10c186d403a7dfe1d35afd1b64a5935a8ec (patch)
treea6aea02e50daee2a8e71b313cd22306e74e4290f /app
parentf227929c14cc4edb1c646094f793894d47e2bdb3 (diff)
Display the user and password for the phone's WebGUI.
Diffstat (limited to 'app')
-rw-r--r--app/views/phones/show.html.haml18
1 files changed, 16 insertions, 2 deletions
diff --git a/app/views/phones/show.html.haml b/app/views/phones/show.html.haml
index 2cf6f3c..f56ae65 100644
--- a/app/views/phones/show.html.haml
+++ b/app/views/phones/show.html.haml
@@ -32,14 +32,14 @@
%td
%strong= t('phones.show.nightly_reboot') + ":"
%td
- = @phone.nightly_reboot
+ = @phone.nightly_reboot == true ? t('simple_form.yes') : t('simple_form.no')
- if !GsParameter.get('PROVISIONING_KEY_LENGTH').nil? && GsParameter.get('PROVISIONING_KEY_LENGTH') > 0
%tr
%td
%strong= t('phones.show.provisioning_key_active') + ":"
%td
- = @phone.provisioning_key_active
+ = @phone.provisioning_key_active == true ? t('simple_form.yes') : t('simple_form.no')
%tr{:class => (@phone.ip_address.blank? ? 'warning' : '')}
%td
@@ -51,6 +51,20 @@
- else
= @phone.ip_address
+ - if current_user.admin? && (!@phone.http_user.blank? || !@phone.http_password.blank?)
+ %tr
+ %td
+ %strong= t('phones.show.http_user') + ":"
+ %td
+ = @phone.http_user
+
+ %tr
+ %td
+ %strong= t('phones.show.http_password') + ":"
+ %td
+ = @phone.http_password
+
+
= render :partial => 'shared/show_edit_destroy_part', :locals => { :parent => @phone.phoneable, :child => @phone }