user upgrades: update upgrade landing page.
* Add a frequently asked questions section. * Add nicer looking upgrade buttons. * Format the page nicer. * Prevent users from attempting invalid upgrades on users that are already Platinum or above.
This commit is contained in:
@@ -75,8 +75,13 @@
|
||||
<th>Level</th>
|
||||
<td>
|
||||
<%= user.level_string %>
|
||||
<% if CurrentUser.user == user && !CurrentUser.is_gold? %>
|
||||
(<%= link_to "upgrade", new_user_upgrade_path %>)
|
||||
|
||||
<% if !user.is_platinum? %>
|
||||
<% if CurrentUser.user == user %>
|
||||
(<%= link_to "Upgrade account", new_user_upgrade_path %>)
|
||||
<% else %>
|
||||
(<%= link_to "Gift upgrade", new_user_upgrade_path(user_id: user.id) %>)
|
||||
<% end %>
|
||||
<% end %>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user