Sha256: a8fd56100be414279267d1b81adf34cc0a80df21bb17969ae7a426ef56c906f7

Contents?: true

Size: 1.22 KB

Versions: 4

Compression:

Stored size: 1.22 KB

Contents

- event ||= false
- group ||= false

- if editable?(person)
  .menu{:data => {:for => "person_#{person.id}"}}
    %ul.actions
      %li
        = link_to t(:edit_profile), droom.edit_person_url(person), :class => 'edit', :data => {:action => "popup", :replaced => "#person_#{person.id}"}
      - if person.user
        %li
          = link_to t(:edit_account), droom.edit_user_url(person.user), :class => 'edit', :data => {:action => "popup", :replaced => "#person_#{person.id}"}
      %li
        = link_to t(:delete_person), droom.person_url(person), :method => 'delete', :class => 'delete', :data => {:action => "remove", :removed => "#person_#{person.id}", :confirm => t(:confirm_delete_person, :name => person.full_name)}

      - if event && invitation = person.invitation_to(event)
        %li
          = link_to t(:uninvite), droom.event_invitation_url(event, invitation), :method => 'delete', :class => 'delete', :data => {:action => "remove", :removed => "#person_#{person.id}"}

      - if group && membership = person.membership_of(group)
        %li
          = link_to t(:expel), droom.membership_url(membership), :method => 'delete', :class => 'delete', :data => {:action => "remove", :removed => "#person_#{person.id}"}
        

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
droom-0.4.3 app/views/droom/people/_action_menu.html.haml
droom-0.4.2 app/views/droom/people/_action_menu.html.haml
droom-0.4.1 app/views/droom/people/_action_menu.html.haml
droom-0.2.1 app/views/droom/people/_action_menu.html.haml