From 8a6d6612165cbb0f158d931e64719add6749a97a Mon Sep 17 00:00:00 2001 From: Andreas N Date: Sat, 27 Dec 2014 18:07:25 +0100 Subject: [PATCH] added actions for user profile --- app/views/user/_actions.html.haml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/app/views/user/_actions.html.haml b/app/views/user/_actions.html.haml index 730c1e1d..cc1269ab 100644 --- a/app/views/user/_actions.html.haml +++ b/app/views/user/_actions.html.haml @@ -8,4 +8,18 @@ Unfollow - else %button#editprofile.btn.btn-primary.btn-block.profile--follow-btn{type: :button, name: 'user-action', data: { action: :follow, type: type, target: user.screen_name }} - Follow \ No newline at end of file + Follow + - unless user == current_user + .btn-group + %button.btn.btn-default.btn-block.btn-sm.dropdown-toggle{data: { toggle: :dropdown }, aria: { expanded: :false }} + Actions + %span.caret + %ul.dropdown-menu.dropdown-menu-right + %li + %a{href: '#', name: 'user-action', data: { action: :block, type: type, target: user.screen_name }} + %i.fa.fa-minus-circle + Block + %li + %a{href: '#', name: 'user-action', data: { action: :report, type: type, target: user.screen_name }} + %i.fa.fa-exclamation-triangle + Report \ No newline at end of file