Sha256: 0fb15307a5f1e9352aa2e59f7ddadf64cc523a0c39827e6031cde9df12db7f2d
Contents?: true
Size: 1.26 KB
Versions: 3
Compression:
Stored size: 1.26 KB
Contents
- person ||= @person - invitation ||= @invitation - membership ||= false - event ||= false - group ||= false - cssclass = "person" - if invitation - cssclass << " #{invitation.status}" - event = invitation.event - if membership - group = membership.group %li{:id => "person_#{person.id}", :class => cssclass, :data => {:refreshable => true, :url => droom.person_path(person, :format => :js, :invitation_id => invitation ? invitation.id : nil)} } %span.mugshot{:style => "background-image: url(#{person.image.url('icon')})"} - if invitation - if editable?(invitation) = link_to invitation.status, toggle_event_invitation_url(event, invitation), :class => "invitation #{invitation.status}", :data => {:action => "affect", :method => "put", :affected => "#person_#{person.id}"} - else %span{:class => "invitation #{invitation.status}"} %span.contact %span.name = link_to truncate(person.formal_name, :length => 14), person_url(person), :data => {:action => "popup"} = action_menulink(person, :class => "small") %br %span.note - if person.email? = mail_to truncate(person.email, :length => 20) - else = t :contact_information_unavailable = action_menu(person, :event => event, :group => group)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
droom-0.4.3 | app/views/droom/people/_person.html.haml |
droom-0.4.2 | app/views/droom/people/_person.html.haml |
droom-0.4.1 | app/views/droom/people/_person.html.haml |