diff options
author | Annabel Dunstone Gray <annabel.dunstone@gmail.com> | 2016-12-16 18:46:24 +0300 |
---|---|---|
committer | Annabel Dunstone Gray <annabel.dunstone@gmail.com> | 2016-12-17 22:22:19 +0300 |
commit | 2f87703cfff38a8c88f44310031c35dbe7f017ff (patch) | |
tree | ce5195d18e2a3573c673f6ebc3b0e15ec7e1f9c2 /app/views/shared/members | |
parent | 8c2297f00b96cafea2adf7918086b3ef5fd049fc (diff) |
Move all project buttons to header
Diffstat (limited to 'app/views/shared/members')
-rw-r--r-- | app/views/shared/members/_access_request_buttons.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/shared/members/_access_request_buttons.html.haml b/app/views/shared/members/_access_request_buttons.html.haml index e9b9ed554c1..fb795ad1c72 100644 --- a/app/views/shared/members/_access_request_buttons.html.haml +++ b/app/views/shared/members/_access_request_buttons.html.haml @@ -1,6 +1,6 @@ - model_name = source.model_name.to_s.downcase -.access-button.inline.hidden-sm.hidden-xs +.project-action-button.inline - if can?(current_user, :"destroy_#{model_name}_member", source.members.find_by(user_id: current_user.id)) = link_to "Leave #{model_name}", polymorphic_path([:leave, source, :members]), method: :delete, |