Sha256: 1dd0581ee16eb4bcd7dff94e7881e327a49e8192263cfd191155cc8eb50eac92

Contents?: true

Size: 945 Bytes

Versions: 9

Compression:

Stored size: 945 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 )
          = link_to '[x]', delete_url.call( feature ), :method => :delete, :data => { :confirm => 'Are you sure?' }
          = render 'ish_manager/features/item', :feature => feature
  %hr

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ish_manager-0.1.8.34 app/views/ish_manager/features/_index.haml
ish_manager-0.1.8.33 app/views/ish_manager/features/_index.haml
ish_manager-0.1.8.32 app/views/ish_manager/features/_index.haml
ish_manager-0.1.8.31 app/views/ish_manager/features/_index.haml
ish_manager-0.1.8.30 app/views/ish_manager/features/_index.haml
ish_manager-0.1.8.29 app/views/ish_manager/features/_index.haml
ish_manager-0.1.8.28 app/views/ish_manager/features/_index.haml
ish_manager-0.1.8.27 app/views/ish_manager/features/_index.haml
ish_manager-0.1.8.26 app/views/ish_manager/features/_index.haml