Sha256: 0fdc10dc06274149a95f375d5c84ba632f7c48aa877c601fadb99ac3b3afda69

Contents?: true

Size: 795 Bytes

Versions: 12

Compression:

Stored size: 795 Bytes

Contents

- 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-sm-12
      %h5
        Reports (#{reports.length})
        = link_to image_new, new_path

      = paginate reports, :param_name => :reports_page
      %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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ish_manager-0.1.8.123 app/views/ish_manager/reports/_index.haml
ish_manager-0.1.8.122 app/views/ish_manager/reports/_index.haml
ish_manager-0.1.8.121 app/views/ish_manager/reports/_index.haml
ish_manager-0.1.8.120 app/views/ish_manager/reports/_index.haml
ish_manager-0.1.8.119 app/views/ish_manager/reports/_index.haml
ish_manager-0.1.8.118 app/views/ish_manager/reports/_index.haml
ish_manager-0.1.8.117 app/views/ish_manager/reports/_index.haml
ish_manager-0.1.8.116 app/views/ish_manager/reports/_index.haml
ish_manager-0.1.8.115 app/views/ish_manager/reports/_index.haml
ish_manager-0.1.8.114 app/views/ish_manager/reports/_index.haml
ish_manager-0.1.8.113 app/views/ish_manager/reports/_index.haml
ish_manager-0.1.8.112 app/views/ish_manager/reports/_index.haml