Sha256: c34fd90eafe0cee13ecb20101e09e0531e9a48185c57ed7d62130fa58e8e28b9
Contents?: true
Size: 1.8 KB
Versions: 3
Compression:
Stored size: 1.8 KB
Contents
- master_event = event.occurrence? ? event.master : event - cssclass = "node level-1" - cssclass << " continuing" if event.continuing? %tr{:class => cssclass} - render_region :tbody do |tbody| - tbody.date_cell do %td.datemark - if event.editable? %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 - else %span.month= Date::ABBR_MONTHNAMES[event.start_date.month] %span.day= event.start_date.mday - tbody.title_cell do %td.event %h3.title - if event.editable? = link_to event.title, edit_admin_event_url(master_event), :class => event.occurrence? ? 'occurrence' : 'master' - else = event.title %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 = event.location - 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
3 entries across 3 versions & 1 rubygems