Module: FestivityEventsHelper
- Includes:
- RadSocialHelper
- Included in:
- FestivityLocationsHelper
- Defined in:
- app/helpers/festivity_events_helper.rb
Instance Method Summary collapse
- #date_time_list_items(performances) ⇒ Object
- #date_time_popover(performances) ⇒ Object
- #fest_hashtag ⇒ Object
- #shared_production_url ⇒ Object
- #social_share_email_message(production) ⇒ Object
- #social_share_email_subject(production) ⇒ Object
- #social_share_message(production) ⇒ Object
Instance Method Details
#date_time_list_items(performances) ⇒ Object
8 9 10 |
# File 'app/helpers/festivity_events_helper.rb', line 8 def date_time_list_items(performances) performances.map {|perf| "<li>#{perf.start_date.strftime('%A, %B %d')}, #{perf.start_date.strftime('%I:%M %p').downcase} - #{perf.end_date.strftime('%I:%M %p').downcase}</li>" }.join("") end |
#date_time_popover(performances) ⇒ Object
4 5 6 |
# File 'app/helpers/festivity_events_helper.rb', line 4 def date_time_popover(performances) "<div><ul class='list-unstyled'>#{date_time_list_items(performances)}</ul></div>" end |
#fest_hashtag ⇒ Object
28 29 30 |
# File 'app/helpers/festivity_events_helper.rb', line 28 def fest_hashtag current_site. end |
#shared_production_url ⇒ Object
24 25 26 |
# File 'app/helpers/festivity_events_helper.rb', line 24 def shared_production_url "#{event_url}?cid=CDSocial" end |
#social_share_email_message(production) ⇒ Object
20 21 22 |
# File 'app/helpers/festivity_events_helper.rb', line 20 def (production) "I thought you might be interested in seeing #{production.title}." end |
#social_share_email_subject(production) ⇒ Object
16 17 18 |
# File 'app/helpers/festivity_events_helper.rb', line 16 def (production) "Check out #{production.title}" end |
#social_share_message(production) ⇒ Object
12 13 14 |
# File 'app/helpers/festivity_events_helper.rb', line 12 def (production) "Check out #{production.title} for #{fest_hashtag} @ #{production.locations.first.title}!" end |