Sha256: 6c604d83a26dcc806d680581b536b4999dab1121518444a708c35a6308141c2a

Contents?: true

Size: 1.26 KB

Versions: 1

Compression:

Stored size: 1.26 KB

Contents

h1 All reports
span
  = link_to "New report", new_report_path, :class => "btn btn-small"

table.table
  tr
    th Name
    th For
    th Updated at
    th Last opened
    th
    th
    th

  - @custom_reports.each do |category, reports|
    tr
      td colspan="7" style="background-color: #eee; font-weight: bold; border-bottom: 1px solid #ccc;"
        = category.presence || "No category"
    - reports.each do |report|
      tr
        td
          = link_to report.name, [report], :style => "color: blue;"
          = " (deleted)" if report.deleted_at.present?
        td
          = report.administrator.try(:name) || report.administrator.try(:personal_name)
        td
          = l report.updated_at
        td
          = report.last_opened.present? ? l(report.last_opened) : ""
        td
          = link_to "CSV", report_path(report, :format => :csv), :class => "btn btn-small"
        td
          = link_to "Edit", edit_report_path(report), :class => "btn btn-small"
        td
          - if report.deleted_at.nil?
            = link_to "Archive", report_path(report, :return_path => request.path), :method => :delete, :confirm => "Really?", :class => "btn btn-small btn-warning"


= link_to "Show archived", reports_path(:show_archived => true), :class => "btn btn-default"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
custom_report-0.0.1 app/views/custom_report/reports/index.html.slim