2014-11-30 06:28:58 -08:00
|
|
|
- if user_signed_in?
|
2014-12-08 08:10:09 -08:00
|
|
|
- if user == current_user
|
2014-11-30 06:28:58 -08:00
|
|
|
%a.btn.btn-default.btn-block{href: edit_user_profile_path} Edit profile
|
|
|
|
- else
|
2014-12-08 08:10:09 -08:00
|
|
|
- if current_user.following? user
|
|
|
|
%button#editprofile.btn.btn-default.btn-block{type: :button, name: 'user-action', data: { action: :unfollow, target: user.screen_name }}
|
2014-11-30 06:28:58 -08:00
|
|
|
Unfollow
|
|
|
|
- else
|
2014-12-08 08:10:09 -08:00
|
|
|
%button#editprofile.btn.btn-primary.btn-block{type: :button, name: 'user-action', data: { action: :follow, target: user.screen_name }}
|
2014-11-30 06:28:58 -08:00
|
|
|
Follow
|