diff options
author | Peter Kozak <spag@golwen.net> | 2013-08-06 12:15:38 +0200 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-08-06 12:15:38 +0200 |
commit | b5a7614d0138006c2bf2d51b44618d12b6cc2105 (patch) | |
tree | 1d7a745efbbc2dd857488cea0d562060edd43f2c /app/views/config_snom/snom_vision.xml.haml | |
parent | 03947a9190faf19d7c9cfd9ba407f051cb5d4888 (diff) |
xml keys added
Diffstat (limited to 'app/views/config_snom/snom_vision.xml.haml')
-rw-r--r-- | app/views/config_snom/snom_vision.xml.haml | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/app/views/config_snom/snom_vision.xml.haml b/app/views/config_snom/snom_vision.xml.haml index 38a8d35..053feb9 100644 --- a/app/views/config_snom/snom_vision.xml.haml +++ b/app/views/config_snom/snom_vision.xml.haml @@ -29,8 +29,12 @@ %left_button_imageurl{:idx=> index_left, :perm=>"!"}= button[:imageurl] %left_button_name{:idx=> index_left, :perm=>"!"}= button[:label] - %left_button_type{:idx=> index_left, :perm=>"!"}= button[:type] - %left_button_value{:idx=> index_left, :perm=>"!"}= button[:value] + - if button[:general_type].blank? + %left_button_type{:idx=> index_left, :perm=>"!"}= button[:type] + %left_button_value{:idx=> index_left, :perm=>"!"}= button[:value] + - else + %left_button_type{:idx=> index_left, :perm=>"!"} xml + %left_button_value{:idx=> index_left, :perm=>"!"} - for key in 1..8 do - index_right = index_right + 1 @@ -40,5 +44,9 @@ %right_button_imageurl{:idx=> index_right, :perm=>"!"}= button[:imageurl] %right_button_name{:idx=> index_right, :perm=>"!"}= button[:label] - %right_button_type{:idx=> index_right, :perm=>"!"}= button[:type] - %right_button_value{:idx=> index_right, :perm=>"!"}= button[:value] + - if button[:general_type].blank? + %right_button_type{:idx=> index_right, :perm=>"!"}= button[:type] + %right_button_value{:idx=> index_right, :perm=>"!"}= button[:value] + - else + %right_button_type{:idx=> index_right, :perm=>"!"} xml + %right_button_value{:idx=> index_right, :perm=>"!"} |