Sha256: b5083c755dea4201622cef8082ae74c6923ab5c7aa3886aa39e00eb6e14d61c4

Contents?: true

Size: 1.37 KB

Versions: 5

Compression:

Stored size: 1.37 KB

Contents

!!! Strict
%html{ :xmlns => "http://www.w3.org/1999/xhtml" }
  %head
    %meta{ :content => "text/html; charset=utf-8", "http-equiv" => "Content-Type" }
    %meta{ :name => "generator", :content => "adva-cms - Open source content management platform" }
    %title
      \#{@site.name}: Admin
      = controller.controller_name

    = stylesheet_link_tag "adva_cms/admin"

    -# FIXME extract to subprojects
    = stylesheet_link_tag "adva_comments/admin/comments.css" if defined?(Comment)

    = stylesheet_link_tag "admin.css" # super project can put override styles here

    = yield :css

    = yield :before_javascript_include

    = javascript_include_tag "adva_cms"
    = javascript_include_tag "admin"

    - unless Rails.env.test? # ckeditor screws up tests
      = javascript_include_tag Ckeditor.cdn_url unless Rails.env.test?

    = javascript_tag "window._auth_token = #{form_authenticity_token.inspect}"
    = csrf_meta_tags

    = yield :js

    = yield :head

  %body
    = menu.build(self).root.render(:id => 'top')
    = render :partial => 'admin/shared/header'
    #page
      = yield :form if content_for :form
      .main
        = menu.root.find(:main).try(:render, :id => 'main_menu')
        = render :partial => 'shared/flash'
        #content
          = yield
      #sidebar.right
        = yield :sidebar
      = raw('</form>') if content_for :form
      #left.collapsed

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
adva-0.2.4 app/views/layouts/admin.html.haml
adva-0.2.3 app/views/layouts/admin.html.haml
adva-0.2.2 app/views/layouts/admin.html.haml
adva-0.2.1 app/views/layouts/admin.html.haml
adva-0.2.0 app/views/layouts/admin.html.haml