Sha256: 563c92a92f4f9f9604b5a8f33013e206176e14bedff121b9a4b41931578f14b1

Contents?: true

Size: 1.77 KB

Versions: 1

Compression:

Stored size: 1.77 KB

Contents

= render :partial => 'events/other_page_parts'

- content_for :events do
  = render :partial => 'event', :collection => events

  - if events.length < 5 && continuing_events.any?
    - if events.any?
      %h2.listheader
        = t('continuing_events')
    = render :partial => 'event', :collection => continuing_events

  - if events.empty? && continuing_events.empty?
    - if period
      %h2
        = t('sorry_no_events')
        = render :partial => 'events/defacet'
    - else
      %h2
        = t('sorry_no_events')
        
- content_for :continuing_events do
  - if continuing_events.any? && events.length >= 5
    #continuing
      %h3
        = t('continuing_events')
      %ul
        - continuing_events.each do |event|
          %li
            - if event.url
              = link_to event.title, event.url, :class => 'title'
            - else
              = event.title
            %span.detail
              = t('runs_until')
              = event.last_day
              - if event.event_venue
                =t('at')
                = link_to event.event_venue.title, event.event_venue.url
              - elsif event.location
                = t('at')
                = event.location

- content_for :calendar do
  #calendar
    = render :partial => "events/minicalendar", :locals => {:date => period ? period.start : Date.today}

- content_for :pagination do
  = will_paginate events

- content_for :faceting do
  = render :partial => 'faceting'

- content_for :title do
  = t('pagetitle.calendar')
  
- content_for :full_title do
  = t('events').titlecase
  = list_description

- content_for :sidebar do
  = yield :calendar
  = yield :continuing_events


= yield :faceting
#events
  = yield :pagination if events.previous_page
  = yield :events
  = yield :pagination if events.next_page

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
radiant-event_calendar-extension-1.3.7 app/views/events/index.html.haml