Small refactoring

This commit is contained in:
Paul van Tilburg 2013-07-13 22:49:41 +02:00
parent 6798d99d0b
commit 9e5ade6eb9
1 changed files with 3 additions and 3 deletions

View File

@ -1646,11 +1646,11 @@ module StopTime::Views
td { entry.date.to_date }
td { entry.start.to_formatted_s(:time_only) }
td { entry.end.to_formatted_s(:time_only)}
if entry.comment.nil? or entry.comment.empty?
td { a(:href => R(TimelineN, entry.id)){ i "None" } }
else
if entry.comment.present?
td { a entry.comment, :href => R(TimelineN, entry.id),
:title => entry.comment }
else
td { a(:href => R(TimelineN, entry.id)){ i "None" } }
end
td { "%.2fh" % entry.hours_total }
td do