mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-28 00:51:48 +01:00
Hide follower/followings tabs if social graph is hidden
This commit is contained in:
parent
9249ef976b
commit
51a70b67f4
1 changed files with 3 additions and 2 deletions
|
@ -2,5 +2,6 @@
|
||||||
.list-group.list-group-horizontal-sm.text-center
|
.list-group.list-group-horizontal-sm.text-center
|
||||||
= list_group_item t(".answers"), user_path(user), badge: user.answered_count
|
= list_group_item t(".answers"), user_path(user), badge: user.answered_count
|
||||||
= list_group_item t(".questions"), show_user_questions_path(user.screen_name), badge: user.asked_count
|
= list_group_item t(".questions"), show_user_questions_path(user.screen_name), badge: user.asked_count
|
||||||
= list_group_item t(".followers"), show_user_followers_path(user.screen_name), badge: user.followers.count
|
- if user == current_user || !user.privacy_hide_social_graph
|
||||||
= list_group_item t(".following"), show_user_followings_path(user.screen_name), badge: user.followings.count
|
= list_group_item t(".followers"), show_user_followers_path(user.screen_name), badge: user.followers.count
|
||||||
|
= list_group_item t(".following"), show_user_followings_path(user.screen_name), badge: user.followings.count
|
||||||
|
|
Loading…
Reference in a new issue