Sha256: 5fe64d4d6f62549330da9490b7a7a04b824fbfd934ac76374bd4dcb3c3ad3b8b

Contents?: true

Size: 305 Bytes

Versions: 6

Compression:

Stored size: 305 Bytes

Contents

module EventsHelper
  def event_class(day)
    [].tap { |css|
      css <<
        if day < Date.today
          "past"
        elsif day == Date.today
          "today"
        elsif day.month != Date.today.month
          "next_month"
        end

      #TODO: event ocurrence
    }.join(" ")
  end
end

Version data entries

6 entries across 6 versions & 4 rubygems

Version Path
vkhater-social_stream-0.16.3.3 events/app/helpers/events_helper.rb
vkhater-social_stream-events-0.3.2 app/helpers/events_helper.rb
social_stream-0.16.3 events/app/helpers/events_helper.rb
social_stream-events-0.3.2 app/helpers/events_helper.rb
social_stream-0.16.2 events/app/helpers/events_helper.rb
social_stream-events-0.3.1 app/helpers/events_helper.rb