Merge pull request #2156 from betagouv/fix-dossiers-link

dossiers: move link back to the old UI
This commit is contained in:
LeSim 2018-06-27 11:58:40 +02:00 committed by GitHub
commit acfb7504cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -36,7 +36,7 @@
- if nav_bar_profile == :user
%ul.header-tabs
%li
= active_link_to "Dossiers", dossiers_path, active: :inclusive, class: 'tab-link'
= active_link_to "Dossiers", users_dossiers_path, active: :inclusive, class: 'tab-link'
%ul.header-right-content
- if nav_bar_profile == :gestionnaire && gestionnaire_signed_in?

View file

@ -15,7 +15,7 @@ describe 'layouts/_new_header.html.haml', type: :view do
let(:profile) { :user }
it { is_expected.to have_css("a.header-logo[href=\"#{users_dossiers_path}\"]") }
it { is_expected.to have_link("Dossiers", href: dossiers_path) }
it { is_expected.to have_link("Dossiers", href: users_dossiers_path) }
end
context 'when rendering for gestionnaire' do