diff options
author | Peter Kozak <spag@golwen.net> | 2013-04-19 10:20:33 +0200 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-04-19 10:20:33 +0200 |
commit | 4c4deedd65d8c459795ed83d282022a07f38757e (patch) | |
tree | 54455f6af1db9b6690c0b899f2525728a0aa29b6 /app | |
parent | 5e728545915b87683087d7814bf08034b8d44a33 (diff) |
link to voicemail messages of first account found
Diffstat (limited to 'app')
-rw-r--r-- | app/views/layouts/_navbar.html.haml | 7 |
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 |