Use organization name for title link if available, but link to /

This commit is contained in:
James Mason 2017-11-07 13:51:10 -08:00
parent e99287d18a
commit 1b8f864feb
No known key found for this signature in database
GPG key ID: 1B3951886C449023
4 changed files with 41 additions and 9 deletions

View file

@ -13,10 +13,8 @@
%span.icon-bar
%span.icon-bar
%span.icon-bar
- 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, organizations_path, class: 'navbar-brand', title: 'Open Source Event Manager'
= nav_root_link_for conference
.collapse.navbar-collapse#main-nav
- if content_for :splash_nav
%ul.nav.navbar-nav#splash-nav