mconf/mconf-web

View on GitHub
app/views/events/_list_view.html.haml

Summary

Maintainability
Test Coverage
-# locals:
-#  events (array of Event)
-#  user_events (array of Event): the events in which the user will participate

- user_events = [] unless user_events

%ul.list-texts
  - if events.count > 0
    - events.each do |event|
      - is_participant = user_events.include?(event)
      %li.list-text{:name => event.slug}
        = render "unified_event", :event => event, :is_participant => is_participant
  - else
    = t(".no_events")