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

23 lines
1.0 KiB
Plaintext
Raw Normal View History

2015-05-15 15:39:33 -07:00
.panel.panel-default.profile--panel#profile-stats
.panel-heading
%h3.panel-title Stats
2014-12-19 14:35:54 -08:00
.panel-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
2015-06-07 06:27:34 -07:00
%h6.entry-subtext= t('views.general.follower').capitalize.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)