Sha256: bf052396617d4b5c86a29888f1a18384363ee8bf8eaa7ab069db58b62ff57a21

Contents?: true

Size: 1.27 KB

Versions: 5

Compression:

Stored size: 1.27 KB

Contents

!!!
%html
  %head
    %title #{@page_title} - Shoppe
    = stylesheet_link_tag 'shoppe/application'
    = javascript_include_tag 'shoppe/application'
    = csrf_meta_tags
  %body
    %nav.sidebar
      %header.logo
        %h1= link_to "Shoppe", root_path
        %p v#{Shoppe::VERSION}
      %p.logged
        Logged in as #{current_user.full_name}
      %ul
        %li
          %span.pending= Shoppe::Order.pending.count
          = link_to "Orders", [:orders], :class => @active_nav == :orders ? 'active' : ''
        %li= link_to "Products", [:products], :class => @active_nav == :products ? 'active' : ''
        %li= link_to "Product Categories", :product_categories, :class => @active_nav == :product_categories ? 'active' : ''
        %li= link_to "Delivery Services", [:delivery_services], :class => @active_nav == :delivery_services ? 'active' : ''
        %li= link_to "Tax Rates", :tax_rates, :class => @active_nav == :tax_rates ? 'active' : ''
        %li= link_to "Users", [:users], :class => @active_nav == :users ? 'active' : ''
        %li= link_to "Logout", [:logout], :method => :delete
    
    %header.main
      = yield :header
      
    #content  
      = display_flash
      %section.main
        = yield

    %footer 
      %p.store= link_to "Goto Storefront", '/'
      

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
shoppe-0.0.15 app/views/layouts/shoppe/application.html.haml
shoppe-0.0.14 app/views/layouts/shoppe/application.html.haml
shoppe-0.0.13 app/views/layouts/shoppe/application.html.haml
shoppe-0.0.12 app/views/layouts/shoppe/application.html.haml
shoppe-0.0.11 app/views/layouts/shoppe/application.html.haml