added actions for user profile

This commit is contained in:
Andreas N 2014-12-27 18:07:25 +01:00
parent 2e048d9472
commit 8a6d661216
1 changed files with 15 additions and 1 deletions

View File

@ -9,3 +9,17 @@
- else - 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 }} %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 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