Sha256: 615fb2559336f3c5034bf654afe1af520b77e867d92fe0046e148e1adbe54094

Contents?: true

Size: 1.2 KB

Versions: 5

Compression:

Stored size: 1.2 KB

Contents

%h3
  = event.name
  = "(#{event.metro_area.to_s})" unless event.metro_area.blank?
- if (logged_in? && (event.user.eql?(current_user) || admin?))
  .event-edit-link
    = link_to :edit.l, edit_event_path(event)
    |
    = link_to :clone.l, clone_event_path(event)
    |
    = link_to :destroy.l, event_path(event), :confirm => :are_you_sure.l, :method => :delete
%p
  %b= :when.l+":"
  =h event.time_and_date
  - unless event.location.blank?
    %br
    %b= :where.l+":"
    =h event.location
    = link_to :map_it.l, "http://www.google.com/maps?q=#{URI::encode(event.location)}", :title=>:map_it.l, :target=>'_blank'
  - if event.allow_rsvp?
    %br
    %b=:rsvps.l+':'
    - attending = event.attendees_count == 1 ? :is_attending_this_event.l : :are_attending_this_event.l
    = pluralize(event.attendees_count, 'person') + ' ' + attending
    - if event.end_time > Time.now
      - if rsvp = event.rsvped?(current_user)
        = link_to :retract_rsvp.l, [event, rsvp], :confirm => :are_you_sure.l, :method=>:delete
        = link_to :update_rsvp.l, edit_event_rsvp_url(event, rsvp)
      - else
        = link_to :rsvp.l, new_event_rsvp_url(event)
- if show_details_link
  %p= link_to :event_details.l, event_url(event)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
community_engine-2.3.2 app/views/events/_event.html.haml
community_engine-2.3.1 app/views/events/_event.html.haml
community_engine-2.3.0 app/views/events/_event.html.haml
community_engine-2.1.0 app/views/events/_event.html.haml
community_engine-2.0.0 app/views/events/_event.html.haml