Sha256: dd5d21ba322716775e9316d4973984f366263bd6d49c854cf40d3a2b1ddb3818

Contents?: true

Size: 719 Bytes

Versions: 4

Compression:

Stored size: 719 Bytes

Contents

.divider
#events{:data => {:refreshable => true, :url => droom.events_url(:limit => 8)}}
  - calendar = Droom::Calendar.find_or_create_by_name('main')
  - events = calendar.events.future_and_current.order('start ASC').limit(8)

  %h2.section
    = link_to t(:future_events), main_app.calendar_url
    %span.action
      = link_to t(:add_event), droom.new_event_url, :class => "add minimal", :data => {:action => "popup", :affected => "#events"}

  - if events.any?
    = render :partial => "droom/events/event", :collection => events, :locals => {:brief => true}
  - else
    = t :no_future_events
  
  - if calendar.events.future_and_current.count > 8
    %p
      = link_to t(:more_in_calendar), main_app.calendar_url

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
droom-0.4.3 app/views/droom/dashboard/_future_events.html.haml
droom-0.4.2 app/views/droom/dashboard/_future_events.html.haml
droom-0.4.1 app/views/droom/dashboard/_future_events.html.haml
droom-0.2.1 app/views/droom/dashboard/_future_events.html.haml