Show the individual User schedule

Show the current user favourites events for both schedule and all events.

Unsed css removed.
This commit is contained in:
Ana 2016-08-13 02:26:02 +02:00 committed by Henne Vogelsang
parent c6906675f9
commit 059b5cbf84
8 changed files with 40 additions and 23 deletions

View file

@ -7,6 +7,12 @@
= canceled_replacement_event_label(event, event_schedule, 'schedule-label')
- if current_user
= link_to('#', onClick: 'starClicked();') do
%span#star{ class: "fa fa-lg #{ event.favourite_users.exists?(current_user.id) ? 'fa-star' : 'fa-star-o' }", |
"aria-hidden" =>"true", |
"data-url" => conference_program_proposal_path(@conference.short_title, event.id), |
"data-user" => current_user.id }
= event.title
- if current_user