Sha256: 7912d8f6ca311c68fac023ebb31f108f90840037e604c3896fa7e8346b075bb4

Contents?: true

Size: 1.16 KB

Versions: 93

Compression:

Stored size: 1.16 KB

Contents

- back_path ||= nil
- patient = Renalware::Patients::BannerPresenter.new(patient)

.header.patient-header
  / If screen-is-mobile-size is visible then we collapse the patient LH nav
  / (A media query rule hides and shows it, and some js looks for its visibility
  / when the browser is resized)
  #screen-is-mobile-size
  dl.full-screenable
    - if back_path
      dt
      dd.back-link
        = link_to back_path do
          i.fas.fa-arrow-left
          |  Back
    dd.name.patient-menu-toggler
      a
        i.fas.fa-ellipsis-v
        = patient
    - if patient.hospital_identifiers.all.count > 1
      - patient.hospital_identifiers.all.each do |hospital_identifier|
        dl.hospital_no
          dt= hospital_identifier[0]
          dd.selectable.clipboardable= hospital_identifier[1]
    - else
      dt= patient.hospital_identifier.name
      dd.selectable.clipboardable= patient.hospital_identifier.id
    dt= t(".nhs_number")
    dd.selectable.clipboardable= formatted_nhs_number(patient)
    dt= t(".sex")
    dd= patient.sex
    dt= t(".born_on")
    dd= "#{l(patient.born_on)} (#{patient.age}y)"
    dt= t(".modality")
    dd= patient.current_modality_description

Version data entries

93 entries across 93 versions & 1 rubygems

Version Path
renalware-core-2.0.61 app/views/renalware/patients/_header.html.slim
renalware-core-2.0.60 app/views/renalware/patients/_header.html.slim
renalware-core-2.0.58 app/views/renalware/patients/_header.html.slim
renalware-core-2.0.57 app/views/renalware/patients/_header.html.slim
renalware-core-2.0.56 app/views/renalware/patients/_header.html.slim
renalware-core-2.0.55 app/views/renalware/patients/_header.html.slim
renalware-core-2.0.54 app/views/renalware/patients/_header.html.slim
renalware-core-2.0.53 app/views/renalware/patients/_header.html.slim
renalware-core-2.0.52 app/views/renalware/patients/_header.html.slim
renalware-core-2.0.51 app/views/renalware/patients/_header.html.slim
renalware-core-2.0.50 app/views/renalware/patients/_header.html.slim
renalware-core-2.0.48 app/views/renalware/patients/_header.html.slim
renalware-core-2.0.47 app/views/renalware/patients/_header.html.slim