Sha256: 096a986ed5f67a21c2445b02ffdaf3928d24bbe551c29876f30573b7401c6d65

Contents?: true

Size: 1.91 KB

Versions: 59

Compression:

Stored size: 1.91 KB

Contents

-#
-# ish_manager / features / _index
-#

- resource ||= @resource

- pparams = {}
- pparams["#{resource.class.name.downcase}_id"] = resource.id

.row
  .large-12.columns
    %h5
      Features in <b>#{resource.class.name}</b> #{resource.name}
      = link_to '[+]', new_feature_path(pparams)
    .row
      - resource.features.each do |feature|
        .col.s3

          .flex-row

            = link_to '[~]', edit_city_feature_path( resource, feature ) if 'City' == resource.class.name
            = link_to '[~]', edit_tag_feature_path( resource, feature ) if 'Tag' == resource.class.name
            = link_to '[~]', edit_site_feature_path( resource, feature ) if 'Site' == resource.class.name
            = link_to '[~]', edit_venue_feature_path( resource, feature ) if 'Venue' == resource.class.name

            = button_to( '[x]', city_feature_path( resource, feature ), :method => :delete, :data => { :confirm => :'Are you sure?' } ) if 'City' == resource.class.name
            = button_to( '[x]', tag_feature_path( resource, feature ), :method => :delete, :data => { :confirm => :'Are you sure?' } ) if 'Tag' == resource.class.name
            = button_to( '[x]', site_feature_path( resource, feature ), :method => :delete, :data => { :confirm => :'Are you sure?' } ) if 'Site' == resource.class.name
            = button_to( '[x]', venue_feature_path( resource, feature ), :method => :delete, :data => { :confirm => :'Are you sure?' } ) if 'Venue' == resource.class.name

          %ul
            - if feature.name
              %li Name #{feature.name}
            - if feature.subhead
              %li Subhead: #{feature.subhead}
            - if feature.report
              %li Report: #{feature.report}
            - if feature.gallery
              %li Gallery: #{feature.gallery.id} <br /> #{feature.gallery.name}
            - if feature.inner_html
              %li
                inner html:
                = raw feature.inner_html

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
ish_manager-0.1.8.322 app/views/ish_manager/features/_index.haml
ish_manager-0.1.8.321 app/views/ish_manager/features/_index.haml
ish_manager-0.1.8.320 app/views/ish_manager/features/_index.haml
ish_manager-0.1.8.318 app/views/ish_manager/features/_index.haml
ish_manager-0.1.8.317 app/views/ish_manager/features/_index.haml
ish_manager-0.1.8.316 app/views/ish_manager/features/_index.haml
ish_manager-0.1.8.315 app/views/ish_manager/features/_index.haml
ish_manager-0.1.8.314 app/views/ish_manager/features/_index.haml
ish_manager-0.1.8.313 app/views/ish_manager/features/_index.haml
ish_manager-0.1.8.312 app/views/ish_manager/features/_index.haml
ish_manager-0.1.8.311 app/views/ish_manager/features/_index.haml
ish_manager-0.1.8.310 app/views/ish_manager/features/_index.haml
ish_manager-0.1.8.309 app/views/ish_manager/features/_index.haml
ish_manager-0.1.8.308 app/views/ish_manager/features/_index.haml
ish_manager-0.1.8.307 app/views/ish_manager/features/_index.haml
ish_manager-0.1.8.306 app/views/ish_manager/features/_index.haml
ish_manager-0.1.8.305 app/views/ish_manager/features/_index.haml
ish_manager-0.1.8.304 app/views/ish_manager/features/_index.haml
ish_manager-0.1.8.303 app/views/ish_manager/features/_index.haml
ish_manager-0.1.8.302 app/views/ish_manager/features/_index.haml