Add Danbooru Winter Sale.
This commit is contained in:
@@ -70,6 +70,25 @@
|
||||
<div id="page">
|
||||
<%= render "users/verification_notice" %>
|
||||
|
||||
<% if Danbooru.config.is_promotion? && cookies[:hide_promotion_notice].blank? %>
|
||||
<div class="notice notice-info notice-large" id="promotion-notice">
|
||||
<% if rand <= 0.0025 %>
|
||||
<%= tag.img src: "/images/provgift.png", width: 24, height: 24 %>
|
||||
<% elsif rand <= 0.0025 %>
|
||||
<%= tag.img src: "/images/kemogift.png", width: 24, height: 24 %>
|
||||
<% elsif rand <= 0.0025 %>
|
||||
<%= tag.img src: "/images/padoru.gif", width: 24, height: 24 %>
|
||||
<% elsif rand <= 0.0025 %>
|
||||
<%= tag.img src: "/images/ablobgift.gif", width: 24, height: 24 %>
|
||||
<% else %>
|
||||
<%= tag.img src: "/images/blobgift.png", width: 24, height: 24 %>
|
||||
<% end %>
|
||||
|
||||
<%= link_to "Danbooru Winter Sale!", forum_topic_path(17832) %> 25% off Gold and unlimited searches for Members!
|
||||
(<%= link_to "hide", "#", id: "hide-promotion-notice" %>)
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<% if !CurrentUser.is_anonymous? && !CurrentUser.is_gold? && cookies[:hide_upgrade_account_notice].blank? && params[:action] != "upgrade_information" %>
|
||||
<%= render "users/upgrade_notice" %>
|
||||
<% end %>
|
||||
|
||||
@@ -18,6 +18,10 @@
|
||||
<% else %>
|
||||
<h1>Upgrade Account</h1>
|
||||
|
||||
<% if Danbooru.config.is_promotion? %>
|
||||
<p><b>Danbooru Winter Sale! Gold and Platinum upgrades are 25% off from now until January 1st.</b></p>
|
||||
<% end %>
|
||||
|
||||
<p>Upgrading your account gives you exclusive benefits and helps support
|
||||
<%= Danbooru.config.canonical_app_name %>. Your support helps keep the
|
||||
site ad-free for everyone!</p>
|
||||
@@ -44,10 +48,16 @@
|
||||
<td></td>
|
||||
<td>Free</td>
|
||||
<td>
|
||||
<% if Danbooru.config.is_promotion? %>
|
||||
<s>$20</s>
|
||||
<% end %>
|
||||
<%= cents_to_usd(UserUpgrade.gold_price) %>
|
||||
<div class="fineprint">One time fee</div>
|
||||
</td>
|
||||
<td>
|
||||
<% if Danbooru.config.is_promotion? %>
|
||||
<s>$40</s>
|
||||
<% end %>
|
||||
<%= cents_to_usd(UserUpgrade.platinum_price) %>
|
||||
<div class="fineprint">One time fee</div>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user