Sha256: ff91577d16192b3a4e8126e705c1bb774763c902570cb0f966c51d4e0ebd3c52

Contents?: true

Size: 880 Bytes

Versions: 59

Compression:

Stored size: 880 Bytes

Contents

- reports ||= @reports
- reports = reports.page( params[:reports_page] ).per( 10 )
- if defined? site
  - new_path = new_site_report_path( site.id )
- else
  - new_path = new_report_path
  
.manager-reports--index
  .row
    .col.s12
      %h5
        Reports (#{reports.length})
        = link_to image_new, new_path

      = paginate reports, :param_name => :reports_page, :views_prefix => 'ish_manager'
      %ol
        - reports.each do |report|
          %li
            = link_to '[~]', edit_report_path( report )
            = link_to '[x]', report_path( report ), :method => :delete, :data => { :confirm => 'Are you sure?' }
            = link_to report.name, report_path( report )
            - if report.subhead && report.subhead.length > 3
              .subhead= report.subhead
      = paginate reports, :param_name => :reports_page, :views_prefix => 'ish_manager'

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
ish_manager-0.1.8.277 app/views/ish_manager/reports/_index.haml
ish_manager-0.1.8.274 app/views/ish_manager/reports/_index.haml
ish_manager-0.1.8.273 app/views/ish_manager/reports/_index.haml
ish_manager-0.1.8.272 app/views/ish_manager/reports/_index.haml
ish_manager-0.1.8.271 app/views/ish_manager/reports/_index.haml
ish_manager-0.1.8.268 app/views/ish_manager/reports/_index.haml
ish_manager-0.1.8.266 app/views/ish_manager/reports/_index.haml
ish_manager-0.1.8.265 app/views/ish_manager/reports/_index.haml
ish_manager-0.1.8.264 app/views/ish_manager/reports/_index.haml
ish_manager-0.1.8.263 app/views/ish_manager/reports/_index.haml
ish_manager-0.1.8.261 app/views/ish_manager/reports/_index.haml
ish_manager-0.1.8.260 app/views/ish_manager/reports/_index.haml
ish_manager-0.1.8.259 app/views/ish_manager/reports/_index.haml
ish_manager-0.1.8.258 app/views/ish_manager/reports/_index.haml
ish_manager-0.1.8.257 app/views/ish_manager/reports/_index.haml
ish_manager-0.1.8.256 app/views/ish_manager/reports/_index.haml
ish_manager-0.1.8.255 app/views/ish_manager/reports/_index.haml
ish_manager-0.1.8.254 app/views/ish_manager/reports/_index.haml
ish_manager-0.1.8.253 app/views/ish_manager/reports/_index.haml