%nav.navbar.navbar-inverse.navbar-static-top{role: "navigation", style: "margin-bottom: 0"}
  = link_to "西口", root_path, id: 'logo', class: 'navbar-brand'
  .navbar-header
    %button.navbar-toggle{ type: 'button', data: { toggle: 'collapse', target: '.navbar-collapse' } }
      %span.sr-only Navigation toggle
      - 3.times do
        %span.icon-bar

    -if user_signed_in?
      = render 'layouts/dropdown_logged_in'
    - else
      %ul.nav.top-links.pull-right
        %li= link_to "Sign up", new_user_registration_path
        %li= link_to "Log in", new_user_session_path
        %li= link_to "Contact", contact_path

:coffee
  jQuery ->
    if $('#side-menu').length == 0
      $('button.navbar-toggle').remove()

%nav.navbar.navbar-inverse.navbar-static-top{role: "navigation", style: "margin-bottom: 0"}
  .container
    = link_to "西口", root_path, id: 'logo', class: 'navbar-brand'
    .navbar-header
      %button.navbar-toggle{ type: 'button', data: { toggle: 'collapse', target: '.navbar-collapse' } }
        %span.sr-only Navigation toggle
        - 3.times do
          %span.icon-bar

      -if user_signed_in?
        = render 'layouts/dropdown_logged_in'
      - else
        %ul.nav.top-links.pull-right
          %li= link_to "Sign up", new_user_registration_path
          %li= link_to "Log in", new_user_session_path
          %li= link_to "Contact", contact_path

:coffee
  jQuery ->
    if $('#side-menu').length == 0
      # For Static pages
      # Removes toggle button.
      $('button.navbar-toggle').remove()
    else
      # For SB-admin pages
      # Removes navbar container.
      $('.container').replaceWith($('.container').html())

Add script for positioning the navbar
Add script for positioning the navbar
