Sha256: a4aaf96d2b00a1ffa5d8fed670d8427c23e218e98d7f56060df04115f6a9474c

Contents?: true

Size: 1020 Bytes

Versions: 15

Compression:

Stored size: 1020 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 #{item_humanized_name} items at this moment.. "
      = link_to "press here to add a new #{item_humanized_name} item", {action: :new}.merge(path_options)

  - else
    .sortable.list-group{data: {url: "#{url_for({action: :order}.merge(path_options)) }"} }
      - 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
              = raw item.to_s
          %span{class: "pull-right"}
            = link_to "Edit", edit_polymorphic_path([:weeler, item])
            = 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/_sortable_list.html.haml
weeler-2.0.1 app/views/weeler/content/_sortable_list.html.haml
weeler-2.0.0 app/views/weeler/content/_sortable_list.html.haml
weeler-1.6.0 app/views/weeler/content/_sortable_list.html.haml
weeler-1.5.4 app/views/weeler/content/_sortable_list.html.haml
weeler-1.5.2 app/views/weeler/content/_sortable_list.html.haml
weeler-1.5.1 app/views/weeler/content/_sortable_list.html.haml
weeler-1.4.0 app/views/weeler/content/_sortable_list.html.haml
weeler-1.2.0 app/views/weeler/content/_sortable_list.html.haml
weeler-1.1.0 app/views/weeler/content/_sortable_list.html.haml
weeler-1.0.4 app/views/weeler/content/_sortable_list.html.haml
weeler-1.0.3 app/views/weeler/content/_sortable_list.html.haml
weeler-1.0.2 app/views/weeler/content/_sortable_list.html.haml
weeler-1.0.1 app/views/weeler/content/_sortable_list.html.haml
weeler-1.0.0 app/views/weeler/content/_sortable_list.html.haml