Sha256: 2b9689495d76765f7849cee367789f8eb881e06c0f1d4a0e8aa8d47be476671f

Contents?: true

Size: 1.25 KB

Versions: 1

Compression:

Stored size: 1.25 KB

Contents

h1 All reports
p = link_to "New report", new_report_path, class: "btn btn-sm btn-success"

table.table.table-bordered.table-striped
  tr
    th Name
    th For
    th Updated at
    th Last opened
    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.text-right
          => link_to "CSV", report_path(report, format: :csv), class: "btn btn-sm btn-info"
          => link_to "Edit", edit_report_path(report), class: "btn btn-sm btn-info"
          - if report.deleted_at.nil?
            = link_to "Archive", report_path(report, return_path: request.path), method: :delete, confirm: "Really?", class: "btn btn-sm btn-warning"


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

Version data entries

1 entries across 1 versions & 1 rubygems

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