summaryrefslogtreecommitdiff
path: root/app/views/config_snom/state_settings.xml.haml
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2012-12-17 12:05:14 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2012-12-17 12:05:14 +0100
commiteaad37485fe59d0306c37cc038dda6d210052910 (patch)
tree072c4b0e33d442528555b82c415f5e7a1712b2b0 /app/views/config_snom/state_settings.xml.haml
parent3e706c2025ecc5523e81ad649639ef2ff75e7bac (diff)
parentb80bd744ad873f6fc43018bc4bfb90677de167bd (diff)
Merge branch 'develop'
Diffstat (limited to 'app/views/config_snom/state_settings.xml.haml')
-rw-r--r--app/views/config_snom/state_settings.xml.haml49
1 files changed, 49 insertions, 0 deletions
diff --git a/app/views/config_snom/state_settings.xml.haml b/app/views/config_snom/state_settings.xml.haml
new file mode 100644
index 0000000..ac0e872
--- /dev/null
+++ b/app/views/config_snom/state_settings.xml.haml
@@ -0,0 +1,49 @@
+!!! XML
+%SnomIPPhoneMenu{:state => 'relevant', :title => "Gemeinschaft #{GEMEINSCHAFT_VERSION}"}
+ %MenuItem{:name => '$(lang:menu100_phone_book)'}
+ %URL= "#{@base_url}/#{@sip_account_ids.first}/phone_book.xml"
+ %Menu{:name => '$(lang:menu100_call_lists)'}
+ %MenuItem{:name => '$(lang:list_missed)'}
+ - @sip_account_ids.each_with_index do |id, index|
+ %If{:condition => "$(current_line)==#{index+1}"}
+ %URL= "#{@base_url}/#{id}/call_history_missed.xml"
+ %MenuItem{:name => '$(lang:list_taken)'}
+ - @sip_account_ids.each_with_index do |id, index|
+ %If{:condition => "$(current_line)==#{index+1}"}
+ %URL= "#{@base_url}/#{id}/call_history_received.xml"
+ %MenuItem{:name => '$(lang:list_dialed)'}
+ - @sip_account_ids.each_with_index do |id, index|
+ %If{:condition => "$(current_line)==#{index+1}"}
+ %URL= "#{@base_url}/#{id}/call_history_dialed.xml"
+ %MenuItem{:name => '$(lang:sel100_activeline)'}
+ %Action= 'active_line'
+
+ - if @enable_login
+ %MenuItem{:name => 'Log in'}
+ %URL= "#{@base_url}/log_in.xml"
+ - if @enable_logout
+ %MenuItem{:name => 'Log out'}
+ %URL= "#{@base_url}/log_out.xml"
+
+ %Menu{:name => '$(lang:preferences_settings)'}
+ %MenuItem{:name => '$(lang:menu_gen_contrast)'}
+ %Action= 'contrast'
+ %MenuItem{:name => '$(lang:use_backlight)'}
+ %Action= 'use_backlight'
+ %MenuItem{:name => '$(lang:use_backlight) $(lang:backlight_when_active)'}
+ %Action= 'backlight_active'
+ %MenuItem{:name => '$(lang:use_backlight) $(lang:backlight_when_idle)'}
+ %Action= 'backlight_idle'
+ %MenuItem{:name => '$(lang:menu_equalizer)'}
+ %Action= 'equalizer'
+ %Menu{:name => '$(lang:maintenance_settings)'}
+ %MenuItem{:name => '$(lang:system_information_menu)'}
+ %Action= 'sysinfo'
+ %MenuItem{:name => '$(lang:sel100_reboot)'}
+ %Action= 'reboot'
+ %If{:condition => '$(set:admin_mode)'}
+ %MenuItem{:name => '$(lang:reset_settings)'}
+ %Action= 'reset_settings'
+ %If{:condition => '$(update_available)'}
+ %MenuItem{:name => '$(lang:update_header)'}
+ %Action= 'software_update' \ No newline at end of file