summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-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