diff options
author | Peter Kozak <spag@golwen.net> | 2013-08-13 07:31:47 +0200 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-08-13 07:31:47 +0200 |
commit | 53492ca776b50665beb9fc218015dcde0f3a265b (patch) | |
tree | b842cb1a016c3a27537b7fd013038862e6be6e78 /app | |
parent | 36f2a0dc21c9175d5a9a51081b4cfac28421ca96 (diff) |
yealink phone book added
Diffstat (limited to 'app')
-rw-r--r-- | app/views/config_yealink/_phone_directory.xml.haml | 6 | ||||
-rw-r--r-- | app/views/config_yealink/_phone_menu.xml.haml | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/app/views/config_yealink/_phone_directory.xml.haml b/app/views/config_yealink/_phone_directory.xml.haml new file mode 100644 index 0000000..77f76bf --- /dev/null +++ b/app/views/config_yealink/_phone_directory.xml.haml @@ -0,0 +1,6 @@ +%YealinkIPPhoneDirectory + - @phone_book.phone_book_entries.each do |phone_book_entry| + - if !phone_book_entry.to_s.blank? && phone_book_entry.phone_numbers.first + %DirectoryEntry + %Name= phone_book_entry.to_s + %Telephone= phone_book_entry.phone_numbers.first.number diff --git a/app/views/config_yealink/_phone_menu.xml.haml b/app/views/config_yealink/_phone_menu.xml.haml new file mode 100644 index 0000000..4ed41ec --- /dev/null +++ b/app/views/config_yealink/_phone_menu.xml.haml @@ -0,0 +1,6 @@ +%YealinkIPPhoneMenu + %Title Gemeinschaft + - @phone_books.each do |phone_book| + %MenuItem + %Name= phone_book[:name] + %URL= phone_book[:url] |