Sha256: c22ea80e1748f37adc03cecd9da9f2cbb4f3d38705d226005deab40ccf36d2fb

Contents?: true

Size: 1.64 KB

Versions: 2

Compression:

Stored size: 1.64 KB

Contents

!!! Strict
%html{:xmlns => 'http://www.w3.org/1999/xhtml', :'xml:lang' => I18n.locale, :lang => I18n.locale}
  %head
    %title= @meta_title
    = stylesheet_link_tag 'rails_dash/application', :media => 'all'
    = javascript_include_tag 'application'
    = csrf_meta_tags
    %body
      #page
        #navigation
          .holder
            #menu
              %ul
                %li
                  %a{ :href => rails_dash.root_path, :title => t('dash.menu.home') }
                    = t('dash.menu.home')
                %li
                  %a{ :href => main_app.url_for(:controller => 'dash/photos', :action => 'index'), :title => Photo.model_name.human(:count => 2) }
                    = Photo.model_name.human(:count => 2)
            #session
              %a.button{ :href => '#', :title => t('dash.session.logout') }
                = t('dash.session.logout')
        - if @title
          #header        
            .holder
              %h1
                = @title
        - if not flash.empty? and ((flash.key?(:error) and flash[:error].any?) or (flash.key?(:success) and flash[:success].any?))
          #flash.flash.holder
            - if flash.key?(:error) and flash[:error].any?
              - while flash[:error].any?  
                %p.error
                  = flash[:error].shift.capitalize
            - if flash.key?(:success) and flash[:success].any?
              - while flash[:success].any?
                %p.success
                  = flash[:success].shift.capitalize
        #content.holder
          = yield
      #footer
        .holder
          %p#copyright
            = t('dash.footer.copyright', :year => Time.now.year)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails_dash-0.0.6 test/dummy/app/views/layouts/dash.html.haml
rails_dash-0.0.5 test/dummy/app/views/layouts/dash.html.haml