add stripe integration for safebooru
This commit is contained in:
@@ -21,8 +21,8 @@
|
||||
<li><%= link_to "Send message", new_dmail_path(:dmail => {:to_id => @user.id}) %></li>
|
||||
<% end %>
|
||||
|
||||
<% if !CurrentUser.is_gold? %>
|
||||
<li><%= link_to "Upgrade", upgrade_information_users_path %></li>
|
||||
<% if CurrentUser.is_member? || CurrentUser.is_gold? %>
|
||||
<li><%= link_to "Upgrade", new_user_upgrade_path %></li>
|
||||
<% end %>
|
||||
|
||||
<% if CurrentUser.is_moderator? %>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div class="ui-corner-all ui-state-highlight" id="upgrade-account-notice">
|
||||
<h1><%= link_to "Upgrade your account for only $20!", upgrade_information_users_path %></h1>
|
||||
<h1><%= link_to "Upgrade your account for only $20!", new_user_upgrade_path %></h1>
|
||||
<p><%= link_to "No thanks", "#", :id => "hide-upgrade-account-notice" %></p>
|
||||
</div>
|
||||
|
||||
@@ -2,7 +2,94 @@
|
||||
<div id="a-upgrade-information">
|
||||
<h1>Upgrade Your Account</h1>
|
||||
|
||||
<p>Upgrades are currently not available.</p>
|
||||
<p class="copy">Annoyed by ads? Want more searching power? Upgrade your account and become a power user of the best database of anime artwork on the internet.</p>
|
||||
|
||||
<div id="feature-comparison">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>Basic</th>
|
||||
<th>Gold</th>
|
||||
<th>Platinum</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<colgroup id="labels"></colgroup>
|
||||
<colgroup id="basic"></colgroup>
|
||||
<colgroup id="gold"></colgroup>
|
||||
<colgroup id="platinum"></colgroup>
|
||||
<tr>
|
||||
<td>Cost</td>
|
||||
<td>Free</td>
|
||||
<td>$20<p class="cost-footnote">One time fee</p></td>
|
||||
<td>$40<p class="cost-footnote">One time fee</p></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Tag Limit</td>
|
||||
<td>2</td>
|
||||
<td>6</td>
|
||||
<td>12</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Favorite Limit</td>
|
||||
<td>10,000</td>
|
||||
<td>20,000</td>
|
||||
<td>Unlimited</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Page Limit</td>
|
||||
<td>1,000</td>
|
||||
<td>2,000</td>
|
||||
<td>5,000</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Tag Subscriptions</td>
|
||||
<td>No</td>
|
||||
<td>Yes</td>
|
||||
<td>Yes</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>See Censored Tags</td>
|
||||
<td>No</td>
|
||||
<td>Yes</td>
|
||||
<td>Yes</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>API Hourly Limit</td>
|
||||
<td>3,000</td>
|
||||
<td>10,000</td>
|
||||
<td>20,000</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Database Timeout</td>
|
||||
<td>3 sec</td>
|
||||
<td>6 sec</td>
|
||||
<td>9 sec</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Variable Posts Per Page</td>
|
||||
<td>No</td>
|
||||
<td>Yes</td>
|
||||
<td>Yes</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Name Changes</td>
|
||||
<td>No</td>
|
||||
<td>Yes</td>
|
||||
<td>Yes</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<p><strong>Upgrading from Gold to Platinum will only cost $20.</strong> If you have any further questions or concerns, feel free to contact me at <%= mail_to Danbooru.config.contact_email, nil, :encode => :javascript %>.</p>
|
||||
|
||||
<% if true || CurrentUser.user.level < User::Levels::GOLD %>
|
||||
<%= stripe_button("Upgrade to Gold", 2000) %>
|
||||
<%= stripe_button("Upgrade to Platinum", 4000) %>
|
||||
<% elsif CurrentUser.user.level < User::Levels::PLATINUM %>
|
||||
<%= stripe_button("Upgrade Gold to Platinum", 2000) %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user