Sha256: ae140b8dd6a7a43e81f09c82ae4fba326df7decf9b757b3308185687ee736f67

Contents?: true

Size: 1.43 KB

Versions: 2

Compression:

Stored size: 1.43 KB

Contents

.summary-part--messages
  article.messages
    header
      h2
        = link_to formatted_title(t(".title")), renalware.patient_messaging_internal_messages_path(patient)
      ul
        li= link_to t("btn.view_all"), renalware.patient_messaging_internal_messages_path(patient), class: "button"

    - if messages.any?
      table.toggleable.easy-read data-controller="toggle"
        thead
          tr
            th.togglers.noprint= rows_toggler
            th.col-width-tiny
            th.col-width-date-time= t(".thead.date_")
            th.col-width-medium= t(".thead.author")
            th.col-width-medium= t(".thead.subject")
            th
              ' Body
              i(style="font-weight: normal") - toggle to see complete message
        - messages.each do |message|
          tbody
            tr
              td= row_toggler
              - if message.urgent?
                td
                  span.rounded.bg-orange-300.px-2 urgent
              - else
                td
              td= l(message.created_at)
              td= message.author
              td.with-ellipsis= message.subject
              td.with-ellipsis= message.body
            tr
              td
              td
              td(colspan=4)
                p
                  b
                    ' Sent to:
                  span= message.recipients.map(&:to_s).join(" & ")
                p= message.body

    - else
      p.empty-section No messages

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
renalware-core-2.1.1 app/components/renalware/patients/messages_component.html.slim
renalware-core-2.1.0 app/components/renalware/patients/messages_component.html.slim