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