diff options
Diffstat (limited to 'app/views/invites/show.html.haml')
-rw-r--r-- | app/views/invites/show.html.haml | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/app/views/invites/show.html.haml b/app/views/invites/show.html.haml index 2fd4859c1c6..66d799d39c7 100644 --- a/app/views/invites/show.html.haml +++ b/app/views/invites/show.html.haml @@ -1,30 +1,29 @@ -- page_title "Invitation" -%h3.page-title Invitation +- page_title "邀请" +%h3.page-title 邀请 %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}. + ,身份是 #{@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. + 注意,你已经是该#{@member.source.is_a?(Group) ? "群组" : "项目"}的成员。 + 请使用另一个账号登入再接受邀请。 - else .actions - = link_to "Accept invitation", accept_invite_url(@token), method: :post, class: "btn btn-success" - = link_to "Decline", decline_invite_url(@token), method: :post, class: "btn btn-danger prepend-left-10" + = link_to "接受邀请", accept_invite_url(@token), method: :post, class: "btn btn-success" + = link_to "拒绝", decline_invite_url(@token), method: :post, class: "btn btn-danger prepend-left-10" |