!!! %html %head %link{ href: '/assets/favicon.ico', rel: 'shortcut icon', type: 'image/x-icon' }/ %title="#{Rails.application.class.to_s.split('::').first} Admin" = stylesheet_link_tag "carnival/admin", :media => "all" = stylesheet_link_tag controller_name if Rails.application.assets.find_asset("#{controller_name}.css") = javascript_include_tag controller_name if Rails.application.assets.find_asset("#{controller_name}.js") = javascript_include_tag "carnival/admin", "data-turbolinks-track" => true = csrf_meta_tags %link{:href => "http://fonts.googleapis.com/css?family=Raleway:400,600,700", :rel => "stylesheet", :type => "text/css"} %script{:src => "http://www.google.com/jsapi"} :javascript (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-46181046-2', 'safeguard.vc'); ga('send', 'pageview'); %body #main - if current_admin_user.present? .right_menu %div.sign_out= link_to t('logout'), destroy_admin_user_session_path, :method => :delete %div.safe-guard-notification = render '/layouts/carnival/notifications_list' %div.salute = link_to edit_carnival_admin_user_path(:id => current_admin_user.id) do .email = current_admin_user.email %figure %img{:src => "#{current_admin_user.avatar.nil? ? '/assets/carnival/avatar.png' : current_admin_user.avatar}", :class => "#{current_admin_user.avatar.nil? ? 'default' : 'custom'}"} #header_wrapper #header .logo_intranet= link_to "#{Rails.application.class.to_s.split('::').first} Admin", admin_root_url #content_wrapper = render '/layouts/carnival/menu' #content #main_column_wrapper #main_column :javascript #{show_messages} = yield = render '/carnival/shared/application_popup_partial' .clearfix #footer_wrapper_app #footer_app #footer_title_app #footer_logo_app