diff --git a/app/presenters/user_presenter.rb b/app/presenters/user_presenter.rb index aafecb8a5..170392635 100644 --- a/app/presenters/user_presenter.rb +++ b/app/presenters/user_presenter.rb @@ -13,10 +13,6 @@ class UserPresenter user.created_at.strftime("%Y-%m-%d") end - def level - user.level_string - end - def ban_reason if user.is_banned? "#{user.recent_ban.reason}; expires #{user.recent_ban.expires_at} (#{user.bans.count} bans total)" diff --git a/app/views/users/_statistics.html.erb b/app/views/users/_statistics.html.erb index 2e39f5330..4c6406340 100644 --- a/app/views/users/_statistics.html.erb +++ b/app/views/users/_statistics.html.erb @@ -18,7 +18,12 @@ Level - <%= presenter.level %> + + <%= user.level_string %> + <% if CurrentUser.user == user && !CurrentUser.is_gold? %> + (<%= link_to "upgrade", new_user_upgrade_path %>) + <% end %> +