Retrospring/app/views/user/_stats.html.haml

23 lines
1.0 KiB
Plaintext
Raw Normal View History

2020-04-19 14:09:41 -07:00
.card.card-default.profile--panel#profile-stats
.card-header
%h3.card-title Stats
.card-body
.row
2014-12-19 14:35:54 -08:00
%a{href: show_user_followers_path(@user.screen_name)}
.col-md-6.col-sm-6.col-xs-6
2014-12-19 14:35:54 -08:00
%h4.entry-text#follower-count= @user.follower_count
%h6.entry-subtext= t('views.general.follower').pluralize(@user.follower_count)
2014-12-19 14:35:54 -08:00
%a{href: show_user_friends_path(@user.screen_name)}
.col-md-6.col-sm-6.col-xs-6
2014-12-19 14:35:54 -08:00
%h4.entry-text#friend-count= @user.friend_count
%h6.entry-subtext= t('views.general.following')
2014-12-19 14:38:09 -08:00
.row
%a{href: show_user_questions_path(@user.screen_name)}
.col-md-6.col-sm-6.col-xs-6
%h4.entry-text#asked-count= @user.asked_count
%h6.entry-subtext= t('views.general.question').pluralize(@user.asked_count)
2014-12-19 14:38:09 -08:00
%a{href: show_user_profile_path(@user.screen_name)}
.col-md-6.col-sm-6.col-xs-6
%h4.entry-text#answered-count= @user.answered_count
2015-06-07 06:25:39 -07:00
%h6.entry-subtext= t('views.general.answer').pluralize(@user.answered_count)