Sha256: 2f9063088aad428564f759d377e136727da7fbc870a5e16dd4b276309c249553

Contents?: true

Size: 947 Bytes

Versions: 10

Compression:

Stored size: 947 Bytes

Contents

- 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 )
  
.manager-features--index
  %h2
    Features (#{features.length})
    = link_to '[+]', new_path
    
  .row
    - features.each_with_index do |feature, idx|
      - if idx%4==0
        .clearfix
      .col-sm-3
        .panel.panel-default
          = 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

10 entries across 10 versions & 1 rubygems

Version Path
ish_manager-0.1.8.45 app/views/ish_manager/features/_index.haml
ish_manager-0.1.8.44 app/views/ish_manager/features/_index.haml
ish_manager-0.1.8.43 app/views/ish_manager/features/_index.haml
ish_manager-0.1.8.41 app/views/ish_manager/features/_index.haml
ish_manager-0.1.8.40 app/views/ish_manager/features/_index.haml
ish_manager-0.1.8.39 app/views/ish_manager/features/_index.haml
ish_manager-0.1.8.38 app/views/ish_manager/features/_index.haml
ish_manager-0.1.8.37 app/views/ish_manager/features/_index.haml
ish_manager-0.1.8.36 app/views/ish_manager/features/_index.haml
ish_manager-0.1.8.35 app/views/ish_manager/features/_index.haml