summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-08-13 07:31:47 +0200
committerPeter Kozak <spag@golwen.net>2013-08-13 07:31:47 +0200
commit53492ca776b50665beb9fc218015dcde0f3a265b (patch)
treeb842cb1a016c3a27537b7fd013038862e6be6e78 /app
parent36f2a0dc21c9175d5a9a51081b4cfac28421ca96 (diff)
yealink phone book added
Diffstat (limited to 'app')
-rw-r--r--app/views/config_yealink/_phone_directory.xml.haml6
-rw-r--r--app/views/config_yealink/_phone_menu.xml.haml6
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]