doctype html
html
head
title = "#{Configurations::General.application_name}"
meta name="viewport" content="width=device-width, initial-scale=0.6"
= display_meta_tags
= favicon_link_tag 'favicon.ico'
= csrf_meta_tags
= stylesheet_link_tag "application", :media => 'all'
/![if lt IE 9]
= javascript_include_tag "lib/html5shiv"
= javascript_include_tag 'application', data: {turbolinks_track: true, turbolinks_eval: false}
body id="#{controller.controller_name}_#{controller.action_name}" data-no-transition-cache=true
.col-sm-12.no-padding.mb35
= render "layouts/header"
- if logged_in? and current_user.is_registration_completed?
.ichatnew.visible-md.visible-lg
#chat-sidebar.col-md-12.no-padding
.syrch-chat
= render 'chat/members', parent: '#chat-sidebar'
.main-scroll-area
- if logged_in? and current_user.is_registration_completed?
#flash-container.lspace-mini
= bootstrap_flash
- else
#flash-container.lspace-off
= bootstrap_flash
.col-sm-12.no-padding.mb40 class="#{'col-md-12' if logged_in?}"
- if logged_in?
- if params[:controller] == 'profile' and params[:action] == 'edit' and params['id'] != 'select-type'
.mt5 class=(logged_in? and current_user.is_registration_completed? ? 'lspace-set' : 'lspace-off')
= render partial: "profile/breadcrumb"
.clearfix
- unless next_profile_question == 'complete'
- unless (params[:controller] == 'profile' or params[:controller] == 'settings' or params[:controller] == 'notifications' or params[:controller] == 'conversations' or params[:controller] == 'site' or (params[:controller] == 'users' and params[:action] == 'index'))
#profile_questions
= render template: "profile_questions/edit", locals: {partial_name: next_profile_question}
.clearfix
- if current_page?(url_for(:controller => '/books', :action => 'add_user_info'))
= render "page_headers/brief_bio"
- elsif current_page?(url_for(:controller => '/books', :action => 'new'))
= render "page_headers/new_book"
- elsif current_page?(url_for(:controller => '/site', :action => 'refine_feed'))
= render "page_headers/refine_feed"
- elsif current_page?(url_for(:controller => '/users', :action => 'index'))
= render "page_headers/filter"
- elsif current_page?(url_for(:controller => '/profile', :action => 'edit', :id => 'skills'))
= render "page_headers/skill_head"
- elsif current_page?(url_for(:controller => '/profile', :action => 'edit', :id => 'skills-confirmation'))
= render "page_headers/skill_confirm"
/ - elsif current_page?(url_for(:controller => '/profile', :action => 'edit', :id => 'availability'))
/ = render "page_headers/availability_edit"
- elsif current_page?(url_for(:controller => '/profile', :action => 'edit', :id => 'payment'))
= render "page_headers/payment_edit"
- elsif current_page?(url_for(:controller => '/profile', :action => 'edit', :id => 'my-rate'))
= render "page_headers/myrate_edit"
- elsif current_page?(url_for(:controller => '/profile', :action => 'edit', :id => 'courses-studying'))
= render "page_headers/courses_studying"
- elsif current_page?(url_for(:controller => '/profile', :action => 'edit', :id => 'courses-tutoring'))
= render "page_headers/courses_tutoring"
- elsif current_page?(url_for(:controller => '/dashboard', :action => 'personal_calendar'))
= render "page_headers/personal_calendar"
- elsif current_page?(url_for(:controller => '/questions', :action => 'index'))
= render "page_headers/questions"
- elsif current_page?(url_for(:controller => '/notifications', :action => 'index'))
= render "page_headers/notifications"
- elsif (current_page?(url_for(:controller => '/conversations', :action => 'show')) rescue false)
= render "page_headers/messages"
- elsif current_page?(url_for(:controller => '/profile', :action => 'edit', :id => 'organizations'))
= render "page_headers/organizations"
- elsif current_page?(url_for(:controller => '/profile', :action => 'edit', :id => 'interests'))
= render "page_headers/interests"
- elsif current_page?(url_for(:controller => '/profile', :action => 'edit', :id => 'skills_studying'))
= render "page_headers/skills_studying"
.invisblock
.clearfix
- if logged_in?
= render "page_headers/temp01"
.clearfix
- if logged_in? and current_user.is_registration_completed?
#profile_steps_content.lspace-set
.pt5
= yield
- else
#profile_steps_content.lspace-off
.pt5
= yield
.clearfix
= render "layouts/footer"
- unless @video_sessions.blank?
#video-session-links
#videoSession_icon.pull-left
i.fa.fa-video-camera
.pull-left
ul
- @video_sessions.each do |session|
li
= link_to "Join Video Session With #{session.other_user(current_user).name}", video_session_path(session.video_session_room), data: {toggle: :modal, target: '#remote-modal'}
#remote-modal.modal.fade.row role="dialog" aria-labelledby='remoteModal' data-backdrop='static' tabindex='-1'
.modal-dialog
.modal-content.col-xs-12.no-padding
= yield :content_for_remote_modal
- if ActsAsTenant.current_tenant.pusher_configuration.try(:enabled) && logged_in?
.livechat
#chat-fixed
= render 'chat/pusher_chat', parent: '#chat-fixed'
= include_gon
= yield :include_js
= analytics_codes