forked from rDrama/rDrama
WPD: make holes more flair-like in UI.
parent
cd556b6d8e
commit
268c23e2f8
|
@ -139,6 +139,7 @@ AGENDAPOSTER_MSG_HTML = """<p>Hi <a href="/id/{id}"><img loading="lazy" src="/pp
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
HOLE_NAME = 'hole'
|
HOLE_NAME = 'hole'
|
||||||
|
HOLE_STYLE_FLAIR = False
|
||||||
HOLE_COST = 0
|
HOLE_COST = 0
|
||||||
HOLE_CREATE_JL_MIN = 0
|
HOLE_CREATE_JL_MIN = 0
|
||||||
HOLE_INACTIVITY_DELETION = False
|
HOLE_INACTIVITY_DELETION = False
|
||||||
|
@ -285,6 +286,7 @@ elif SITE == 'cringetopia.org':
|
||||||
}
|
}
|
||||||
elif SITE == 'watchpeopledie.co':
|
elif SITE == 'watchpeopledie.co':
|
||||||
HOLE_NAME = 'flair'
|
HOLE_NAME = 'flair'
|
||||||
|
HOLE_STYLE_FLAIR = True
|
||||||
HOLE_CREATE_JL_MIN = 2
|
HOLE_CREATE_JL_MIN = 2
|
||||||
|
|
||||||
GIFT_NOTIF_ID = 13
|
GIFT_NOTIF_ID = 13
|
||||||
|
|
|
@ -55,6 +55,6 @@ def inject_constants():
|
||||||
"CC":CC, "CC_TITLE":CC_TITLE, "listdir":listdir, "MOOSE_ID":MOOSE_ID, "AEVANN_ID":AEVANN_ID,
|
"CC":CC, "CC_TITLE":CC_TITLE, "listdir":listdir, "MOOSE_ID":MOOSE_ID, "AEVANN_ID":AEVANN_ID,
|
||||||
"PIZZASHILL_ID":PIZZASHILL_ID, "DEFAULT_COLOR":DEFAULT_COLOR,
|
"PIZZASHILL_ID":PIZZASHILL_ID, "DEFAULT_COLOR":DEFAULT_COLOR,
|
||||||
"COLORS":COLORS, "ADMIGGERS":ADMIGGERS, "datetime":datetime, "time":time,
|
"COLORS":COLORS, "ADMIGGERS":ADMIGGERS, "datetime":datetime, "time":time,
|
||||||
"HOLE_NAME": HOLE_NAME,
|
"HOLE_NAME": HOLE_NAME, "HOLE_STYLE_FLAIR": HOLE_STYLE_FLAIR,
|
||||||
"LOTTERY_ENABLED": LOTTERY_ENABLED, "GUMROAD_LINK": GUMROAD_LINK,
|
"LOTTERY_ENABLED": LOTTERY_ENABLED, "GUMROAD_LINK": GUMROAD_LINK,
|
||||||
"DEFAULT_THEME": DEFAULT_THEME, "DESCRIPTION": DESCRIPTION}
|
"DEFAULT_THEME": DEFAULT_THEME, "DESCRIPTION": DESCRIPTION}
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
{% if sub %}
|
{% if sub %}
|
||||||
<a href="/h/{{sub.name}}" class="font-weight-bold ml-1 flex-grow-1 mt-1" style="font-size:max(14px,1.2vw)">/h/{{sub.name}}</a>
|
<a href="/h/{{sub.name}}" class="font-weight-bold ml-2 flex-grow-1 mt-1" style="font-size:max(14px,1.2vw)">{% if not HOLE_STYLE_FLAIR %}/h/{% endif %}{{sub.name}}</a>
|
||||||
{% elif SITE_NAME not in ('PCM','WPD') %}
|
{% elif SITE_NAME not in ('PCM','WPD') %}
|
||||||
<style>
|
<style>
|
||||||
{% if g.webview %}
|
{% if g.webview %}
|
||||||
|
|
|
@ -44,14 +44,15 @@
|
||||||
{% if sub %}
|
{% if sub %}
|
||||||
<div class="mt-3">
|
<div class="mt-3">
|
||||||
{% if v %}
|
{% if v %}
|
||||||
<a class="btn btn-primary btn-follow {% if v.follows(sub.name) %}d-none{% endif %}" onclick="post_toast(this,'/h/{{sub.name}}/follow','follow-sub','unfollow-sub');this.classList.toggle('d-none');nextElementSibling.classList.toggle('d-none')"><i class="fas fa-bell mr-1"></i> Follow /h/{{sub.name}}</a>
|
{%- set hole_prefix = '/h/' if not HOLE_STYLE_FLAIR else '' -%}
|
||||||
<a class="btn btn-primary btn-follow {% if not v.follows(sub.name) %}d-none{% endif %}" onclick="post_toast(this,'/h/{{sub.name}}/unfollow','follow-sub','unfollow-sub');this.classList.toggle('d-none');previousElementSibling.classList.toggle('d-none')"><i class="fas fa-bell-slash mr-1"></i> Unfollow /h/{{sub.name}}</a>
|
<a class="btn btn-primary btn-follow {% if v.follows(sub.name) %}d-none{% endif %}" onclick="post_toast(this,'/h/{{sub.name}}/follow','follow-sub','unfollow-sub');this.classList.toggle('d-none');nextElementSibling.classList.toggle('d-none')"><i class="fas fa-bell mr-1"></i> Follow {{hole_prefix}}{{sub.name}}</a>
|
||||||
|
<a class="btn btn-primary btn-follow {% if not v.follows(sub.name) %}d-none{% endif %}" onclick="post_toast(this,'/h/{{sub.name}}/unfollow','follow-sub','unfollow-sub');this.classList.toggle('d-none');previousElementSibling.classList.toggle('d-none')"><i class="fas fa-bell-slash mr-1"></i> Unfollow {{hole_prefix}}{{sub.name}}</a>
|
||||||
|
|
||||||
<a class="btn btn-primary btn-block mt-3 {% if v.blocks(sub.name) %}d-none{% endif %}" onclick="post_toast(this,'/h/{{sub.name}}/block','block-sub','unblock-sub');this.classList.toggle('d-none');nextElementSibling.classList.toggle('d-none')"><i class="fas fa-eye-slash mr-2"></i>Block /h/{{sub.name}}</a>
|
<a class="btn btn-primary btn-block mt-3 {% if v.blocks(sub.name) %}d-none{% endif %}" onclick="post_toast(this,'/h/{{sub.name}}/block','block-sub','unblock-sub');this.classList.toggle('d-none');nextElementSibling.classList.toggle('d-none')"><i class="fas fa-eye-slash mr-2"></i>Block {{hole_prefix}}{{sub.name}}</a>
|
||||||
<a class="btn btn-primary btn-block mt-3 {% if not v.blocks(sub.name) %}d-none{% endif %}" onclick="post_toast(this,'/h/{{sub.name}}/unblock','block-sub','unblock-sub');this.classList.toggle('d-none');previousElementSibling.classList.toggle('d-none')"><i class="fas fa-eye mr-2"></i>Unblock /h/{{sub.name}}</a>
|
<a class="btn btn-primary btn-block mt-3 {% if not v.blocks(sub.name) %}d-none{% endif %}" onclick="post_toast(this,'/h/{{sub.name}}/unblock','block-sub','unblock-sub');this.classList.toggle('d-none');previousElementSibling.classList.toggle('d-none')"><i class="fas fa-eye mr-2"></i>Unblock {{hole_prefix}}{{sub.name}}</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
<a class="btn btn-primary btn-block" href="/login"><i class="fas fa-bell mr-1"></i>Follow /h/{{sub.name}}</a>
|
<a class="btn btn-primary btn-block" href="/login"><i class="fas fa-bell mr-1"></i>Follow {{hole_prefix}}{{sub.name}}</a>
|
||||||
<a class="btn btn-primary btn-block mt-3" href="/login"><i class="fas fa-eye-slash mr-2"></i>Block /h/{{sub.name}}</a>
|
<a class="btn btn-primary btn-block mt-3" href="/login"><i class="fas fa-eye-slash mr-2"></i>Block {{hole_prefix}}{{sub.name}}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -22,12 +22,12 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if v and v.mods(sub.name) %}
|
{% if v and v.mods(sub.name) %}
|
||||||
<a class="btn btn-primary btn-block mb-3" href="/h/{{sub.name}}/settings">{{HOLE_NAME|upper}} SETTINGS</a>
|
<a class="btn btn-primary btn-block mb-3" href="/h/{{sub.name}}/settings">{{HOLE_NAME|upper}} SETTINGS</a>
|
||||||
{% endif %}
|
<a class="btn btn-primary btn-block mb-3" href="/h/{{sub.name}}/exilees">{{HOLE_NAME|upper}} EXILES</a>
|
||||||
<a class="btn btn-primary btn-block mb-3" href="/h/{{sub.name}}/mods">{{HOLE_NAME|upper}} MODS</a>
|
|
||||||
<a class="btn btn-primary btn-block mb-3" href="/h/{{sub.name}}/exilees">{{HOLE_NAME|upper}} EXILEES</a>
|
|
||||||
<a class="btn btn-primary btn-block mb-3" href="/h/{{sub.name}}/followers">{{HOLE_NAME|upper}} FOLLOWERS</a>
|
<a class="btn btn-primary btn-block mb-3" href="/h/{{sub.name}}/followers">{{HOLE_NAME|upper}} FOLLOWERS</a>
|
||||||
<a class="btn btn-primary btn-block mb-3" href="/h/{{sub.name}}/blockers">{{HOLE_NAME|upper}} BLOCKERS</a>
|
<a class="btn btn-primary btn-block mb-3" href="/h/{{sub.name}}/blockers">{{HOLE_NAME|upper}} BLOCKERS</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
<a class="btn btn-primary btn-block mb-3" href="/h/{{sub.name}}/mods">{{HOLE_NAME|upper}} MODS</a>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<div id="sidebar--rules">
|
<div id="sidebar--rules">
|
||||||
<h3 id="sidebar--rules--head">Rules</h3>
|
<h3 id="sidebar--rules--head">Rules</h3>
|
||||||
|
|
|
@ -705,7 +705,11 @@
|
||||||
|
|
||||||
<div class="post-meta text-left mb-2">
|
<div class="post-meta text-left mb-2">
|
||||||
{% if p.sub %}
|
{% if p.sub %}
|
||||||
|
{% if not HOLE_STYLE_FLAIR -%}
|
||||||
<a href='/h/{{p.sub}}'>/h/{{p.sub}}</a>
|
<a href='/h/{{p.sub}}'>/h/{{p.sub}}</a>
|
||||||
|
{%- else -%}
|
||||||
|
<a href='/h/{{p.sub}}' class="sub-flair">{{p.sub|capitalize}}</a>
|
||||||
|
{%- endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if p.sub and p.author.exiled_from(p.sub) %}
|
{% if p.sub and p.author.exiled_from(p.sub) %}
|
||||||
|
|
|
@ -148,11 +148,15 @@
|
||||||
|
|
||||||
<div class="post-meta text-left x-scroll mb-md-2">
|
<div class="post-meta text-left x-scroll mb-md-2">
|
||||||
{% if p.sub %}
|
{% if p.sub %}
|
||||||
|
{% if not HOLE_STYLE_FLAIR -%}
|
||||||
<a href='/h/{{p.sub}}'>/h/{{p.sub}}</a>
|
<a href='/h/{{p.sub}}'>/h/{{p.sub}}</a>
|
||||||
|
{%- else -%}
|
||||||
|
<a href='/h/{{p.sub}}' class="sub-flair">{{p.sub|capitalize}}</a>
|
||||||
|
{%- endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if p.sub and p.author.exiled_from(p.sub) %}
|
{% if p.sub and p.author.exiled_from(p.sub) %}
|
||||||
<a role="button"><i class="fas fa-campfire text-danger" data-bs-toggle="tooltip" data-bs-placement="bottom" title="User has been exiled from /h/{{p.sub}}"></i></a>
|
<a role="button"><i class="fas fa-campfire text-danger" data-bs-toggle="tooltip" data-bs-placement="bottom" title="User has been exiled from {% if not HOLE_STYLE_FLAIR %}/h/{% endif %}{{p.sub}}"></i></a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if p.bannedfor %}
|
{% if p.bannedfor %}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{%-
|
{%-
|
||||||
set CACHE_VER = {
|
set CACHE_VER = {
|
||||||
'css/main.css': 360,
|
'css/main.css': 361,
|
||||||
|
|
||||||
'css/4chan.css': 61,
|
'css/4chan.css': 61,
|
||||||
'css/classic.css': 61,
|
'css/classic.css': 61,
|
||||||
|
|
Loading…
Reference in New Issue