- if @conference.nil? || @conference.short_title.nil?
  = link_to "OSEM", root_path, :class => 'brand'
- else
  = link_to @conference.title, root_path, :class => 'brand'
%ul.nav
  - if !@conference.nil? && @conference.registration_open?
    - if current_page?(register_conference_path(@conference.short_title))
      %li.active
        = link_to "Registration", "#"
    - else
      %li
        = link_to "Registration", register_conference_path(@conference.short_title)
  - if !@conference.nil?
    - if current_page?(conference_proposal_index_path(@conference.short_title))
      %li.active
        = link_to "My Proposals", "#"
    - else
      %li
        = link_to "My Proposals", conference_proposal_index_path(@conference.short_title)
%ul.nav.pull-right
  - if user_signed_in?
    %li
      = link_to('Sign Out', destroy_user_session_path, :method=>'delete')
  - else
    %li
      = link_to('Sign In', new_user_session_path)
  - if user_signed_in?
    %li
      = link_to('Edit account', edit_user_registration_path)

- if @conference.nil? || @conference.short_title.nil?
  = link_to "OSEM", root_path, :class => 'brand'
- else
  = link_to @conference.title, root_path, :class => 'brand'
%ul.nav
  - if !@conference.nil? && @conference.registration_open?
    - if current_page?(register_conference_path(@conference.short_title))
      %li.active
        = link_to "Registration", "#"
    - else
      %li
        = link_to "Registration", register_conference_path(@conference.short_title)
  - if !@conference.nil?
    - if current_page?(conference_proposal_index_path(@conference.short_title))
      %li.active
        = link_to "My Proposals", "#"
    - else
      %li
        = link_to "My Proposals", conference_proposal_index_path(@conference.short_title)
%ul.nav.pull-right
  - if user_signed_in?
    - if has_role?(current_user, "admin") || has_role?(current_user, "organizer")
      %li
        = link_to "Admin Area", admin_conference_index_path
    %li
      = link_to('Sign Out', destroy_user_session_path, :method=>'delete')
  - else
    %li
      = link_to('Sign In', new_user_session_path)
  - if user_signed_in?
    %li
      = link_to('Edit account', edit_user_registration_path)

Add a link to the admin area if the logged-in user has the correct role
Add a link to the admin area if the logged-in user has the correct role
