Sha256: 24a9a95b37576ed3fa77fae6dac1f8a5bb24a106716a6c44d2ae2b85c3eb105c

Contents?: true

Size: 778 Bytes

Versions: 1

Compression:

Stored size: 778 Bytes

Contents

%div{ class:"sidebar #{controller.controller_name}" }
  %span#sidebar-toggle
    %i.fa.fa-navicon
  .pusher
    - if Rails.configuration.hackathon['logo_asset']
      #logo-cta
        = link_to root_path do
          = image_tag Rails.configuration.hackathon['logo_asset'], id: "logo", alt: "BrickHack", title: "BrickHack"
    - if user_signed_in?
      %div
        - if current_user.admin?
          = btn_link_to "Manage", manage_root_path
        - else
          = btn_link_to "Review", new_questionnaires_path
    - else
      %div
        = btn_link_to "Sign In", new_user_session_path
      %div
        = btn_link_to "Sign Up", new_user_registration_path
    - if user_signed_in?
      %div
        = btn_link_to "Sign Out", destroy_user_session_path, method: :delete

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hackathon_manager-0.2.0 app/views/layouts/_sidebar.html.haml