Sha256: 06005320c2462b60941d2dfed32f27da3bec8d758b9ee80b89897111650d2c1e

Contents?: true

Size: 1.77 KB

Versions: 3

Compression:

Stored size: 1.77 KB

Contents

/ If you want this header to handle authentication, pass in `enable_auth: true`
/  when rendering the partial. And make sure that current_user is defined.
- enable_auth ||= false

#wrapperBiolaHeader
  #biolaHeader
    - if enable_auth && current_user
      #profile_link.dropdown.custom-dropdown
        a.dropdown-toggle href="#" aria-hidden="true" data-toggle="dropdown"
          - if current_user.try(:photo_url).present?
            #profile-img style="background-image: url('#{strip_scheme(current_user.photo_url)}')"
          - else
            span.fa-stack.fa-lg
              i.fa.fa-circle.fa-stack-2x
              i.fa.fa-user.fa-stack-1x.fa-inverse
        - if content_for?(:account_list)
          ul.dropdown-menu.pull-right role="menu" aria-labelledby="dLabel"
            = yield(:account_list)


    .overflow-container
      h2.biola-header-branding
        a.biola-header-logo href="https://www.biola.edu"
          = image_tag 'logo-biola-mark-white.png'
          | Biola University
      p.biola-header-more aria-hidden="true"
        button +
      ul.biola-header-nav
        li = link_to "About", "https://www.biola.edu/about"
        li = link_to "Undergraduate", "https://www.biola.edu/academics/undergrad-education"
        li = link_to "Graduate", "https://www.biola.edu/academics/grad-education"
        li = link_to "Online", "https://www.biola.edu/academics/online-education"
        li = link_to "Athletics", "http://athletics.biola.edu"
        li = link_to "News & Events", "http://now.biola.edu/"
        li = link_to "Directory", "https://www.biola.edu/directory"

      - if enable_auth && !current_user
        .login-link
          = link_to 'Log In', params.merge(login: 'true'), rel: :nofollow
          span.hidden-xs< = t('frontend_toolkit.header_login_phrase')

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
biola_frontend_toolkit-0.6.4 app/views/frontend_toolkit/_biola_header.html.slim
biola_frontend_toolkit-0.6.2 app/views/frontend_toolkit/_biola_header.html.slim
biola_frontend_toolkit-0.6.1 app/views/frontend_toolkit/_biola_header.html.slim