LGB: Hide donation in all contexts.

Additionally, refactors some instances of `SITE_NAME != 'WPD'` to use
`FEATURES['PROCOINS']` as appropriate.
master
Snakes 2022-07-18 03:32:26 -04:00
parent eef6c25b0b
commit 9d036441e7
Signed by: Snakes
GPG Key ID: E745A82778055C7E
5 changed files with 9 additions and 7 deletions

View File

@ -13,7 +13,9 @@
<img alt=":#marseymerchant:" loading="lazy" class="mb-2" src="/e/marseymerchant.webp">
<h1 class="h5">401 Not Authorized</h1>
<p class="text-muted">This page is only available to {% if SITE_NAME == 'rDrama' %}paypigs{% else %}patrons{% endif %}:</p>
{% if FEATURES['PROCOINS'] -%}
<a rel="nofollow noopener noreferrer" href="{{GUMROAD_LINK}}">{{GUMROAD_LINK}}</a>
{%- endif %}
</div>
</div>
</div>

View File

@ -603,7 +603,7 @@ line breaks
<td>!slots100</td>
<td>Play slots using coins - minimum 100 coins</td>
</tr>
{% if SITE_NAME != 'WPD' %}
{% if FEATURES['PROCOINS'] %}
<tr>
<td>!slotsmb100</td>
<td>Play slots using marseybux - minimum 100 marseybux</td>
@ -613,7 +613,7 @@ line breaks
<td>!blackjack100</td>
<td>Play blackjack using coins - minimum 100 coins</td>
</tr>
{% if SITE_NAME != 'WPD' %}
{% if FEATURES['PROCOINS'] %}
<tr>
<td>!blackjackmb100</td>
<td>Play blackjack using marseybux - minimum 100 marseybux</td>

View File

@ -240,7 +240,7 @@
<a class="dropdown-item" href="/discord"><i class="fab fa-discord fa-fw mr-3"></i>Discord</a>
<a class="dropdown-item" href="/post/75863/"><i class="fas fa-square-share-nodes fa-fw mr-3"></i>Fediverse</a>
{% endif %}
{% if SITE_NAME != 'WPD' %}
{% if FEATURES['PROCOINS'] %}
<a class="dropdown-item" rel="nofollow noopener noreferrer" href="{{GUMROAD_LINK}}"><i class="fas fa-dollar-sign fa-fw mr-3"></i>Donate</a>
{% endif %}
{% if SITE_NAME == 'rDrama' %}
@ -299,7 +299,7 @@
<a class="nav-item nav-link" href="/discord"><i class="fab fa-discord fa-fw mr-3"></i>Discord</a>
<a class="nav-item nav-link" href="/post/75863/"><i class="fas fa-square-share-nodes fa-fw mr-3"></i>Fediverse</a>
{% endif %}
{% if SITE_NAME != 'WPD' %}
{% if FEATURES['PROCOINS'] %}
<a class="nav-item nav-link" rel="nofollow noopener noreferrer" href="{{GUMROAD_LINK}}"><i class="fas fa-dollar-sign fa-fw mr-3"></i>Donate</a>
{% endif %}
{% if SITE_NAME == 'rDrama' %}<a class="nav-item nav-link" href="/archives"><i class="fas fa-book fa-fw mr-3"></i>Archives</a>{% endif %}

View File

@ -44,7 +44,7 @@
</div>
<div class="footer">
<div class="d-flex">
{% if SITE_NAME != 'WPD' %}
{% if FEATURES['PROCOINS'] %}
<a class="btn btn-success" role="button" onclick="post_toast(this,'/settings/gumroad')">Claim paypig rewards</a>
{% endif %}
{% if v.email %}
@ -53,7 +53,7 @@
<input autocomplete="off" class="btn btn-primary ml-auto" type="submit" onclick="disable(this)" value="Add email">
{% endif %}
</div>
{% if SITE_NAME != 'WPD' %}
{% if FEATURES['PROCOINS'] %}
<span class="text-small text-muted pl-1">Must be same email as gumroad</span>
{% endif %}
</div>

View File

@ -84,7 +84,7 @@
{% set kind = a['kind'] %}
<td class="shop-table-actions">
{% if a['kind'] != "benefactor" %}<a class="d-flex btn btn-success {% if v.coins < a['price'] %}disabled{% endif %}" role="button" onclick="post_toast(this,'/buy/{{kind}}')"><span class="m-auto">Buy</span></a>{% endif %}
{% if SITE_NAME != 'WPD' %}
{% if FEATURES['PROCOINS'] %}
{% if a['kind'] != "grass" %}<a class="d-flex marseybux btn btn-success {% if v.procoins < a['price'] %}disabled{% endif %}" role="button" onclick="post_toast(this,'/buy/{{kind}}?mb=true')"><span class="m-auto">Buy with MBux</span></a>{% endif %}
{% endif %}
</td>