Sha256: f264b2d2fd3144822659eb1f163bf184fdde03bfc1c85c9e0629f230f04c0a3f

Contents?: true

Size: 449 Bytes

Versions: 1

Compression:

Stored size: 449 Bytes

Contents

- event_for_date = calendar.events_on(date)

%li.date{ :class => hightlight_classes(date, calendar).join(' '), :data => { :date => date }}
  .header
    %span{ :class => wday_class_for(date) }= date.strftime('%-d')
  - if event_for_date.present?
    %ul.events
      - event_for_date.each do |event|
        %li{ :class  => "event #{event.class.to_s.underscore}" }
          = render "event_calendar/#{event.class.to_s.underscore}", :event => event

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
event_cal-1.0 app/views/event_calendar/_date.html.haml