diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-04-10 16:22:31 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-04-14 13:07:33 +0300 |
commit | 39f389ae0fff5706b73b03c8fb5fc4e3dd7da638 (patch) | |
tree | 405b1daea83883b1fc416ca21749da4282576117 /app/views/invites | |
parent | 90dafe31c4b1bb54bcd0476a873c4f5cdb62e981 (diff) |
Add invites controller.
Diffstat (limited to 'app/views/invites')
-rw-r--r-- | app/views/invites/show.html.haml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/app/views/invites/show.html.haml b/app/views/invites/show.html.haml new file mode 100644 index 00000000000..e2657ac6df2 --- /dev/null +++ b/app/views/invites/show.html.haml @@ -0,0 +1,28 @@ +%h3.page-title Invitation + +%p + You have been invited + - if inviter = @member.created_by + by + = link_to inviter.name, user_url(inviter) + to join + - case @member.source + - when Project + - project = @member.source + project + %strong + = link_to project.name_with_namespace, namespace_project_url(project.namespace, project) + - when Group + - group = @member.source + group + %strong + = link_to group.name, group_url(group) + as #{@member.human_access}. + +- if @member.source.users.include?(current_user) + %p + However, you are already a member of this #{@member.source.is_a?(Group) ? "group" : "project"}. + Sign in using a different account to accept the invitation. +- else + .actions + = link_to "Accept invitation", accept_invite_url(@token), method: :post, class: "btn btn-success" |