Sha256: 5e4d4adba3d9757d6cc71978628dbcd4c5652cabb07b39e063205d232a53695e
Contents?: true
Size: 1.71 KB
Versions: 4
Compression:
Stored size: 1.71 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/undergrad" li = link_to "Graduate", "https://www.biola.edu/grad" li = link_to "Online", "https://www.biola.edu/online" li = link_to "Athletics", "http://athletics.biola.edu" li = link_to "News & Events", "https://now.biola.edu/" li = link_to "Directory", "https://www.biola.edu/directory" - if enable_auth && !current_user .login-link = link_to 'Login', params.merge(login: 'true'), rel: :nofollow span.hidden-xs< = t('frontend_toolkit.header_login_phrase')
Version data entries
4 entries across 4 versions & 1 rubygems