.container-fluid .row.header-db .col-xs-2.col-sm-4.col-md-2.no-padding .site-logo.txt-logo-home.hidden-xs - if logged_in? = link_to question_task_calendar_path, data:{toggle: :tooltip, placement:'bottom',title:'Dashboard'} do = image_tag("logo-syrch-new-s.png", width: '90', alt: Configurations::General.application_name) - else = link_to '#' do = image_tag("logo-syrch-new-s.png", width: '90', alt: Configurations::General.application_name) span - unless ActsAsTenant.current_tenant.prelaunch? | Beta - else | Prelaunch .small-logo.visible-xs.hidden-sm.hidden-md.hidden-lg - if logged_in? = link_to question_task_calendar_path, data:{toggle: :tooltip, placement:'bottom',title:'Dashboard'} do = image_tag("logo.png", width: '40', alt: Configurations::General.application_name) - else = link_to '#' do = image_tag("logo.png", width: '40', alt: Configurations::General.application_name) .hidden-xs.hidden-sm.col-md-4.search-box - if logged_in? = form_tag users_path, method: :get, turboboost: true, id: 'search-form' do .txt-searchby = text_field_tag :query, params[Subject.model_name.human.downcase], placeholder: "Search by #{Subject.model_name.human}, #{Course.model_name.human} #{Tutor.model_name.human} ", id: 'term' button.btn-search i.fa.fa-search .col-xs-4.col-sm-4.col-md-3.icon-group1.site-indicators.not-visible - if logged_in? - if ActsAsTenant.current_tenant.prelaunch? .pull-left = link_to sylla_bye_path, class: :'green' do | Upload Sylla-Bye! .col-xs-8.col-sm-8.col-md-6.pull-right.no-padding .dd-signout - if logged_in? .site-indicators .pull-left.mt-2.hidden-xs = link_to profile_path(current_user) = image_tag current_user.image.url(:thumb), class: 'profile_img', height: "30", width: "30" .dropdown.pull-left.mt1 - if ActsAsTenant.current_tenant.prelaunch? .uname = link_to profile_path(current_user) , data:{toggle: :tooltip, placement:'bottom',title:'Profile'} = current_user.name - else .uname = link_to dashboard_path , data:{toggle: :tooltip, placement:'bottom',title:'Profile'} = current_user.name .pull-left.mt3 = link_to question_task_calendar_path, data:{toggle: :tooltip, placement:'bottom',title:'Dashboard'} do | Home .pull-left.dd-noti .pull-left / Notifications Section Start .notifications.dropdown data-toggle="tooltip" data-placement="bottom" title="Notifications" = link_to notifications_path, data: {toggle: :dropdown, target: '#'}, id: 'dNotification' do i.fa.fa-bell-o.dullgrey class= "#{'active' unless unread_notifications_count.zero?}" alt="Notifications" - unless unread_notifications_count.zero? .indication = unread_notifications_count ul.infinitescroll.dropdown-menu.down-arrow aria-labelledby="dNotification" role="menu" = image_tag('loading.gif', alt: 'Loading ...') / Message Section Start .pull-left .messages.dropdown data-toggle="tooltip" data-placement="bottom" title="Messages" = link_to conversations_path(type: 'dropdown'), data: {toggle: :dropdown, target: '#'}, id: 'dMessage' do i.fa.fa-envelope-o.dullgrey class= "#{'active' unless unread_message_count.zero?}" alt="Messages" - unless unread_message_count.zero? .indication = unread_message_count ul.infinitescroll.dropdown-menu.down-arrow aria-labelledby="dMessage" role="menu" = image_tag('loading.gif', alt: 'Loading ...') - if logged_in? .pull-left.ico-on.account-balance.hidden-xs - unless ActsAsTenant.current_tenant.prelaunch? = link_to new_withdrawable_path, data: {toggle: 'modal', target: '#remote-modal'} do i.fa.fa-dollar data-toggle="tooltip" data-placement='bottom' data-title='Balance' span.withdraw-amt = current_user.total_balance - else i.fa.fa-dollar data-toggle="tooltip" data-placement='bottom' data-title='Balance' span.withdraw-amt = current_user.total_balance a.pull-left.arrdown.pl10 data-toggle="dropdown" href="#" i.fa.fa-angle-down ul.dropdown-menu.down-arrow-mini li = link_to '#', id: 'help-snap', data: {email: current_user.email} do i.fa.fa-info.mr5 span.fs10 | Help li = link_to invoices_path, data:{toggle: :tooltip, placement:'bottom',title:'Payments'} i.fa.fa-credit-card span.fs10 | Payments li = link_to new_invite_path, data: {toggle: 'modal', target: '#remote-modal'} do i.fa.fa-user.mr5 span.fs10 | Refer A Friend - if current_user.student? and !ActsAsTenant.current_tenant.try(:prelaunch?) li = link_to upgrade_users_path(upgrade_type: 'tutor'),method: :patch, remote: true, data: {confirm: 'Please confirm your upgrade to Tutor and then complete your entire profile.', title: "Confirm your Action", commit: 'Upgrade'} do i.fa.fa-star.mr5 span.fs10 | Upgrade to Expert li = link_to settings_path i.fa.fa-cog.mr5 span.fs10 |Settings li = link_to logout_path, method: :delete do i.fa.fa-sign-out.mr5 span.fs10 | Logout li.hide = link_to buy_book_path i.fa.fa-credit-card.mr5 span.fs10 | Buy Books - elsif !ActsAsTenant.current_tenant.prelaunch? .iright = link_to login_path, class:'bx-login', data:{toggle: :modal, target:'#remote-modal'} do i.fa.fa-lock span.fs10.pl5 | Login = link_to signup_path, class:'bx-regis' do i.fa.fa-user span.fs10.pl5 | Sign Up