.container-fluid .row %nav.col-lg-2.d-none.d-lg-block.sidebar .sidebar-sticky %ul.nav.flex-column %a.navbar-brand.pl-3.mb-3{:href => "/"} = image_tag company_logo_path_defined, alt: "#{@current_company.name}_logo", height: '30' = render 'layouts/sidebar', dropdown: true - if @current_user_json_hash['company']['apps'].present? .divider.mt-3.py-3 %p.ml-3.small My Apps %ul.nav.flex-column -(@current_user_json_hash['company']['apps'] || []).each do |app| - if app['home'].present? %li.nav-item %a.nav-link{:href => app['home']} = image_tag "https://media.shoplift.fi/application_logos/#{app['name'].downcase}.svg", style: "padding-bottom: 3px; height: 24px;" %span.ml-2 = app['name'].capitalize .divider.py-3{:style => "margin-top: 5rem;"} %p.ml-3.small Help & Feedback %ul.nav.flex-column %li.nav-item %a.nav-link{:href => "#"} %i.material-icons help Help %li.nav-item %a.nav-link{:href => "#"} %i.material-icons feedback Feedback %main.col-lg-10.ml-lg-auto{:role => "main"} .row.justify-content-center .col-lg-8.px-lg-0.pt-lg-3 - unless controller.class.do_hide_search_for_this_controller && (controller.do_hide_search_for_this_action != false) %nav.navbar.navbar-light.justify-content-start.flex-nowrap %span.material-icons.d-inline-block.text-muted.mr-1 search %form.w-100(action=search_path) .form-group.mb-0 %input.form-control{"aria-describedby" => "basic-addon1", "aria-label" => "Search",:name => "search", :placeholder => search_placeholder, :type => "search"}/ .col-lg-4.px-lg-0.pt-lg-3.d-none.d-lg-flex.align-items-center.justify-content-end .dropdown %a#dropdownMenuButton.chip.chip-action.dropdown-toggle.mr-lg-4{"aria-expanded" => "false", "aria-haspopup" => "true", "data-toggle" => "dropdown", :href => "#"} %img.chip-img(alt="#{@current_user['email']}" src="#{gravatar_image_url(@current_user['email'])}")/ = @current_user['email'] .dropdown-menu.dropdown-menu-right.mt-2{"aria-labelledby" => "dropdownMenuButton"} .dropdown-header=@current_user_json_hash['email'] .dropdown-header %strong Company: =@current_user_json_hash['company']['name'] - if (@current_user_json_hash['memberships'] || []).reject { |c| @current_user_json_hash['company']['code'] == c['code'] }.present? .dropdown-divider .dropdown-header Change company - (@current_user_json_hash['memberships'] || []).reject { |c| @current_user_json_hash['company']['code'] == c['code'] }.each do |c| = link_to(change_company_path(c['code']), method: :post, :class => 'dropdown-item') do %span(display="block" clear="none" style="width: 32px; margin-right: 6px;") = image_tag "https://media.shoplift.fi/company_logos/#{c['logo_code']}_company_logo_24.png", style: "height: 16; width: 32px;" = c['name'] .dropdown-divider = link_to(logout_path, method: :delete, :class => 'dropdown-item') do Logout .row.justify-content-end .col - flash.keys.each do |flash_key| .alert.alert-dismissible.mt-3.fade.show(role="alert" class="alert-#{flash_key.gsub('notice', 'primary')}") = flash[flash_key].html_safe %button.close{"aria-label" => "Close", "data-dismiss" => "alert", :type => "button"} %span{"aria-hidden" => "true"} × %nav.navbar.navbar-expand-lg.navbar-light.d-lg-none.d-xl-none.topbar %button.navbar-toggler{"aria-controls" => "navbarNavDropdown", "aria-expanded" => "false", "aria-label" => "Toggle navigation", "data-target" => "#navbarNavDropdown", "data-toggle" => "collapse", :type => "button"} %span.navbar-toggler-icon #navbarNavDropdown.collapse.navbar-collapse %ul.navbar-nav = render 'layouts/sidebar', dropdown: false -# .row.justify-content-end.d-none.d-lg-block -# .col-lg-12.mt-3.pr-lg-0 -# .info-box.shadow-sm.py-4 -# %p.text-white{:style => "padding-left: 7.5rem;"} -# %strong Sales statistics -# .d-flex.justify-content-around.align-items-center -# %div -# %h3.mb-0 -# %span.material-icons.text-success.mr-2 trending_up -# %h3.text-white -# %span.text-thin Total orders -# %span.h2 2938 -# %p.text-white -# + 8.2% -# %span.text-white-secondary Compared to all time average -# %div -# %h3.mb-0 -# %span.material-icons.text-warning.mr-2 trending_flat -# %h3.text-white -# %span.text-thin Monthly orders -# %span.h2 120 -# %p.text-white -# + 0.2% -# %span.text-white-secondary Compared to last month -# %div -# %h3.mb-0 -# %span.material-icons.text-danger.mr-2 trending_down -# %h3.text-white -# %span.text-thin Weekly -# %span.h2 38 -# %p.text-white -# \- 3.2% -# %span.text-white-secondary Compared to last week = yield