Sha256: ba9121365575f32f1845320ada6aeb61396d5e280771669e89da704d3537a394

Contents?: true

Size: 622 Bytes

Versions: 4

Compression:

Stored size: 622 Bytes

Contents

- add_title @event.name
.event
  = date_book_scripts
  = event_occurrence_dates @event
  %dl.dl-horizontal
    %dt= :owner.l
    %dd= @event.owners.first.name
  %dl.dl-horizontal
    %dt= Calendar.model_name.human
    %dd= link_to @event.calendar.name, @event.calendar
  = @event.description.html_safe

  - if can? :edit, @event
    = icon_link_to 'pencil', :edit.l, date_book.edit_calendar_event_path(@event.calendar, @event), class: 'btn btn-info'
  - if can? :delete, @event
    = icon_link_to 'remove', :delete.l, [@event.calendar, @event], class: 'btn btn-danger', method: :delete, data: { confirm: :are_you_sure.l }

Version data entries

4 entries across 4 versions & 1 rubygems

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