remove Organization suffix from navbar-brand in navigation

This commit is contained in:
shlok007 2017-08-09 23:34:58 +05:30 committed by Shlok Srivastava
parent 28b55a9d72
commit 83abc9f71f
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@
- if conference.nil? || conference.new_record?
= link_to (ENV['OSEM_NAME'] || 'OSEM'), root_path, class: 'navbar-brand', title: 'Open Source Event Manager'
- else
= link_to "#{conference.organization.name} Organization", organizations_path, class: 'navbar-brand', title: 'Open Source Event Manager'
= link_to conference.organization.name, organizations_path, class: 'navbar-brand', title: 'Open Source Event Manager'
.collapse.navbar-collapse
- if content_for :splash_nav
%ul.nav.navbar-nav#splash-nav

View file

@ -77,7 +77,7 @@ feature Conference do
sign_in user
visit admin_conference_path(conference.short_title)
expect(find('.navbar-brand').text).to eq "#{conference.organization.name} Organization"
expect(find('.navbar-brand').text).to eq(conference.organization.name)
end
it_behaves_like 'add and update conference'