mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-02-01 11:29:09 +01:00
10 lines
No EOL
502 B
Text
10 lines
No EOL
502 B
Text
- if user_signed_in?
|
|
- if @user == current_user
|
|
%a.btn.btn-default.btn-block{href: edit_user_profile_path} Edit profile
|
|
- else
|
|
- if current_user.following? @user
|
|
%button#editprofile.btn.btn-default.btn-block{type: :button, name: 'user-action', data: { action: :unfollow, target: @user.screen_name }}
|
|
Unfollow
|
|
- else
|
|
%button#editprofile.btn.btn-primary.btn-block{type: :button, name: 'user-action', data: { action: :follow, target: @user.screen_name }}
|
|
Follow |