Sha256: 584d9d48b11dd2ca05ac66a2afcd674139eef929db7cb4404da19103b59cf424

Contents?: true

Size: 1.52 KB

Versions: 3

Compression:

Stored size: 1.52 KB

Contents

- message = receipt.message
- patient = Renalware::PatientPresenter.new(message.patient)

tr(class="#{ "urgent" if message.urgent?}" id=message.html_identifier)
  td
    = pluralize(message.age_in_days, "day")
  td= message.author
  td= l(message.sent_at)
  td= default_patient_link(patient)
  td= patient.nhs_number
  td= patient.hospital_identifier
  td.col-width-medium-with-ellipsis= message.subject
  td
    = link_to "Toggle",
              "##{message.html_preview_identifier}",
              data: { behaviour: "toggler" },
              class: :right
= content_tag(:tr,
              id: "#{message.html_preview_identifier}",
              style: "display: none",
              class: "#{ 'urgent' if message.urgent?}")
  td(colspan=6)
    .message-preview
      .subject= message.subject
      .body= message.body
  td.nowrap(colspan=2)
    ul.actions
      li= link_to "Keep as unread",
                  "#message-preview-#{message.id}",
                  data: { behaviour: "toggler" },
                  class: "button secondary keep-as-unread"

      li= render partial: "renalware/messaging/internal/messages/send_reply_link",
                 locals: { patient: message.patient,
                           link_text: "Reply",
                           replying_to_message_id: message.id }

      li= link_to(mark_as_read_messaging_internal_message_receipt_path(message, receipt),
                  class: "button mark-as-read",
                  method: :patch,
                  remote: true) do
        i.fa.fa-check
        | Mark as read

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.rc3 app/views/renalware/messaging/internal/receipts/_receipt.html.slim
renalware-core-2.0.0.pre.rc1 app/views/renalware/messaging/internal/receipts/_receipt.html.slim
renalware-core-2.0.0.pre.beta12 app/views/renalware/messaging/internal/receipts/_receipt.html.slim