doctype html
html
head
meta content=("text/html; charset=UTF-8") http-equiv="Content-Type" /
meta name="turbolinks-cache-control" content="no-cache" /
= favicon_link_tag company_logo_url
- if Rails.application.secrets.company_default_images.present? and Rails.application.secrets.company_default_images.to_sym == :boss
title BOSS App
- else
title ServiceMaintenance
= csrf_meta_tags
= Gon::Base.render_data
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload'
= javascript_include_tag "https://maps.googleapis.com/maps/api/js?key=#{Rails.application.secrets.google_api_key}&v=3&libraries=places,drawing"
= javascript_include_tag 'application', 'data-turbolinks-track': 'reload'
body.gray-bg class="#{controller_name}-#{action_name}"
#wrapper.container-fluid data-turbolinks-permanent-class='toggled'
- unless current_user
nav.navbar.navbar-inverse.navbar-fixed-top
.container-fluid
.navbar-header
- if @company and @company.persisted?
= link_to root_url(subdomain: @company.subdomain), class: "navbar-brand" do
- if company_logo_url(@company, :small)
= image_tag company_logo_url(@company, :small)
- else
= link_to "#{Rails.application.secrets.domain_scheme}://#{Rails.application.secrets.domain_name}", class: "navbar-brand" do
= image_tag company_logo_url
- unless controller_name == 'sessions' and action_name == 'new'
ul.nav.navbar-nav.pull-right.menu-ul
li= link_to "Log In", new_user_session_path, class: "btn-login"
li= link_to 'Sign Up', new_user_registration_path, class: 'btn-login'
#page-content-wrapper
div
.center.mt10 id=("flash-container")
= bootstrap_flash
.main-container
= yield
- else
nav.navbar.navbar-inverse.navbar-fixed-top
.container-fluid
- if Company.current and Company.current.is_approved_user?(current_user)
.navbar-header
button.navbar-toggle.collapsed aria-controls="navbar" aria-expanded="false" data-target="#navbar" data-toggle="collapse" type="button"
span.sr-only Toggle navigation
span.icon-bar
span.icon-bar
span.icon-bar
a.navbar-brand.open-nav.no-action href="#"
span.glyphicon.glyphicon-menu-hamburger aria-hidden="true"
#navbar.navbar-collapse.collapse
ul.nav.navbar-nav.navbar-right
li.pr7
.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.fa-2x.grey 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 ...')
/#
li.pl10
.notifications.dropdown data-toggle="tooltip" data-placement="bottom" title="Notifications"
= link_to notification_app.notifications_path, data: {toggle: :dropdown, target: '#'}, id: 'dNotification' do
i.fa.fa-bell.fa-2x.grey 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 ...')
- if @company and !@company.vendor?
li.pl10
= link_to new_company_service_request_path do
= image_tag 'service-request-top-navigation-icon.png', height: '30'
.dropdown.pull-right.mt10
li.dropdown-toggle.guest-name data-toggle="dropdown" type="button"
span.pl10
- if current_user.image.present?
= image_tag current_user.image_url(:thumb), size: '38', class: 'img-circle'
- else
= image_tag 'default_image.png', class: 'img-circle small-img'
span.pl10
= current_user.try(:full_name)
span.caret
ul.dropdown-menu.with-max-ht500
- if Company.current and Company.current.is_approved_user?(current_user)
li= link_to "Company Profile", company_profile_path, class: ""
li= link_to 'Payment Account', edit_company_wizard_profile_path(step: :payment_accounts)
li = link_to 'Company Settings', company_settings_work_orders_path, class: ''
hr.m5
strong.ml10 Switch Company
- current_user.company_users.includes(company: [:headquarter_address, :contacts]).each do |cu|
- if cu.approved_at?
li = link_to "#{cu.company.name}
#{cu.company.subtext}".html_safe, company_redirect_url(cu.company), class: "#{'active-company' if @company and @company.id == cu.company.id}"
- else
li = link_to '#', disabled: true, class: 'company-name-pannel' do
= " #{cu.company.name} ".html_safe
|
span.left.fs12
| (Access Requested)
= "
#{cu.company.subtext}".html_safe
hr.m0
li = link_to 'Create Company', new_company_url, class: ''
li = link_to 'Join Company', companies_url, class: ''
hr.m5
li= link_to "Account Settings", users_settings_path, class: ""
li= link_to 'Need Help?', '#', id: 'popup-zendesk-widget'
li= link_to 'Terms', page_path('privacy_policy')
li= link_to "Log Out", destroy_user_session_path, method: :delete, class: ""
#page-content-wrapper.container-fluid
#flash-container
= bootstrap_flash
.clearfix
.layout-wrapper.clearfix.position-relative
= yield
= render 'layouts/sidebar'
#general-modal
#chat-fixed data-turbolinks-permanent=true
= render 'chat/pusher_chat', parent: '#chat-fixed'
#messageModalpopUp.modal.fade role="dialog"
.modal-dialog
.modal-content
.modal-header
h4.modal-title Coming Soon
.modal-body
p Tradesmen message function has not been enabled.
.modal-footer
button.btn.btn-primary.btn-ok data-dismiss="modal" type="button" OK