user upgrades: factor out gold/platinum prices.

This commit is contained in:
evazion
2019-12-24 11:52:16 -06:00
parent 7694be9cb3
commit ef2eb9d0f5
6 changed files with 32 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
<div class="notice notice-info notice-large" id="upgrade-account-notice">
<h2><%= link_to "Upgrade your account for only $20!", new_user_upgrade_path, id: "goto-upgrade-account" %></h2>
<h2><%= link_to "Upgrade your account for only #{cents_to_usd(UserUpgrade.gold_price)}!", new_user_upgrade_path, id: "goto-upgrade-account" %></h2>
<div><%= link_to "No thanks", "#", id: "hide-upgrade-account-notice" %></div>
</div>