Sha256: 036bd8556411795961120b010de97721fce1629bcd908244f151d0e8a01a8c9e

Contents?: true

Size: 473 Bytes

Versions: 5

Compression:

Stored size: 473 Bytes

Contents

- group ||= @group
- person ||= @person
- member = Droom::Membership.find_by_person_id_and_group_id(person.id, group.id)

.holder
  - if member
    %a.toggle_active{:href => group_membership_path(group, member), :"data-type" => "html", :"data-remote" => "true", :"data-method" => :delete}
      .a_member
  - else
    %a.toggle_active{:href => new_group_membership_path(group, :person_id => person.id), :"data-type" => "html", :"data-remote" => "true"}
      .not_a_member

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
droom-0.4.3 app/views/droom/memberships/_button.html.haml
droom-0.4.2 app/views/droom/memberships/_button.html.haml
droom-0.4.1 app/views/droom/memberships/_button.html.haml
droom-0.2.1 app/views/droom/memberships/_button.html.haml
droom-0.0.1 app/views/droom/memberships/_button.html.haml