retrospring/app/views/user/_stats.html.haml
Andreas Nedbal 0afff3f84d Adjustments and smaller fixes
- Fixed initially selected Discover tabs being empty
- Removed spacing classes from inbox templates
- Fixed feed layout and sidebar display
- Adjust some profile layout nits
2020-04-26 16:25:54 +02:00

21 lines
1 KiB
Text

.card.profile--panel#profile-stats
.card-header Stats
.card-body
.row
.col-md-6.col-sm-6.col-xs-6
%a{href: show_user_followers_path(@user.screen_name)}
%h4.entry-text#follower-count= @user.follower_count
%h6.entry-subtext= t('views.general.follower').pluralize(@user.follower_count)
.col-md-6.col-sm-6.col-xs-6
%a{href: show_user_friends_path(@user.screen_name)}
%h4.entry-text#friend-count= @user.friend_count
%h6.entry-subtext= t('views.general.following')
.row
.col-md-6.col-sm-6.col-xs-6
%a{href: show_user_questions_path(@user.screen_name)}
%h4.entry-text#asked-count= @user.asked_count
%h6.entry-subtext= t('views.general.question').pluralize(@user.asked_count)
.col-md-6.col-sm-6.col-xs-6
%a{href: show_user_profile_path(@user.screen_name)}
%h4.entry-text#answered-count= @user.answered_count
%h6.entry-subtext= t('views.general.answer').pluralize(@user.answered_count)