Sha256: 4a8b7f568884b905ac3a004d92cfc0594030beffc99f2341c994f02eb2b96d9c

Contents?: true

Size: 1016 Bytes

Versions: 33

Compression:

Stored size: 1016 Bytes

Contents

/ Here we build a table of results grouped by date, but in contrast to
/ historical results, we transpose the cols and rows so we have
/ dates along the top and OBX codes down the left.
table#observations.column_hover
  / colgroups are required for js highlighting of column on hover - see table.js
  - (table.rows.size + 1).times do
    <colgroup></colgroup>
  thead
    tr
      th Year
      - table.rows.each do |row|
        th.date= row.observed_on.year
  thead
    tr
      th Date
      - table.rows.each do |row|
        th= row.observed_on.strftime("%d/%m")
  tbody
    - table.observation_descriptions.each do |desc|
      - code = desc.code
      tr
        th(title=desc.name)= code
        - table.rows.each do |row|
          - if row.comment_for(code).present?
            td(class=code.downcase data-balloon=row.comment_for(code) data-balloon-pos="up")
              .triangle-top-right
              = row.result_for(code)
          - else
            td(class=code.downcase)= row.result_for(code)

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
renalware-core-2.0.111 app/views/renalware/pathology/recent_observation_results/_table.html.slim
renalware-core-2.0.110 app/views/renalware/pathology/recent_observation_results/_table.html.slim
renalware-core-2.0.109 app/views/renalware/pathology/recent_observation_results/_table.html.slim
renalware-core-2.0.108 app/views/renalware/pathology/recent_observation_results/_table.html.slim
renalware-core-2.0.106 app/views/renalware/pathology/recent_observation_results/_table.html.slim
renalware-core-2.0.105 app/views/renalware/pathology/recent_observation_results/_table.html.slim
renalware-core-2.0.104 app/views/renalware/pathology/recent_observation_results/_table.html.slim
renalware-core-2.0.103 app/views/renalware/pathology/recent_observation_results/_table.html.slim
renalware-core-2.0.102 app/views/renalware/pathology/recent_observation_results/_table.html.slim
renalware-core-2.0.101 app/views/renalware/pathology/recent_observation_results/_table.html.slim
renalware-core-2.0.100 app/views/renalware/pathology/recent_observation_results/_table.html.slim
renalware-core-2.0.99 app/views/renalware/pathology/recent_observation_results/_table.html.slim
renalware-core-2.0.98 app/views/renalware/pathology/recent_observation_results/_table.html.slim
renalware-core-2.0.97 app/views/renalware/pathology/recent_observation_results/_table.html.slim
renalware-core-2.0.96 app/views/renalware/pathology/recent_observation_results/_table.html.slim
renalware-core-2.0.95 app/views/renalware/pathology/recent_observation_results/_table.html.slim
renalware-core-2.0.94 app/views/renalware/pathology/recent_observation_results/_table.html.slim
renalware-core-2.0.93 app/views/renalware/pathology/recent_observation_results/_table.html.slim
renalware-core-2.0.92 app/views/renalware/pathology/recent_observation_results/_table.html.slim
renalware-core-2.0.91 app/views/renalware/pathology/recent_observation_results/_table.html.slim