2017-03-11 13:25:39 +05:30
|
|
|
.navbar.navbar-default.navbar-fixed-top.nav-osem{role: 'navigation'}
|
2014-03-17 16:36:32 +01:00
|
|
|
.container
|
|
|
|
|
.navbar-header
|
2017-10-26 12:07:16 -07:00
|
|
|
|
|
|
|
|
- if controller.class.name.split("::").first=="Admin"
|
2017-08-20 16:27:35 +05:30
|
|
|
%button{ "data-target"=>"#side-nav", "data-toggle"=>"collapse", class: 'navbar-toggle side-nav-btn', type: 'button' }
|
|
|
|
|
%span.sr-only Toggle navigation
|
|
|
|
|
%span.icon-bar
|
|
|
|
|
%span.icon-bar
|
|
|
|
|
%span.icon-bar
|
|
|
|
|
%button{"data-target"=>"#main-nav", "data-toggle"=>"collapse", class: 'navbar-toggle', type: 'button'}
|
2014-03-17 16:36:32 +01:00
|
|
|
%span.sr-only
|
|
|
|
|
Toggle navigation
|
|
|
|
|
%span.icon-bar
|
|
|
|
|
%span.icon-bar
|
|
|
|
|
%span.icon-bar
|
2017-11-07 13:51:10 -08:00
|
|
|
= nav_root_link_for conference
|
|
|
|
|
|
2017-08-20 16:27:35 +05:30
|
|
|
.collapse.navbar-collapse#main-nav
|
2014-05-29 10:30:35 +05:30
|
|
|
- if content_for :splash_nav
|
2014-06-26 15:13:23 +05:30
|
|
|
%ul.nav.navbar-nav#splash-nav
|
2014-05-29 10:30:35 +05:30
|
|
|
= content_for :splash_nav
|
2014-05-22 18:19:07 +02:00
|
|
|
-if user_signed_in?
|
2015-07-17 18:55:47 +02:00
|
|
|
.btn-group.pull-right
|
|
|
|
|
%ul.nav.navbar-nav.navbar-right
|
|
|
|
|
%li.dropdown
|
2017-03-11 13:25:39 +05:30
|
|
|
%a.dropdown-toggle{"data-toggle" => "dropdown", href: '#', id: "current-user-detail"}
|
2018-09-24 16:25:54 -07:00
|
|
|
= current_user.name
|
2017-03-11 13:25:39 +05:30
|
|
|
= image_tag(current_user.gravatar_url(size: '18'), title: "Yo #{current_user.name}!", alt: '')
|
2015-07-17 18:55:47 +02:00
|
|
|
%b.caret
|
|
|
|
|
%ul.dropdown-menu
|
|
|
|
|
= render 'layouts/user_menu'
|
2014-03-17 16:36:32 +01:00
|
|
|
- else
|
|
|
|
|
%ul.nav.navbar-nav.navbar-right
|
2022-05-06 14:27:15 +02:00
|
|
|
- if ENV.fetch('OSEM_ICHAIN_ENABLED', nil) == 'true'
|
2017-03-11 13:25:39 +05:30
|
|
|
%li{class: "#{active_nav_li(new_ichain_registration_path('user'))}"}
|
2014-11-04 17:42:47 +01:00
|
|
|
= link_to(new_ichain_registration_path('user')) do
|
2022-05-18 06:31:12 +02:00
|
|
|
%span.fa-solid.fa-heart
|
2014-03-17 16:36:32 +01:00
|
|
|
Sign Up
|
|
|
|
|
- else
|
2017-03-11 13:25:39 +05:30
|
|
|
%li{class: "#{active_nav_li(new_registration_path('user'))}"}
|
2014-03-17 16:36:32 +01:00
|
|
|
= link_to(new_registration_path('user')) do
|
2022-05-18 06:31:12 +02:00
|
|
|
%span.fa-solid.fa-heart
|
2014-05-28 13:44:37 -07:00
|
|
|
Sign Up
|
2014-07-23 14:55:06 +02:00
|
|
|
%li.dropdown.visible-desktop
|
2017-03-11 13:25:39 +05:30
|
|
|
%a.dropdown-toggle{"data-toggle" => "dropdown", href: '#'}
|
2022-05-18 06:31:12 +02:00
|
|
|
%span.fa-solid.fa-user
|
2014-07-23 14:55:06 +02:00
|
|
|
Sign In
|
|
|
|
|
%span.caret
|
2017-02-09 16:13:55 +05:30
|
|
|
.dropdown-menu
|
2022-05-06 14:27:15 +02:00
|
|
|
- if ENV.fetch('OSEM_ICHAIN_ENABLED', nil) == 'true'
|
2014-11-06 12:51:39 +01:00
|
|
|
= form_tag User.ichain_login_url do
|
2017-07-14 15:21:05 +02:00
|
|
|
= text_field_tag 'username', nil, id: 'user_ichain_email_dd', class: 'form-control', placeholder: 'Username'
|
|
|
|
|
= password_field_tag 'password', nil, id: 'user_ichain_password_dd', class: 'form-control', placeholder: 'Password'
|
2014-11-04 17:42:47 +01:00
|
|
|
%button.btn.btn-success.btn-block Sign in
|
|
|
|
|
- else
|
|
|
|
|
= form_tag new_user_session_path do
|
2017-07-14 15:21:05 +02:00
|
|
|
= text_field_tag 'user[login]', nil, id: 'user_login_dd', class: 'form-control', placeholder: 'Username / E-Mail'
|
|
|
|
|
= password_field_tag 'user[password]', nil, id: 'user_password_dd', class: 'form-control', placeholder: 'Password'
|
2014-11-04 17:42:47 +01:00
|
|
|
%p.text-right
|
|
|
|
|
%small
|
2017-02-07 19:36:13 +03:00
|
|
|
%label{for: 'user_remember_me'} Remember me
|
2014-11-04 17:42:47 +01:00
|
|
|
= check_box_tag 'user[remember_me]'
|
|
|
|
|
%button.btn.btn-success.btn-block Sign in
|
|
|
|
|
- unless omniauth_configured.empty?
|
|
|
|
|
.divider
|
|
|
|
|
%h6.text-center
|
|
|
|
|
or
|
2015-04-18 21:44:40 +03:00
|
|
|
= render 'devise/shared/openid_links'
|
2014-11-04 17:42:47 +01:00
|
|
|
%p.text-right
|
2015-04-18 21:44:40 +03:00
|
|
|
%br
|
|
|
|
|
%a.small.btn.btn-xs.btn-default{"data-toggle" => "collapse", "data-target" => "#navbar-devise-help"}
|
2014-11-04 17:42:47 +01:00
|
|
|
Need Help?
|
|
|
|
|
#navbar-devise-help.collapse
|
2015-04-18 21:44:40 +03:00
|
|
|
= render 'devise/shared/links'
|