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