Sha256: 90b60babf60af2872027f847a6b21d4ee01e13e0ac3d2fc6c78ac00027e29a39

Contents?: true

Size: 750 Bytes

Versions: 24

Compression:

Stored size: 750 Bytes

Contents

#section-header
  #search
    Search
     
    = text_field_tag :q, params[:q], :id => 'quick-search', :class => 'search'

  - if File.exist?(File.join(Rails.root, 'app', 'views', 'forge', item.to_s.underscore.pluralize, '_drawer.html.haml'))
    #drawer-control
      %a{:href => '#'}> Sort & Filter
      = link_to image_tag('forge/down-arrow.jpg'), '#', :style => "padding: 0px 5px;"

  / this could become a helper (or something):
  - options ||= {}
  - options[:show_new] = true unless options.has_key?(:show_new)
  - if options[:show_new] && can?(:create, item)
    = button_link "New #{item.to_s.scan(/[A-Z][a-z]*/).join(' ')}", new_polymorphic_url([:forge, item]), :class => "new button", :id => item == Asset ? "new-asset-link" : ""

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
forge-cli-0.1.10 lib/forge/app/views/forge/shared/_section_header.html.haml
forge-cli-0.1.9 lib/forge/app/views/forge/shared/_section_header.html.haml
forge-cli-0.1.8 lib/forge/app/views/forge/shared/_section_header.html.haml
forge-cli-0.1.7 lib/forge/app/views/forge/shared/_section_header.html.haml
forge-cli-0.1.6 lib/forge/app/views/forge/shared/_section_header.html.haml
forge-cli-0.1.5 lib/forge/app/views/forge/shared/_section_header.html.haml
forge-cli-0.1.4 lib/forge/app/views/forge/shared/_section_header.html.haml
forge-cli-0.1.3 lib/forge/app/views/forge/shared/_section_header.html.haml
forge-cli-0.1.2 lib/forge/app/views/forge/shared/_section_header.html.haml
forge-cli-0.1.1 lib/forge/app/views/forge/shared/_section_header.html.haml
forge-cli-0.1.0 lib/forge/app/views/forge/shared/_section_header.html.haml
forge-cli-0.0.18 lib/forge/app/views/forge/shared/_section_header.html.haml
forge-cli-0.0.17 lib/forge/app/views/forge/shared/_section_header.html.haml
forge-cli-0.0.16 lib/forge/app/views/forge/shared/_section_header.html.haml
forge-cli-0.0.15 lib/forge/app/views/forge/shared/_section_header.html.haml
forge-cli-0.0.14 lib/forge/app/views/forge/shared/_section_header.html.haml
forge-cli-0.0.13 lib/forge/app/views/forge/shared/_section_header.html.haml
forge-cli-0.0.12 lib/forge/app/views/forge/shared/_section_header.html.haml
forge-cli-0.0.11 lib/forge/app/views/forge/shared/_section_header.html.haml
forge-cli-0.0.10 lib/forge/app/views/forge/shared/_section_header.html.haml