allow gift upgrades for accounts

This commit is contained in:
r888888888
2014-12-10 10:21:10 -08:00
parent a6c389a281
commit cb1be62577
4 changed files with 111 additions and 88 deletions

View File

@@ -22,7 +22,11 @@
<% end %>
<% if CurrentUser.is_member? || CurrentUser.is_gold? %>
<li><%= link_to "Upgrade", new_user_upgrade_path %></li>
<% if @user.id == CurrentUser.user.id %>
<li><%= link_to "Upgrade", new_user_upgrade_path %></li>
<% else %>
<li><%= link_to "Gift Upgrade", new_user_upgrade_path(:user_id => @user.id) %></li>
<% end %>
<% end %>
<% if CurrentUser.is_moderator? %>