diff options
author | rhenium <re4k@re4k.info> | 2013-05-30 00:54:47 +0900 |
---|---|---|
committer | rhenium <re4k@re4k.info> | 2013-05-30 00:54:47 +0900 |
commit | 75e30f750533af57057fd5a9b7f725218f4be7d0 (patch) | |
tree | 9f6f379530d75aeb12b705edbb00c98d03ac8271 /app/views/shared | |
parent | 8d0657441ad76b23684d13f8790df2a3c0cb84ff (diff) | |
download | aclog-75e30f750533af57057fd5a9b7f725218f4be7d0.tar.gz |
add private account (!= protected Twitter account) feature
Diffstat (limited to 'app/views/shared')
-rw-r--r-- | app/views/shared/sidebar/_users.html.haml | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/app/views/shared/sidebar/_users.html.haml b/app/views/shared/sidebar/_users.html.haml index a23445a..dba837e 100644 --- a/app/views/shared/sidebar/_users.html.haml +++ b/app/views/shared/sidebar/_users.html.haml @@ -1,6 +1,6 @@ .sidebar .avatar - = link_to user_best_path(@user.screen_name) do + = link_to user_path(@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? @@ -22,16 +22,23 @@ = "@#{@user.screen_name} has never signed in to aclog" .user_nav %ul.nav.nav-tabs.nav-stacked - - if @user.registered? + - if authorized_to_show_best?(@user) + %li + = link_to "best", user_path(@user.screen_name) + %li + = link_to "timeline", user_timeline_path(@user.screen_name) + %li + = link_to "discoveries", user_discoveries_path(@user.screen_name) + %li + = link_to "discovered by", user_discovered_by_path(@user.screen_name) + %li + = link_to "discovered users", user_discovered_users_path(@user.screen_name) + %li + = link_to "stats", user_stats_path(@user.screen_name) + - else + %li + = link_to "timeline", user_path(@user.screen_name) + %li + = link_to "discoveries", user_discoveries_path(@user.screen_name) %li = link_to "stats", user_stats_path(@user.screen_name) - %li - = link_to "best", user_best_path(@user.screen_name) - %li - = link_to "timeline", user_timeline_path(@user.screen_name) - %li - = link_to "discoveries", user_discoveries_path(@user.screen_name) - %li - = link_to "discovered by", user_discovered_by_path(@user.screen_name) - %li - = link_to "discovered users", user_discovered_users_path(@user.screen_name) |