From 4c4deedd65d8c459795ed83d282022a07f38757e Mon Sep 17 00:00:00 2001 From: Peter Kozak Date: Fri, 19 Apr 2013 10:20:33 +0200 Subject: link to voicemail messages of first account found --- app/views/layouts/_navbar.html.haml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'app/views/layouts') 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 -- cgit v1.2.3 From 6d53887d83c00b187c297ad5dd74ef8fd19ff87c Mon Sep 17 00:00:00 2001 From: Peter Kozak Date: Wed, 22 May 2013 10:04:45 +0200 Subject: i18n in navbar --- app/views/layouts/_navbar.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/views/layouts') diff --git a/app/views/layouts/_navbar.html.haml b/app/views/layouts/_navbar.html.haml index f4914b2..d83660b 100644 --- a/app/views/layouts/_navbar.html.haml +++ b/app/views/layouts/_navbar.html.haml @@ -61,5 +61,5 @@ - if GuiFunction.display?('search_field_in_top_navigation_bar', current_user) = form_tag search_path, :method => :post, :class => 'navbar-search pull-right' do - %input.text{:placeholder => 'Suchen ...', :name => 'q', :class => 'search-query span2'} + %input.text{:placeholder => t('navigation.search_placeholder'), :name => 'q', :class => 'search-query span2'} -- cgit v1.2.3