Sha256: 7b80845749350e05445805746b6563c5da7bddcda11aef931fa62cdf3cd826ab

Contents?: true

Size: 938 Bytes

Versions: 5

Compression:

Stored size: 938 Bytes

Contents

%dl.dl-horizontal
  - if @occurrence.present?
    %dt= :occurs_on.l
    %dd= render_date_range @occurrence.start_date, @occurrence.end_date, @event.schedule.all_day, @event.schedule.duration
  - if event.previous_occurrence(@occurrence).present?
    %dt= :previous_occurrence.l
    %dd= link_to render_date_range(event.previous_occurrence(@occurrence).start_date, event.previous_occurrence(@occurrence).end_date, event.schedule.all_day, event.schedule.duration), date_book.calendar_event_path(event.calendar, event, occurrence_id: event.previous_occurrence(@occurrence).id)
  - if event.next_occurrence(@occurrence).present?
    %dt= :next_occurrence.l
    %dd= link_to render_date_range(event.next_occurrence(@occurrence).start_date, event.next_occurrence(@occurrence).end_date, event.schedule.all_day, event.schedule.duration), date_book.calendar_event_path(event.calendar, event, occurrence_id: event.next_occurrence(@occurrence).id)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
date_book-0.0.6 app/views/date_book/events/_occurrence_dates.html.haml
date_book-0.0.5 app/views/date_book/events/_occurrence_dates.html.haml
date_book-0.0.3 app/views/date_book/events/_occurrence_dates.html.haml
date_book-0.0.2 app/views/date_book/events/_occurrence_dates.html.haml
date_book-0.0.1 app/views/date_book/events/_occurrence_dates.html.haml