Sha256: 9010ddba10df78f58a9f297bed316526214b2828317369b5b7e9ec1450ececd6

Contents?: true

Size: 1.07 KB

Versions: 30

Compression:

Stored size: 1.07 KB

Contents

-# ish_manager / reports / index

- if @site
  = render 'ish_manager/sites/header', :site => @site
  
.row
  .large-12.columns
    %h3
      Reports (#{@reports.length})
      = link_to image_new, new_report_path
      
    = paginate @reports, :param_name => :reports_page, :views_prefix => 'ish_manager'
    
    - @reports.each do |report|
      .card
        .card-content
          = link_to '[~]', edit_report_path( report )
          .float-left= button_to '[x]', report_path( report ), :method => :delete, :data => { :confirm => 'Are you sure?' }
          - if report.is_public
            %i.material-icons visibility
          - else
            %i.material-icons visibility off
          = link_to report.name, report_path( report )
          %br
          .gray
            - if report.site
              Site #{report.site.domain}/#{report.site.lang}
              %br
            = report.created_at
          - if report.photo
            = image_tag report.photo.photo.url :thumb
          
    = paginate @reports, :param_name => :reports_page, :views_prefix => 'ish_manager'
    

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
ish_manager-0.1.8.156 app/views/ish_manager/reports/index.haml
ish_manager-0.1.8.155 app/views/ish_manager/reports/index.haml
ish_manager-0.1.8.154 app/views/ish_manager/reports/index.haml
ish_manager-0.1.8.153 app/views/ish_manager/reports/index.haml
ish_manager-0.1.8.152 app/views/ish_manager/reports/index.haml
ish_manager-0.1.8.151 app/views/ish_manager/reports/index.haml
ish_manager-0.1.8.150 app/views/ish_manager/reports/index.haml
ish_manager-0.1.8.149 app/views/ish_manager/reports/index.haml
ish_manager-0.1.8.148 app/views/ish_manager/reports/index.haml
ish_manager-0.1.8.147 app/views/ish_manager/reports/index.haml