- unless params[:type].present? || params[:user_id].present? = render 'dashboard/show/home_page_tab', active_tab: {calendar: :active} .row .col-xs-12.no-padding - if params[:type].present? /= render 'dashboard/show/cal_pay_feeds_tasks_tab', active_tab: {calendar: :active} .tab-content.pt20 #appointments.tab-pane.fade.in.active .appointment-calendar .col-xs-12.col-sm-12.col-lg-12.calendarScrollFix.relative data-margin-top=54 data-z-index=900 ul.nav.nav-tabs.no-border.custdb-tab role="tablist" li.active a class="ico-pro" data-toggle="tab" href="#calendar-view" role="tab" Calendar View - unless params[:user_id].present? li a class="ico-pro" data-toggle="tab" href="#list-view" role="tab" List View .clearfix .tab-content.calendar-wrapper #calendar-view.pad8.tab-pane.fade.plr15.pb15.in.active h4.dragtime-text Drag a time on the calendar to book a Representative session - if @other_user.present? = render 'tutoring_sessions/calendar_view', tutor: @other_user - else #calendar-edit-availability.hide = render 'settings/forms/tutor/availability', tutor: current_user #calendar-availability - if current_user.tutor? .pull-right.pr15 = link_to 'Edit Availability', '#', data:{toggle:'class:hide', target:'#calendar-edit-availability,#calendar-availability'} = render 'tutoring_sessions/calendar_view', tutor: @tutor #list-view.tab-pane.fade - if @other_user.present? = link_to select_tutor_to_book_session_tutoring_sessions_path(other_user: @other_user), data: {toggle: 'modal', target: '#remote-modal'}, class: 'btn btn-primary dragtime-text white no-textShadow' do | Book a Session = render 'tutoring_sessions/list_view', tutor: @other_user, tutoring_sessions: @tutoring_sessions - else = link_to select_tutor_to_book_session_tutoring_sessions_path, data: {toggle: 'modal', target: '#remote-modal'}, class: 'btn btn-primary dragtime-text white no-textShadow' do | Book a Session = render 'tutoring_sessions/list_view', tutor: @tutor, tutoring_sessions: @tutoring_sessions .clearfix .col-xs-12.col-sm-12.col-lg-2.center.pl0.hide = render 'dashboard/show/appointments_sidebar'