display organization name in menu bar

This commit is contained in:
shlok007
2017-07-24 13:46:09 +05:30
committed by Shlok Srivastava
parent 540c982771
commit cdc08052b1
3 changed files with 4 additions and 5 deletions

View File

@@ -9,7 +9,6 @@
= semantic_form_for(@conference, url: admin_conference_path(@conference.short_title), html: {multipart: true}) do |f|
= f.input :title, hint: "The full title of the conference, e.g. 'openSUSE Conference 2014'"
= f.input :short_title, hint: "A short title, e.g. 'oSC14', to be used in URLs"
= f.input :organization, hint: 'The organization in which this conference belongs', input_html: { disabled: true }
= f.input :description, hint: markdown_hint('A description of the conference.'), input_html: { rows: 5, data: { provide: 'markdown-editable' } }
= f.input :color, hint: 'The color will be used eg for the dashboard.', input_html: {size: 6, type: 'color'}
= f.label 'Conference Logo'

View File

@@ -22,9 +22,6 @@
.col-md-8
%h1
= @conference.title
%h3
%i
= "( by #{@conference.organization.name} )"
%p.lead
- if @conference.venue
= "#{@conference.venue.city} / #{@conference.venue.country_name}"

View File

@@ -7,7 +7,10 @@
%span.icon-bar
%span.icon-bar
%span.icon-bar
= link_to (ENV['OSEM_NAME'] || 'OSEM'), root_path, class: 'navbar-brand', title: 'Open Source Event Manager'
- 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 (ENV['OSEM_NAME'] || "#{@conference.organization.name} Organization"), organizations_path, class: 'navbar-brand', title: 'Open Source Event Manager'
.collapse.navbar-collapse
- if content_for :splash_nav
%ul.nav.navbar-nav#splash-nav