summaryrefslogtreecommitdiff
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
parentf227929c14cc4edb1c646094f793894d47e2bdb3 (diff)
Display the user and password for the phone's WebGUI.
-rw-r--r--app/views/phones/show.html.haml18
-rw-r--r--config/locales/views/phones/de.yml4
-rw-r--r--config/locales/views/phones/en.yml4
3 files changed, 20 insertions, 6 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 }
diff --git a/config/locales/views/phones/de.yml b/config/locales/views/phones/de.yml
index 19fab87..8fe6ba8 100644
--- a/config/locales/views/phones/de.yml
+++ b/config/locales/views/phones/de.yml
@@ -12,8 +12,8 @@ de:
hot_deskable: 'Hot-Desk fähig'
ip_address: 'IP-Adresse'
last_ip_address: 'Letzte IP-Adresse'
- http_user: 'http user'
- http_password: 'http password'
+ http_user: 'Phone WebGUI Username'
+ http_password: 'Phone WebGUI Passwort'
nightly_reboot: 'Nachts automatischer Reboot'
provisioning_key_active: 'Provisioning Schlüssel aktiv'
actions:
diff --git a/config/locales/views/phones/en.yml b/config/locales/views/phones/en.yml
index eb05229..1f39f04 100644
--- a/config/locales/views/phones/en.yml
+++ b/config/locales/views/phones/en.yml
@@ -12,8 +12,8 @@ en:
hot_deskable: 'Hot-deskable'
ip_address: 'IP address'
last_ip_address: 'Last IP address'
- http_user: 'http user'
- http_password: 'http password'
+ http_user: 'Phone WebGUI username'
+ http_password: 'Phone WebGUI password'
nightly_reboot: 'Nightly reboot'
actions:
confirm_destroy: 'Are you sure you want to delete this phone?'