-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored a lot of the memberships controller and the pending member…
…ship messages.
- Loading branch information
Aimee Daniells
committed
Apr 18, 2009
1 parent
ae8d78e
commit dfb30ea
Showing
10 changed files
with
120 additions
and
203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
- session[:person].outstanding_memberships.each do |membership| | ||
- if membership.invited? | ||
%p | ||
You have been invited to join | ||
= link_to_team(membership.team, 'picturelink') | ||
= link_to('Accept', accept_membership_path(membership), :method => :put, :class => 'action') | ||
| | ||
= link_to('Decline', membership_path(membership), :method => :delete, :class => 'action') | ||
|
||
- if membership.requested? | ||
%p | ||
Your request to join | ||
= link_to_team(membership.team, 'picturelink') | ||
is pending | ||
|
||
- session[:person].team_outstanding_memberships.each do |membership| | ||
- if membership.invited? | ||
%p | ||
= link_to_person(membership.person, 'picturelink') | ||
has not yet joined | ||
= link_to_team(membership.team, 'picturelink') | ||
|
||
- if membership.requested? | ||
%p | ||
= link_to_person(membership.person, 'picturelink') | ||
wants to join | ||
= link_to_team(membership.team, 'picturelink') | ||
= link_to('Accept', accept_membership_path(membership), :method => :put, :class => 'action') | ||
| | ||
= link_to('Decline', membership_path(membership), :method => :delete, :class => 'action') |
Oops, something went wrong.