Sha256: f323c4faf7b5a6c4237182b6aa3aa825993b8cd162a9442b3b321bb6b105fd70
Contents?: true
Size: 1.64 KB
Versions: 1
Compression:
Stored size: 1.64 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= Date::ABBR_MONTHNAMES[event.start_date.month] %span.day= event.start_date.mday - 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, 128) - unless event.keywords.blank? %p.keywords %strong tags: = event.keywords - 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 = event.event_venue.title - tbody.modify_cell do %td.remove - 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 "remove", admin_event_url(event.master || event), :confirm => "#{confirmation}?", :method => 'delete' - else %span.ineditable{:title => "subscribed events can't be removed here"} remove
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
radiant-event_calendar-extension-1.1.0 | app/views/admin/events/_event.html.haml |