Add surveys; custom generated by admins

Available during registration or after conference

Co-authored-by: Shyukri <shshyukriev@suse.com>
Co-authored-by: Henne <hvogel@opensuse.org>
Co-authored-by: Moises <mdeniz@suse.com>
This commit is contained in:
Stella Rouzi 2016-06-28 18:16:06 +03:00
parent 4e742d170f
commit 9f3c0eff5d
43 changed files with 701 additions and 17 deletions

View file

@ -51,4 +51,6 @@
- else
= link_to 'Unsubscribe', conference_subscriptions_path(conference.short_title), method: :delete, class: 'btn btn-default'
- if current_user && current_user.physical_tickets.by_conference(conference).any?
= link_to "My Tickets", conference_physical_tickets_path(conference.short_title), class: 'btn btn-default'
= link_to 'My Tickets', conference_physical_tickets_path(conference.short_title), class: 'btn btn-default'
- surveys = conference.surveys.after_conference.select(&:active?)
= link_to 'Surveys', conference_surveys_path(conference.short_title), class: 'btn btn-default' if surveys.any?