Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (16 sloc) 0.435 kb
module InvitationsHelper
def creator_link(invitation)
if invitation.creator.is_a?(User)
link_to(invitation.creator.login, invitation.creator)
elsif invitation.creator.is_a?(Admin)
invitation.creator.login
else
"queue"
end
end
def invitee_link(invitation)
if invitation.invitee && invitation.invitee.is_a?(User)
link_to(invitation.invitee.login, invitation.invitee)
end
end
end
Jump to Line
Something went wrong with that request. Please try again.