Sha256: 1516307f123546d25ec511d7f38e7ac1102e53b22ac0ef809c4da595a5727e4d

Contents?: true

Size: 601 Bytes

Versions: 25

Compression:

Stored size: 601 Bytes

Contents

- if defined? site
  - edit_url   = ->(n) { edit_manager_site_newsitem_path( site, n ) }
  - delete_url = ->(n) { manager_site_newsitem_path( site, n ) }
- if defined? city
  - edit_url   = ->(n) { edit_manager_city_newsitem_path( city, n ) }
  - delete_url = ->(n) { manager_city_newsitem_path( city, n ) }
  
.row
  .small-12.columns
    %h2 Newsitems (#{newsitems.count})
    %ul
      - newsitems.each do |n|
        %li
          = link_to '[~]', edit_url.call( n )
          = link_to '[x]', delete_url.call( n ), :method => :delete, :data => { :confirm => 'Are you sure?' }
          = n.name

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
ish_manager-0.1.8.21 app/views/ish_manager/newsitems/_index.haml
ish_manager-0.1.8.20 app/views/ish_manager/newsitems/_index.haml
ish_manager-0.1.8.19 app/views/ish_manager/newsitems/_index.haml
ish_manager-0.1.8.18 app/views/ish_manager/newsitems/_index.haml
ish_manager-0.1.8.16 app/views/ish_manager/newsitems/_index.haml
ish_manager-0.1.8.15 app/views/ish_manager/newsitems/_index.haml
ish_manager-0.1.8.14 app/views/ish_manager/newsitems/_index.haml
ish_manager-0.1.8.13 app/views/ish_manager/newsitems/_index.haml
ish_manager-0.1.8.12 app/views/ish_manager/newsitems/_index.haml
ish_manager-0.1.8.11 app/views/ish_manager/newsitems/_index.haml
ish_manager-0.1.8.10 app/views/ish_manager/newsitems/_index.haml
ish_manager-0.1.8.9 app/views/ish_manager/newsitems/_index.haml
ish_manager-0.1.8.8 app/views/ish_manager/newsitems/_index.haml
ish_manager-0.1.8.7 app/views/ish_manager/newsitems/_index.haml
ish_manager-0.1.8.6 app/views/ish_manager/newsitems/_index.haml
ish_manager-0.1.8.5 app/views/ish_manager/newsitems/_index.haml
ish_manager-0.1.8.4 app/views/ish_manager/newsitems/_index.haml
ish_manager-0.1.8.3 app/views/ish_manager/newsitems/_index.haml
ish_manager-0.1.8.2 app/views/ish_manager/newsitems/_index.haml
ish_manager-0.1.8 app/views/ish_manager/newsitems/_index.haml