Sha256: 8db65e84d9ec0bf37318cd64057c73e2e93db6059cbddc257d455c1206428407

Contents?: true

Size: 1.21 KB

Versions: 8

Compression:

Stored size: 1.21 KB

Contents

- if current_user.admin?
  .table-buttons
    .buttons-left
      = link_to "Add Existing Assessment", new_admin_assessment_path, class: "add"
    .buttons-right
      = link_to "Results Screen", admin_assessments_path(report: "screen_results", format: :csv), class: "download"
      = link_to "Domain Results", admin_assessments_path(report: "domain_results", format: :csv), class: "download"
      = link_to "Item Results", admin_assessments_path(report: "item_results", format: :csv), class: "download"
.clear
p.helptext All timestamps are in UTC time zone

table.results-table
  thead
    tr
      th = link_to "Study ID", sortable_link_url(report, "study_id"), id: "col-study-id", class: "sortable #{sortable_link_class(report, "study_id")}"
      - events.each.with_index do |event, index|
        th = link_to event.titleize, sortable_link_url(report, "event_#{index}"), id: "col-baseline", class: "sortable #{sortable_link_class(report, "event_#{index}")}"

  tbody
    - report.groups.each do |group|
      tr
        td = link_to group.study_id, edit_admin_assessment_path(group.study_id)

        - group.each do |assessments|
          td = render collection: assessments, partial: "study_engine/admin/assessments/assessment"

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
study_engine-0.3.1 app/views/study_engine/admin/assessments/index.html.slim
study_engine-0.3.0 app/views/study_engine/admin/assessments/index.html.slim
study_engine-0.2.2 app/views/study_engine/admin/assessments/index.html.slim
study_engine-0.2.1 app/views/study_engine/admin/assessments/index.html.slim
study_engine-0.2.0 app/views/study_engine/admin/assessments/index.html.slim
study_engine-0.1.1 app/views/study_engine/admin/assessments/index.html.slim
study_engine-0.1.0 app/views/study_engine/admin/assessments/index.html.slim
study_engine-0.0.2 app/views/study_engine/admin/assessments/index.html.slim