Add cancel/replacement labels in All Events
Extract replacement/canceled label & notice logic to helpers Join replacement/canceled label and notice and move to top
This commit is contained in:
parent
2a0e1b5dea
commit
9c7591adcd
4 changed files with 27 additions and 19 deletions
|
|
@ -5,10 +5,7 @@
|
|||
%div{ class: "elipsis break-words event-title", |
|
||||
style: "-webkit-line-clamp: #{ event_lines(@rooms) }; height: #{ event_height(@rooms) }px;"} |
|
||||
|
||||
- if event.state == 'canceled' || event.state == 'withdrawn'
|
||||
%span.label.label-danger.schedule-label CANCELED
|
||||
- elsif event.state == 'confirmed' && (!event_schedule.intersecting_events.canceled.empty? || !event_schedule.intersecting_events.withdrawn.empty?)
|
||||
%span.label.label-info.schedule-label REPLACEMENT
|
||||
= canceled_replacement_event_label(event, event_schedule, 'schedule-label')
|
||||
|
||||
= event.title
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue