|
|
@ -1,5 +1,6 @@ |
|
|
|
%nav |
|
|
|
#main-nav |
|
|
|
- begin |
|
|
|
= row(class: 'inner-nav') do |
|
|
|
- if logged_in? |
|
|
|
= columns(medium: 12, class: 'user-nav') do |
|
|
@ -14,10 +15,12 @@ |
|
|
|
= columns(medium: 8, class: 'nav') do |
|
|
|
= nav_link :about |
|
|
|
= nav_link :policy |
|
|
|
- case (@conference ? @conference.registration_status.to_sym : :closed) |
|
|
|
- case (@conference && @conference.registration_status ? @conference.registration_status.to_sym : :closed) |
|
|
|
- when :pre |
|
|
|
= nav_link register_path(@conference.slug), :pre_register, :register |
|
|
|
- when :open |
|
|
|
= nav_link register_path(@conference.slug), :register |
|
|
|
- else |
|
|
|
= render 'shared/donate_button', :email_address => (@conference.paypal_email_address || @conference.email_address || @conference.organizations.first.email_address) |
|
|
|
= render 'shared/donate_button', :email_address => (@conference.paypal_email_address || @conference.email_address || (@conference.organizations.present? && @conference.organizations.first.present? ? @conference.organizations.first.email_address : nil)) |
|
|
|
- rescue |
|
|
|
|