diff --git a/app/views/users/_secondary_links.html.erb b/app/views/users/_secondary_links.html.erb
index 0e6559bfb..e97c0d9c4 100644
--- a/app/views/users/_secondary_links.html.erb
+++ b/app/views/users/_secondary_links.html.erb
@@ -4,32 +4,31 @@
<%= link_to "Listing", users_path %>
<%= link_to "Search", search_users_path %>
- <% if CurrentUser.is_anonymous? %>
+ <% if CurrentUser.user.is_anonymous? %>
<%= link_to "Sign up", new_user_path %>
<% end %>
- <% if @user && !@user.new_record? && !CurrentUser.is_anonymous? %>
+ <% if @user && !@user.new_record? && !CurrentUser.user.is_anonymous? %>
|
- <% if @user.id == CurrentUser.id %>
+ <% if @user.id == CurrentUser.user.id %>
<%= link_to "Settings", edit_user_path(CurrentUser.user) %>
<% if @user.is_gold? %>
<%= link_to "Edit subscriptions", tag_subscriptions_path %>
<% end %>
<%= link_to "Profile", user_path(CurrentUser.user) %>
- <%= link_to "Messages #{CurrentUser.dmail_count}", dmails_current_folder_path %>
+ <%= link_to "Messages #{CurrentUser.user.dmail_count}", dmails_current_folder_path %>
+
+ <% if !@user.is_platinum? %>
+ <%= link_to "Upgrade", new_user_upgrade_path %>
+ <% end %>
<% else %>
<%= link_to "Send message", new_dmail_path(:dmail => {:to_id => @user.id}) %>
- <% end %>
-
- <% if CurrentUser.is_member? || CurrentUser.is_gold? %>
- <% if @user.id == CurrentUser.user.id %>
- <%= link_to "Upgrade", new_user_upgrade_path %>
- <% else %>
- <%= link_to "Gift Upgrade", new_user_upgrade_path(:user_id => @user.id) %>
+ <% if !@user.is_platinum? %>
+ <%= link_to "Gift upgrade", new_user_upgrade_path(:user_id => @user.id) %>
<% end %>
<% end %>
- <% if CurrentUser.is_moderator? %>
+ <% if CurrentUser.user.is_moderator? %>
<%= link_to "Promote", edit_admin_user_path(@user) %>
<% if @user.is_banned? %>
<%= link_to "Unban", ban_path(@user.recent_ban) %>