!!! %html{lang: 'ru'} %head %meta{charset: 'utf-8'}/ %meta{'http-equiv' => 'X-UA-Compatible', content: 'IE=edge,chrome=1'}/ %title=t :dashboard / [if lt IE 9] %script{src: 'http://html5shim.googlecode.com/svn/trunk/html5.js'} :javascript var CKEDITOR_BASEPATH = '/assets/ckeditor/' = stylesheet_link_tag 'constructor_core/application' = javascript_include_tag 'constructor_core/application' = csrf_meta_tag = favicon_link_tag %link{rel: 'apple-touch-icon', href: 'images/apple-touch-icon.png'} %link{rel: 'apple-touch-icon', sizes: '72x72', href: 'images/apple-touch-icon-72x72.png'} %link{rel: 'apple-touch-icon', sizes: '114x114', href: 'images/apple-touch-icon-114x114.png'} %body .navbar.navbar-constructor .navbar-inner .container-fluid = link_to t(:homepage), '/', class: 'brand' %a.btn.btn-navbar{'data-toggle' => 'collapse', 'data-target' => '.nav-collapse'} %span.icon-bar %span.icon-bar %span.icon-bar .nav-collapse %ul.nav / %li = link_to '/admin/dashboard' do %i.icon-dashboard =t :dashboard %li = link_to '/admin/pages' do %i.icon-sitemap =t :structure %li = link_to '/admin/templates' do %i.icon-film =t :templates / %li = link_to '/admin/users' do %i.icon-group =t :users %li = link_to '/admin/settings' do %i.icon-cogs =t :settings - if current_user %ul.nav.pull-right %li = link_to core.user_path(current_user.id) do = image_tag gravatar_icon(current_user.email, 48), width: 24, height: 24, class: 'avatar' %span= current_user.email %li = link_to 'http://ivanzotov.github.io/constructor/' do %i.icon-question-sign =t :help %li = link_to core.logout_path, method: :delete do %i.icon-signout =t :logout .container-fluid .page-header .row-fluid .span4 %h3.muted= yield :page_title .span4 - unless notice.nil? .alert.fade.in = link_to '×', '#', class: 'close', 'data-dismiss' => 'alert' = notice - unless alert.nil? .alert.alert-error.fade.in = link_to '×', '#', class: 'close', 'data-dismiss' => 'alert' = alert = yield :actions .content .row-fluid = yield / [if lt IE 7 ] %script{src: '//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js'} %script window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})})