Sha256: 36ec62413596ff5662e90c8d72eacfcbefeb5ddb034b2b983978bb6898573baa

Contents?: true

Size: 1.09 KB

Versions: 27

Compression:

Stored size: 1.09 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.fa.fa-arrow-left
          |  Back
    dd.name.patient-menu-toggler
      a
        i.fa.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= hospital_identifier[1]
    - else
      dt= patient.hospital_identifier.name
      dd= patient.hospital_identifier.id
    dt= t(".nhs_number")
    dd= 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

27 entries across 27 versions & 1 rubygems

Version Path
renalware-core-2.0.44 app/views/renalware/patients/_header.html.slim
renalware-core-2.0.43 app/views/renalware/patients/_header.html.slim
renalware-core-2.0.42 app/views/renalware/patients/_header.html.slim
renalware-core-2.0.41 app/views/renalware/patients/_header.html.slim
renalware-core-2.0.40 app/views/renalware/patients/_header.html.slim
renalware-core-2.0.39 app/views/renalware/patients/_header.html.slim
renalware-core-2.0.38 app/views/renalware/patients/_header.html.slim
renalware-core-2.0.37 app/views/renalware/patients/_header.html.slim
renalware-core-2.0.36 app/views/renalware/patients/_header.html.slim
renalware-core-2.0.35 app/views/renalware/patients/_header.html.slim
renalware-core-2.0.34 app/views/renalware/patients/_header.html.slim
renalware-core-2.0.33 app/views/renalware/patients/_header.html.slim
renalware-core-2.0.32 app/views/renalware/patients/_header.html.slim
renalware-core-2.0.31 app/views/renalware/patients/_header.html.slim
renalware-core-2.0.30 app/views/renalware/patients/_header.html.slim
renalware-core-2.0.28 app/views/renalware/patients/_header.html.slim
renalware-core-2.0.27 app/views/renalware/patients/_header.html.slim
renalware-core-2.0.26 app/views/renalware/patients/_header.html.slim
renalware-core-2.0.25 app/views/renalware/patients/_header.html.slim
renalware-core-2.0.24 app/views/renalware/patients/_header.html.slim