aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/shared/sidebar/_users.html.haml
diff options
context:
space:
mode:
authorre4k <re4k@re4k.info>2013-05-06 19:54:57 +0900
committerre4k <re4k@re4k.info>2013-05-06 19:54:57 +0900
commit0e074db0d1b4e47ebfe1cbdb6745cbb60102f03a (patch)
treebcc61afcc12c80dcb0ab28b0230488a1bd27d30a /app/views/shared/sidebar/_users.html.haml
parent4a68cb6608df1ee4f940e2a14c87d7467bcde9ea (diff)
downloadaclog-0e074db0d1b4e47ebfe1cbdb6745cbb60102f03a.tar.gz
update stats
Diffstat (limited to 'app/views/shared/sidebar/_users.html.haml')
-rw-r--r--app/views/shared/sidebar/_users.html.haml8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/views/shared/sidebar/_users.html.haml b/app/views/shared/sidebar/_users.html.haml
index b0e3277..a23445a 100644
--- a/app/views/shared/sidebar/_users.html.haml
+++ b/app/views/shared/sidebar/_users.html.haml
@@ -7,16 +7,16 @@
%ul.records
%li
%span favorited
- %span.data= @user.stats.favorited_count
+ %span.data= @user.stats.favorited_count_str
%li
%span retweeted
- %span.data= @user.stats.retweeted_count
+ %span.data= @user.stats.retweeted_count_str
%li
%span avg. fav
- %span.data= ((@user.stats.favorited_count + 0.0) / @user.stats.tweets_count).round(2)
+ %span.data= @user.stats.average_favorited_count.round(2)
%li
%span joined
- %span.data= format_days_ago(@user.account.created_at)
+ %span.data= @user.stats.since_join.to_s + "d ago"
- else
.alert.alert-info
= "@#{@user.screen_name} has never signed in to aclog"