Sha256: e311be733d541ab9cdbcfa19b1c4c951a5115ba2049831b26ed2d460accfd2d6

Contents?: true

Size: 1.46 KB

Versions: 17

Compression:

Stored size: 1.46 KB

Contents

- master_event = event.occurrence? ? event.master : event
- cssclass = "node"
- cssclass << " continuing" if event.continuing?
- cssclass << " past" if event.finished?

%tr{:class => cssclass}
  - render_region :tbody do |tbody|
    - tbody.date_cell do
      %td.datemark
        %a{:href => admin_event_url(master_event), :class => event.occurrence? ? 'occurrence' : 'master'}
          %span.month= (I18n.t 'date.abbr_month_names')[event.start_date.month]
          %span.day= event.mday_padded
    - tbody.title_cell do
      %td.event
        %h3.title
          = link_to event.title, edit_admin_event_url(master_event), :class => event.occurrence? ? 'occurrence' : 'master'
        %p.description
          = truncate(event.description, :length => 128)
    - tbody.calendar_cell do
      %td.calendar
        = link_to event.calendar.name, admin_calendar_url(event.calendar) if event.calendar
    - tbody.time_cell do
      %td.time
        = event.summarize_period
    - tbody.location_cell do
      %td.location
        - if event.event_venue
          = link_to event.event_venue.title, edit_admin_event_venue_url(event.event_venue)
    - tbody.modify_cell do
      %td.actions
        - if event.editable?
          - confirmation = "Are you sure you want to delete entirely the event '#{event.title}'"
          - confirmation << " and all its recurrences" if event.recurs?
          = link_to image('minus') + ' remove', remove_admin_event_url(event.master || event), :class => 'action'

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
radiant-event_calendar-extension-1.5.6 app/views/admin/events/_event.html.haml
radiant-event_calendar-extension-1.5.5 app/views/admin/events/_event.html.haml
radiant-event_calendar-extension-1.5.4 app/views/admin/events/_event.html.haml
radiant-event_calendar-extension-1.5.3 app/views/admin/events/_event.html.haml
radiant-event_calendar-extension-1.5.1 app/views/admin/events/_event.html.haml
radiant-event_calendar-extension-1.5.0 app/views/admin/events/_event.html.haml
radiant-event_calendar-extension-1.4.14 app/views/admin/events/_event.html.haml
radiant-event_calendar-extension-1.4.12 app/views/admin/events/_event.html.haml
radiant-event_calendar-extension-1.4.10 app/views/admin/events/_event.html.haml
radiant-event_calendar-extension-1.4.9 app/views/admin/events/_event.html.haml
radiant-event_calendar-extension-1.4.8 app/views/admin/events/_event.html.haml
radiant-event_calendar-extension-1.4.7 app/views/admin/events/_event.html.haml
radiant-event_calendar-extension-1.4.6 app/views/admin/events/_event.html.haml
radiant-event_calendar-extension-1.4.5 app/views/admin/events/_event.html.haml
radiant-event_calendar-extension-1.4.2 app/views/admin/events/_event.html.haml
radiant-event_calendar-extension-1.4.1 app/views/admin/events/_event.html.haml
radiant-event_calendar-extension-1.4.0 app/views/admin/events/_event.html.haml