diff options
author | Dimitrie Hoekstra <dimitrie@gitlab.com> | 2017-07-03 12:14:40 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-07-03 12:14:40 +0300 |
commit | 59f49bbfceced60ca920b7c335a153eb3f165960 (patch) | |
tree | ec81d237fe1c397774a5a249a1d1c0e03956934d /app/views/shared/members | |
parent | 8bb00c441be09de3f041614913826892f4a613c9 (diff) |
Adjust readme repo width
Diffstat (limited to 'app/views/shared/members')
-rw-r--r-- | app/views/shared/members/_access_request_buttons.html.haml | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/app/views/shared/members/_access_request_buttons.html.haml b/app/views/shared/members/_access_request_buttons.html.haml index d97fdf179d7..40224cec9e8 100644 --- a/app/views/shared/members/_access_request_buttons.html.haml +++ b/app/views/shared/members/_access_request_buttons.html.haml @@ -1,18 +1,20 @@ - model_name = source.model_name.to_s.downcase -.project-action-button.inline - - if can?(current_user, :"destroy_#{model_name}_member", source.members.find_by(user_id: current_user.id)) +- if can?(current_user, :"destroy_#{model_name}_member", source.members.find_by(user_id: current_user.id)) + .project-action-button.inline - link_text = source.is_a?(Group) ? _('Leave group') : _('Leave project') = link_to link_text, polymorphic_path([:leave, source, :members]), method: :delete, data: { confirm: leave_confirmation_message(source) }, class: 'btn' - - elsif requester = source.requesters.find_by(user_id: current_user.id) +- elsif requester = source.requesters.find_by(user_id: current_user.id) + .project-action-button.inline = link_to _('Withdraw Access Request'), polymorphic_path([:leave, source, :members]), method: :delete, data: { confirm: remove_member_message(requester) }, class: 'btn' - - elsif source.request_access_enabled && can?(current_user, :request_access, source) +- elsif source.request_access_enabled && can?(current_user, :request_access, source) + .project-action-button.inline = link_to _('Request Access'), polymorphic_path([:request_access, source, :members]), method: :post, class: 'btn' |