doctype html
html
head
meta content=("text/html; charset=UTF-8") http-equiv="Content-Type" /
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'
nav.navbar.navbar-inverse.navbar-fixed-top
.container-fluid
.navbar-header
= 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"
#page-content-wrapper
.row
.col-sm-12.main-container
div
.center.mt10 id=("flash-container")
= bootstrap_flash
.main-container
= yield
nav.navbar.navbar-inverse.navbar-fixed-top
.container-fluid
#navbar.navbar-collapse.collapse
ul.nav.navbar-nav.navbar-right
li
.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 ...')
.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'
span.pl10
= current_user.try(:full_name)
span.caret
ul.dropdown-menu
strong.ml10 Switch Company
- companies = current_user.company_master_user(@company) ? current_user.companies : current_user.companies.verified
- companies.each do |company|
- if company.is_approved_user?(current_user)
li = link_to company.name, company_redirect_url(company), class: "#{'active-company' if @company and @company.subdomain == company.subdomain}"
- else
li = link_to '#', disabled: true do
= company.name
|
span.left.fs12
| (Access Requested)
li = link_to 'Create Company', companies_path, class: ''
li = link_to 'Join Company', companies_path, class: ''
hr.m5
li= link_to "Account Settings", users_settings_path, class: ""
- if @company and @company.persisted?
li= link_to "Company Profile", company_profile_path, class: ""
li = link_to 'Need Help?', '#', id: 'popup-zendesk-widget'
li = link_to "Log Out", destroy_user_session_path, method: :delete, class: ""
li
a href="#" = image_tag "list-icon.png", width:"31", height:"35"