Skip to content

Commit

Permalink
Render better markup for Measurement#notes values containing line breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
njonsson committed Jun 27, 2009
1 parent a85cede commit 1b86993
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions app/views/measurements/_measurements.html.haml
Expand Up @@ -27,26 +27,26 @@
%tbody
- @measurements.each do |m|
%tr
%td{'align' => 'right'}<
%td{'align' => 'right', 'valign' => 'top'}<
= m.at.to_formatted_s(:html)

%td{'align' => 'center'}<
%td{'align' => 'center', 'valign' => 'top'}<
= m.approximate_time ? 'Yes' : ''

%td{'align' => 'right'}<
%td{'align' => 'right', 'valign' => 'top'}<
= m.adjusted_date.to_formatted_s(:html)

%td{'align' => 'center'}<
%td{'align' => 'center', 'valign' => 'top'}<
= m.time_slot

%td{'align' => 'right', 'class' => m.severity}<
%td{'align' => 'right', 'class' => m.severity, 'valign' => 'top'}<
= m.value.round

%td{'align' => 'right', 'class' => m.severity}<
%td{'align' => 'right', 'class' => m.severity, 'valign' => 'top'}<
= m.skew.round(1)

%td<
= m.notes
%td
= simple_format(m.notes)

= will_paginate @measurements, :inner_window => 1

Expand Down

0 comments on commit 1b86993

Please sign in to comment.