summaryrefslogtreecommitdiff
path: root/app/views/invites
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-04-10 15:22:31 +0200
committerDouwe Maan <douwe@gitlab.com>2015-04-14 12:07:33 +0200
commit39f389ae0fff5706b73b03c8fb5fc4e3dd7da638 (patch)
tree405b1daea83883b1fc416ca21749da4282576117 /app/views/invites
parent90dafe31c4b1bb54bcd0476a873c4f5cdb62e981 (diff)
downloadgitlab-ce-39f389ae0fff5706b73b03c8fb5fc4e3dd7da638.tar.gz
Add invites controller.
Diffstat (limited to 'app/views/invites')
-rw-r--r--app/views/invites/show.html.haml28
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"