summaryrefslogtreecommitdiff
path: root/app/views/layouts/_navbar.html.haml
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-04-19 10:20:33 +0200
committerPeter Kozak <spag@golwen.net>2013-04-19 10:20:33 +0200
commit4c4deedd65d8c459795ed83d282022a07f38757e (patch)
tree54455f6af1db9b6690c0b899f2525728a0aa29b6 /app/views/layouts/_navbar.html.haml
parent5e728545915b87683087d7814bf08034b8d44a33 (diff)
link to voicemail messages of first account found
Diffstat (limited to 'app/views/layouts/_navbar.html.haml')
-rw-r--r--app/views/layouts/_navbar.html.haml7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/views/layouts/_navbar.html.haml b/app/views/layouts/_navbar.html.haml
index 3e1da1c..f4914b2 100644
--- a/app/views/layouts/_navbar.html.haml
+++ b/app/views/layouts/_navbar.html.haml
@@ -20,9 +20,10 @@
%li
%a{:href => sip_account_call_histories_path(current_user.sip_accounts.first)}
=t("call_histories.index.page_title")
- %li
- %a{:href => sip_account_voicemail_messages_path(current_user.sip_accounts.first)}
- =t("voicemail_messages.index.page_title")
+ - if current_user.voicemail_accounts.first
+ %li
+ %a{:href => voicemail_account_voicemail_messages_path(current_user.voicemail_accounts.first)}
+ =t("voicemail_messages.index.page_title")
- if current_user
%ul.nav.pull-right