summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-03-10 19:11:13 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-03-10 19:11:13 +0100
commitbeb9e66a5b4e2744435f2c1f301828b68a58c96a (patch)
tree81a3c4be5c434e6d0d1d26aa2791827c3509da04 /app/views
parentb9aeac77779f7a9ae0e51b8d95adc7d542e09ece (diff)
Indicate a new voicemail in the navigation bar.
Diffstat (limited to 'app/views')
-rw-r--r--app/views/layouts/_navbar.html.haml4
-rw-r--r--app/views/layouts/application.html.haml1
-rw-r--r--app/views/trigger/voicemail.html.erb4
3 files changed, 5 insertions, 4 deletions
diff --git a/app/views/layouts/_navbar.html.haml b/app/views/layouts/_navbar.html.haml
index 8004c0e..fe5f48f 100644
--- a/app/views/layouts/_navbar.html.haml
+++ b/app/views/layouts/_navbar.html.haml
@@ -22,7 +22,11 @@
=t("call_histories.index.page_title")
%li
%a{:href => sip_account_voicemail_messages_path(current_user.sip_accounts.first)}
+ %i.icon-star.icon-white{:id => 'new_voicemail_indicator'}
=t("voicemail_messages.index.page_title")
+ :javascript
+ $("#new_voicemail_indicator").hide()
+ = subscribe_to "/users/#{current_user.id}/messages/new"
- if current_user
%ul.nav.pull-right
diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml
index eab6096..027f837 100644
--- a/app/views/layouts/application.html.haml
+++ b/app/views/layouts/application.html.haml
@@ -36,4 +36,5 @@
.span12
%hr/
= render 'layouts/footer'
+
/ /container
diff --git a/app/views/trigger/voicemail.html.erb b/app/views/trigger/voicemail.html.erb
deleted file mode 100644
index 9bafe17..0000000
--- a/app/views/trigger/voicemail.html.erb
+++ /dev/null
@@ -1,4 +0,0 @@
-<h1>Trigger#voicemail</h1>
-<p>Find me in app/views/trigger/voicemail.html.erb</p>
-
-<%= debug(params) %>