[feat]Change border color of event
This commit is contained in:
parent
29b7f057c7
commit
03b12eafb0
2 changed files with 3 additions and 0 deletions
|
|
@ -33,6 +33,7 @@ class FullCalendarFormatter
|
|||
end: event_schedule.end_time,
|
||||
resourceId: event_schedule.room.guid,
|
||||
url: url,
|
||||
borderColor: event_type_color,
|
||||
backgroundColor: event_type_color,
|
||||
textColor: contrast_color(event_type_color)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -49,6 +49,7 @@ describe FullCalendarFormatter do
|
|||
end: event_schedule1.end_time,
|
||||
resourceId: room1.guid,
|
||||
url: Rails.application.routes.url_helpers.conference_program_proposal_path(conference.short_title, event1.id),
|
||||
borderColor: event1.event_type.color,
|
||||
backgroundColor: event1.event_type.color,
|
||||
textColor: 'black'
|
||||
},
|
||||
|
|
@ -59,6 +60,7 @@ describe FullCalendarFormatter do
|
|||
end: event_schedule2.end_time,
|
||||
resourceId: room2.guid,
|
||||
url: Rails.application.routes.url_helpers.conference_program_proposal_path(conference.short_title, event2.id),
|
||||
borderColor: event2.event_type.color,
|
||||
backgroundColor: event2.event_type.color,
|
||||
textColor: 'white'
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue