Sha256: bcc0f774255b6279c0c8e5ec100a6217861398cb6dbc6fa068b5cf9dda58c30f

Contents?: true

Size: 1.41 KB

Versions: 54

Compression:

Stored size: 1.41 KB

Contents

-#
-# ish_manager / features / _index
-#

- if defined? city
  - edit_url   = -> (feature ) { edit_city_feature_path( city.id, feature.id ) }
  - delete_url = -> (feature ) { city_feature_path(      city.id, feature.id ) }
  - new_path   = new_city_feature_path( city.id )
- if defined? site
  - edit_url   = -> (feature) { edit_site_feature_path( site.id, feature.id ) }
  - delete_url = -> (feature) { site_feature_path(      site.id, feature.id ) }
  - new_path   = new_site_feature_path( site.id )
- if defined?(tag)
  - edit_url   = -> (feature) { edit_tag_feature_path( tag.id, feature.id ) }
  - delete_url = -> (feature) { tag_feature_path(      tag.id, feature.id ) }
  - new_path   = new_tag_feature_path( tag.id )
- if params[:tag_id]
  - edit_url   = -> (feature) { edit_tag_feature_path( params[:tag_id], feature.id ) }
  - delete_url = -> (feature) { tag_feature_path(      params[:tag_id], feature.id ) }
  - new_path   = new_tag_feature_path( params[:tag_id] )

.manager-features--index
  %h3
    Features (#{features.length})
    = link_to image_new, new_path

  .row
    - features.each_with_index do |feature, idx|
      - if idx % 4 == 0
        .clearfix
      .col-sm-3
        .a
          = link_to '[~]', edit_url.call( feature )
          = button_to '[x]', delete_url.call( feature ), :method => :delete, :data => { :confirm => 'Are you sure?' }
          = render 'ish_manager/features/item', :feature => feature
  %hr

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
ish_manager-0.1.8.316 app/views/ish_manager/features/_index.haml-trash
ish_manager-0.1.8.315 app/views/ish_manager/features/_index.haml-trash
ish_manager-0.1.8.314 app/views/ish_manager/features/_index.haml-trash
ish_manager-0.1.8.313 app/views/ish_manager/features/_index.haml-trash
ish_manager-0.1.8.312 app/views/ish_manager/features/_index.haml-trash
ish_manager-0.1.8.311 app/views/ish_manager/features/_index.haml-trash
ish_manager-0.1.8.310 app/views/ish_manager/features/_index.haml-trash
ish_manager-0.1.8.309 app/views/ish_manager/features/_index.haml-trash
ish_manager-0.1.8.308 app/views/ish_manager/features/_index.haml-trash
ish_manager-0.1.8.307 app/views/ish_manager/features/_index.haml-trash
ish_manager-0.1.8.306 app/views/ish_manager/features/_index.haml-trash
ish_manager-0.1.8.305 app/views/ish_manager/features/_index.haml-trash
ish_manager-0.1.8.304 app/views/ish_manager/features/_index.haml-trash
ish_manager-0.1.8.303 app/views/ish_manager/features/_index.haml-trash
ish_manager-0.1.8.302 app/views/ish_manager/features/_index.haml-trash
ish_manager-0.1.8.301 app/views/ish_manager/features/_index.haml-trash
ish_manager-0.1.8.300 app/views/ish_manager/features/_index.haml-trash
ish_manager-0.1.8.299 app/views/ish_manager/features/_index.haml-trash
ish_manager-0.1.8.298 app/views/ish_manager/features/_index.haml-trash
ish_manager-0.1.8.296 app/views/ish_manager/features/_index.haml-trash