Sha256: a8f79f26515a3f1d321bfbe3a3bd53ea83affb8ae5d5e7eabbfcf249924059ac

Contents?: true

Size: 1.56 KB

Versions: 4

Compression:

Stored size: 1.56 KB

Contents

- no_date ||= false
- @seen_events ||= []

- if event
  - event_master_id = event.master_id || event.id
  - repeating = true if @seen_events[event_master_id]
  - @seen_events[event_master_id] = true;
  - cssclasses = ['event']
  - cssclasses << 'repeat' if repeating
  - cssclasses << event.calendar.slug if event.calendar


  %div{:class => cssclasses.join(' ')}
    - unless no_date
      .datemark
        .mon= event.short_month
        .dom= event.mday_padded
    .summary
      %h2
        - if event.url
          = link_to event.title, event.url, :class => 'title'
        - else
          = event.title
        = link_to t('event_calendar_extension.download_event'), event_url(event, :format => :ics), :class => 'ical download'
        - unless event.facebook_id.blank?
          = link_to t('event_calendar_extension.view_on_facebook'), event.facebook_url, :class => 'facebook event'
        = render :partial => 'events/keywords', :locals => {:event => event}
          
      %p.practicalities
        %span.date
          = event.summarize_start
        - if event.event_venue
          %span.location
            = t('event_page.at')
            - if event.event_venue.url
              = link_to event.event_venue.title, event.event_venue.url, :class => 'location'
            - else
              = event.event_venue.title
            - if event.event_venue.address
              %br
              = event.event_venue.address
        - elsif event.location
          %span.location
            = event.location
      - unless repeating
        = event.description_paragraph
    

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
radiant-event_calendar-extension-1.5.6 app/views/events/_event.html.haml
radiant-event_calendar-extension-1.5.5 app/views/events/_event.html.haml
radiant-event_calendar-extension-1.5.4 app/views/events/_event.html.haml
radiant-event_calendar-extension-1.5.3 app/views/events/_event.html.haml