1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
.sidebar
.avatar
= link_to_user_page @user.screen_name do
= image_tag @user.profile_image_url_original, :alt => @user.screen_name, :width => 64, :height => 64, :class => "icon img-rounded"
.screen_name= link_to @user.screen_name, twitter_user_url(@user.screen_name)
- if @user.registered?
%ul.records
%li
%span favorited
%span.data= @user.stats[:favorited_count]
%li
%span retweeted
%span.data= @user.stats[:retweeted_count]
%li
%span avg. fav
%span.data= ((@user.stats[:favorited_count] + 0.0) / @user.stats[:tweets_count]).round(2)
%li
%span joined
%span.data= format_date_ago(@user.created_at)
- else
.alert.alert-info
= "@#{@user.screen_name} has never signed in to aclog"
.user_nav
%ul.nav.nav-tabs.nav-stacked
- if @user.registered?
%li
= link_to "info", :controller => "users", :action => "info", :screen_name => @user.screen_name
%li
= link_to "best", :controller => "users", :action => "best", :screen_name => @user.screen_name
%li
= link_to "timeline", :controller => "users", :action => "timeline", :screen_name => @user.screen_name
%li
= link_to "discovered", :controller => "users", :action => "discovered", :screen_name => @user.screen_name
%li
= link_to "favorited by", :controller => "users", :action => "favorited_by", :screen_name => @user.screen_name
%li
= link_to "retweted by", :controller => "users", :action => "retweeted_by", :screen_name => @user.screen_name
%li
= link_to "given favorites", :controller => "users", :action => "given_favorites_to", :screen_name => @user.screen_name
%li
= link_to "given retweets", :controller => "users", :action => "given_retweets_to", :screen_name => @user.screen_name
|