summaryrefslogtreecommitdiff
path: root/app/views/config_snom/state_settings.xml.haml
blob: 6be1efcc97872a38b1851792430285f45ac5a932 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
!!! XML
%SnomIPPhoneMenu{:state => 'relevant', :title => "Gemeinschaft #{GsParameter.get('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'