Commit c61ae58bf9c4eef90120af865fbad937c5b10771
Committed by
Antonio Terceiro
1 parent
9c951c50
Exists in
stable-spb-1.4
and in
9 other branches
event: Fix past/future class on events
Events from the past was being displayed with "future" class and vice-versa (cherry picked from commit 36f1b7bc55ad7d77c2badfadedb184d95d76bbac)
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
plugins/event/views/blocks/event.html.erb
| @@ -9,7 +9,7 @@ | @@ -9,7 +9,7 @@ | ||
| 9 | :locals => { | 9 | :locals => { |
| 10 | :event => event, | 10 | :event => event, |
| 11 | :block => block, | 11 | :block => block, |
| 12 | - :time_class => days_left < 0 ? 'future' : 'past', | 12 | + :time_class => days_left < 0 ? 'past' : 'future', |
| 13 | :time_left_str => block.human_time_left(days_left) | 13 | :time_left_str => block.human_time_left(days_left) |
| 14 | } | 14 | } |
| 15 | ) | 15 | ) |