Godwin
9 years ago
3 changed files with 33 additions and 29 deletions
@ -1,23 +1,26 @@ |
|||||
%nav |
%nav |
||||
#main-nav |
#main-nav |
||||
= row(class: 'inner-nav') do |
- begin |
||||
- if logged_in? |
= row(class: 'inner-nav') do |
||||
= columns(medium: 12, class: 'user-nav') do |
- if logged_in? |
||||
.user-nav-bar |
= columns(medium: 12, class: 'user-nav') do |
||||
=link_to (_!current_user.name), register_step_path(@conference.slug, :contact_info), class: 'my-account' |
.user-nav-bar |
||||
=link_to (_'forms.actions.generic.Log_out'), logout_path |
=link_to (_!current_user.name), register_step_path(@conference.slug, :contact_info), class: 'my-account' |
||||
= columns(medium: 4, class: 'inner-nav') do |
=link_to (_'forms.actions.generic.Log_out'), logout_path |
||||
= link_to home_path, :class => 'logo' do |
= columns(medium: 4, class: 'inner-nav') do |
||||
= svg_sprite('icons', "bb-icon-logo", "Logo") |
= link_to home_path, :class => 'logo' do |
||||
= svg_sprite('icons', "bb-icon-logo-text", "Logo Text") |
= svg_sprite('icons', "bb-icon-logo", "Logo") |
||||
= off_screen _!'Bike Bike' |
= svg_sprite('icons', "bb-icon-logo-text", "Logo Text") |
||||
= columns(medium: 8, class: 'nav') do |
= off_screen _!'Bike Bike' |
||||
= nav_link :about |
= columns(medium: 8, class: 'nav') do |
||||
= nav_link :policy |
= nav_link :about |
||||
- case (@conference ? @conference.registration_status.to_sym : :closed) |
= nav_link :policy |
||||
- when :pre |
- case (@conference && @conference.registration_status ? @conference.registration_status.to_sym : :closed) |
||||
= nav_link register_path(@conference.slug), :pre_register, :register |
- when :pre |
||||
- when :open |
= nav_link register_path(@conference.slug), :pre_register, :register |
||||
= nav_link register_path(@conference.slug), :register |
- when :open |
||||
- else |
= nav_link register_path(@conference.slug), :register |
||||
= render 'shared/donate_button', :email_address => (@conference.paypal_email_address || @conference.email_address || @conference.organizations.first.email_address) |
- else |
||||
|
= 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 |
||||
|
|
Loading…
Reference in new issue