Sha256: 4894c7605b47dd3243ffd04552336aa0dbb08aea88d4b8b3ca19806a2d3b24bb

Contents?: true

Size: 976 Bytes

Versions: 15

Compression:

Stored size: 976 Bytes

Contents

#content
  %h2 All #{item_humanized_name} items
  %h6
    - path_options = {} if path_options.nil?

    = link_to "click here to add a new #{item_humanized_name} item", {action: :new}.merge(path_options)

  - if collection.count < 1
    .no_news
      = "Sorry, It seams there are no #{collection.klass.to_s.underscore.humanize.downcase} items at this moment.. "
      = link_to "press here to add a new #{collection.klass.to_s.underscore.humanize.downcase} item", {action: :new}.merge(path_options)

  - else
    - collection.each do |item|
      .list-group-item{:id => "order_#{item.id}"}
        %span
          - if defined? item.weeler_image_path
            = image_tag(item.weeler_image_path, style: "max-width: 75px")
          %b
            = truncate(item.to_s, length: 40)
        %span{class: "pull-right"}
          = link_to "Edit", action: :edit, id: item.id
          = link_to "Delete", [:weeler, item], data: {confirm: 'Are you sure?'}, :method => :delete

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
weeler-2.1.0 app/views/weeler/content/_list.html.haml
weeler-2.0.1 app/views/weeler/content/_list.html.haml
weeler-2.0.0 app/views/weeler/content/_list.html.haml
weeler-1.6.0 app/views/weeler/content/_list.html.haml
weeler-1.5.4 app/views/weeler/content/_list.html.haml
weeler-1.5.2 app/views/weeler/content/_list.html.haml
weeler-1.5.1 app/views/weeler/content/_list.html.haml
weeler-1.4.0 app/views/weeler/content/_list.html.haml
weeler-1.2.0 app/views/weeler/content/_list.html.haml
weeler-1.1.0 app/views/weeler/content/_list.html.haml
weeler-1.0.4 app/views/weeler/content/_list.html.haml
weeler-1.0.3 app/views/weeler/content/_list.html.haml
weeler-1.0.2 app/views/weeler/content/_list.html.haml
weeler-1.0.1 app/views/weeler/content/_list.html.haml
weeler-1.0.0 app/views/weeler/content/_list.html.haml