Sha256: 266a70aaa56511cc1f1fe3c97454fd09ee8e14bdb1ae5db20a1f8d693f1a9375

Contents?: true

Size: 1.59 KB

Versions: 2

Compression:

Stored size: 1.59 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 => url_for([:dash, :photos]), :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 => @year)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails_dash-0.0.4 test/dummy/app/views/layouts/dash.html.haml
rails_dash-0.0.3 test/dummy/app/views/layouts/dash.html.haml