retrospring/app/views/tabs/_profile.haml
2022-08-02 19:13:23 +02:00

6 lines
469 B
Text

.card
.list-group.list-group-horizontal-sm.text-center
= 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(".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