Sha256: c93f2b468313ff68209d621a6c101635a48664ffd11d1bb54575c8633946ee22

Contents?: true

Size: 972 Bytes

Versions: 4

Compression:

Stored size: 972 Bytes

Contents

module FestivityEventsHelper
  include RadSocialHelper

  def date_time_popover(performances)
    "<div><ul class='list-unstyled'>#{date_time_list_items(performances)}</ul></div>"
  end

  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

  def social_share_message(production)
    "Check out #{production.title} for #{fest_hashtag} @ #{production.locations.first.title}!"
  end

  def social_share_email_subject(production)
    "Check out #{production.title}"
  end

  def social_share_email_message(production)
    "I thought you might be interested in seeing #{production.title}."
  end

  def shared_production_url
    "#{event_url}?cid=CDSocial"
  end

  def fest_hashtag
    if @event.site_id == 3
      "#TRAF"
    elsif @event.site_id == 2
      "#PGHkids"
    end

  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
trusty-festivity-extension-2.5.3 app/helpers/festivity_events_helper.rb
trusty-festivity-extension-2.5.2 app/helpers/festivity_events_helper.rb
trusty-festivity-extension-2.5.1 app/helpers/festivity_events_helper.rb
trusty-festivity-extension-2.5.0 app/helpers/festivity_events_helper.rb