fdsfsd
This commit is contained in:
parent
cd425dce21
commit
ab3c98aade
30 changed files with 94 additions and 132 deletions
|
@ -27,8 +27,25 @@ if SITE_NAME == 'PCM': cc = "splash mountain"
|
||||||
else: cc = "country club"
|
else: cc = "country club"
|
||||||
month = datetime.now().strftime('%B')
|
month = datetime.now().strftime('%B')
|
||||||
|
|
||||||
@app.get("/admin/grassed")
|
|
||||||
|
|
||||||
|
@app.post("/admin/sex")
|
||||||
@admin_level_required(3)
|
@admin_level_required(3)
|
||||||
|
def sex(v):
|
||||||
|
data = {'access_token': GUMROAD_TOKEN}
|
||||||
|
|
||||||
|
emails = [x['email'] for x in requests.get(f'https://api.gumroad.com/v2/products/{GUMROAD_ID}/subscribers', data=data, timeout=5).json()["subscribers"]]
|
||||||
|
|
||||||
|
for u in g.db.query(User).filter(User.patron > 0).all():
|
||||||
|
if u.email.lower() not in emails:
|
||||||
|
print(u.username)
|
||||||
|
|
||||||
|
return "sex"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@app.get("/admin/grassed")
|
||||||
|
@admin_level_required(2)
|
||||||
def grassed(v):
|
def grassed(v):
|
||||||
users = g.db.query(User).filter(User.ban_reason.like('grass award used by @%')).all()
|
users = g.db.query(User).filter(User.ban_reason.like('grass award used by @%')).all()
|
||||||
|
|
||||||
|
@ -159,7 +176,7 @@ def club_ban(v, username):
|
||||||
@admin_level_required(2)
|
@admin_level_required(2)
|
||||||
@validate_formkey
|
@validate_formkey
|
||||||
def make_meme_admin(v, username):
|
def make_meme_admin(v, username):
|
||||||
if 'pcm' in request.host or (SITE_NAME == 'Drama' and v.admin_level > 2) or ('rama' not in request.host and 'pcm' not in request.host):
|
if request.host == 'pcmemes.net' or (SITE_NAME == 'Drama' and v.admin_level > 2) or (request.host != 'rdrama.net' and request.host != 'pcmemes.net'):
|
||||||
user = get_user(username)
|
user = get_user(username)
|
||||||
if not user: abort(404)
|
if not user: abort(404)
|
||||||
user.admin_level = 1
|
user.admin_level = 1
|
||||||
|
@ -173,7 +190,7 @@ def make_meme_admin(v, username):
|
||||||
@admin_level_required(2)
|
@admin_level_required(2)
|
||||||
@validate_formkey
|
@validate_formkey
|
||||||
def remove_meme_admin(v, username):
|
def remove_meme_admin(v, username):
|
||||||
if 'pcm' in request.host or (SITE_NAME == 'Drama' and v.admin_level > 2) or ('rama' not in request.host and 'pcm' not in request.host):
|
if request.host == 'pcmemes.net' or (SITE_NAME == 'Drama' and v.admin_level > 2) or (request.host != 'rdrama.net' and request.host != 'pcmemes.net'):
|
||||||
user = get_user(username)
|
user = get_user(username)
|
||||||
if not user: abort(404)
|
if not user: abort(404)
|
||||||
user.admin_level = 0
|
user.admin_level = 0
|
||||||
|
@ -187,34 +204,27 @@ def remove_meme_admin(v, username):
|
||||||
@admin_level_required(3)
|
@admin_level_required(3)
|
||||||
@validate_formkey
|
@validate_formkey
|
||||||
def monthly(v):
|
def monthly(v):
|
||||||
if 'pcm' in request.host or (SITE_NAME == 'Drama' and v.admin_level > 2) or ('rama' not in request.host and 'pcm' not in request.host):
|
if request.host == 'rdrama.net' and v.id != 1: abort (403)
|
||||||
thing = g.db.query(AwardRelationship).order_by(AwardRelationship.id.desc()).first().id
|
|
||||||
|
|
||||||
data = {'access_token': GUMROAD_TOKEN}
|
thing = g.db.query(AwardRelationship).order_by(AwardRelationship.id.desc()).first().id
|
||||||
|
|
||||||
response = [x['email'] for x in requests.get(f'https://api.gumroad.com/v2/products/{GUMROAD_ID}/subscribers', data=data, timeout=5).json()["subscribers"]]
|
data = {'access_token': GUMROAD_TOKEN}
|
||||||
emails = []
|
|
||||||
|
|
||||||
for email in response:
|
emails = [x['email'] for x in requests.get(f'https://api.gumroad.com/v2/products/{GUMROAD_ID}/subscribers', data=data, timeout=5).json()["subscribers"]]
|
||||||
if email.endswith("@gmail.com"):
|
|
||||||
email=email.split('@')[0]
|
|
||||||
email=email.split('+')[0]
|
|
||||||
email=email.replace('.','').replace('_','')
|
|
||||||
email=f"{email}@gmail.com"
|
|
||||||
emails.append(email.lower())
|
|
||||||
|
|
||||||
for u in g.db.query(User).filter(User.patron > 0).all():
|
for u in g.db.query(User).filter(User.patron > 0).all():
|
||||||
if u.patron == 5 or u.email and u.email.lower() in emails or u.id == 1379:
|
if u.patron == 5 or u.email and u.email.lower() in emails or u.id == 1379:
|
||||||
if u.patron == 1: procoins = 2500
|
if u.patron == 1: procoins = 2500
|
||||||
elif u.patron == 2: procoins = 5000
|
elif u.patron == 2: procoins = 5000
|
||||||
elif u.patron == 3: procoins = 10000
|
elif u.patron == 3: procoins = 10000
|
||||||
elif u.patron == 4: procoins = 25000
|
elif u.patron == 4: procoins = 25000
|
||||||
elif u.patron == 5: procoins = 50000
|
elif u.patron == 5: procoins = 50000
|
||||||
else: print(u.username)
|
else: print(u.username)
|
||||||
u.procoins += procoins
|
u.procoins += procoins
|
||||||
g.db.add(u)
|
g.db.add(u)
|
||||||
send_repeatable_notification(u.id, f"You were given {procoins} Marseybux for the month of {month}! You can use them to buy awards in the [shop](/shop).")
|
send_repeatable_notification(u.id, f"You were given {procoins} Marseybux for the month of {month}! You can use them to buy awards in the [shop](/shop).")
|
||||||
g.db.commit()
|
g.db.commit()
|
||||||
|
|
||||||
return {"message": "Monthly coins granted"}
|
return {"message": "Monthly coins granted"}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,7 @@ def post_pid_comment_cid(cid, pid=None, anything=None, v=None):
|
||||||
|
|
||||||
if not pid:
|
if not pid:
|
||||||
if comment.parent_submission: pid = comment.parent_submission
|
if comment.parent_submission: pid = comment.parent_submission
|
||||||
elif "rama" in request.host: pid = 6489
|
elif request.host == "rdrama.net": pid = 6489
|
||||||
elif 'pcmemes.net' == request.host: pid = 2487
|
elif 'pcmemes.net' == request.host: pid = 2487
|
||||||
else: pid = 1
|
else: pid = 1
|
||||||
|
|
||||||
|
@ -340,7 +340,7 @@ def api_comment(v):
|
||||||
g.db.add(n)
|
g.db.add(n)
|
||||||
|
|
||||||
|
|
||||||
if "rama" in request.host and "ivermectin" in c.body.lower():
|
if request.host == "rdrama.net" and "ivermectin" in c.body.lower():
|
||||||
|
|
||||||
c.is_banned = True
|
c.is_banned = True
|
||||||
c.ban_reason = "AutoJanny"
|
c.ban_reason = "AutoJanny"
|
||||||
|
@ -414,7 +414,7 @@ def api_comment(v):
|
||||||
c.upvotes += 1
|
c.upvotes += 1
|
||||||
g.db.add(c)
|
g.db.add(c)
|
||||||
|
|
||||||
if "rama" in request.host and len(c.body) >= 1000 and "<" not in body and "</blockquote>" not in body_html:
|
if request.host == "rdrama.net" and len(c.body) >= 1000 and "<" not in body and "</blockquote>" not in body_html:
|
||||||
|
|
||||||
body = random.choice(LONGPOST_REPLIES)
|
body = random.choice(LONGPOST_REPLIES)
|
||||||
body_md = CustomRenderer().render(mistletoe.Document(body))
|
body_md = CustomRenderer().render(mistletoe.Document(body))
|
||||||
|
@ -449,7 +449,7 @@ def api_comment(v):
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if "rama" in request.host and random.random() < 0.001:
|
if request.host == "rdrama.net" and random.random() < 0.001:
|
||||||
|
|
||||||
body = "zoz"
|
body = "zoz"
|
||||||
body_md = CustomRenderer().render(mistletoe.Document(body))
|
body_md = CustomRenderer().render(mistletoe.Document(body))
|
||||||
|
@ -713,7 +713,7 @@ def edit_comment(cid, v):
|
||||||
c.body = body[:10000]
|
c.body = body[:10000]
|
||||||
c.body_html = body_html
|
c.body_html = body_html
|
||||||
|
|
||||||
if "rama" in request.host and "ivermectin" in c.body_html.lower():
|
if request.host == "rdrama.net" and "ivermectin" in c.body_html.lower():
|
||||||
|
|
||||||
c.is_banned = True
|
c.is_banned = True
|
||||||
c.ban_reason = "AutoJanny"
|
c.ban_reason = "AutoJanny"
|
||||||
|
|
|
@ -273,12 +273,6 @@ def sign_up_post(v):
|
||||||
|
|
||||||
email = request.values.get("email").strip().lower()
|
email = request.values.get("email").strip().lower()
|
||||||
|
|
||||||
if email.endswith("@gmail.com"):
|
|
||||||
email=email.split('@')[0]
|
|
||||||
email=email.split('+')[0]
|
|
||||||
email=email.replace('.','').replace('_','')
|
|
||||||
email=f"{email}@gmail.com"
|
|
||||||
|
|
||||||
if not email: email = None
|
if not email: email = None
|
||||||
|
|
||||||
existing_account = get_user(username, graceful=True)
|
existing_account = get_user(username, graceful=True)
|
||||||
|
@ -352,23 +346,12 @@ def get_forgot():
|
||||||
def post_forgot():
|
def post_forgot():
|
||||||
|
|
||||||
username = request.values.get("username").lstrip('@')
|
username = request.values.get("username").lstrip('@')
|
||||||
email = request.values.get("email",'').strip().lower()
|
email = request.values.get("email",'').strip().lower().replace("_","\_")
|
||||||
|
|
||||||
email=email.replace("_","\_")
|
|
||||||
|
|
||||||
user = g.db.query(User).filter(
|
user = g.db.query(User).filter(
|
||||||
User.username.ilike(username),
|
User.username.ilike(username),
|
||||||
User.email.ilike(email)).first()
|
User.email.ilike(email)).first()
|
||||||
|
|
||||||
if not user and email.endswith("@gmail.com"):
|
|
||||||
email=email.split('@')[0]
|
|
||||||
email=email.split('+')[0]
|
|
||||||
email=email.replace('.','').replace('_','')
|
|
||||||
email=f"{email}@gmail.com"
|
|
||||||
user = g.db.query(User).filter(
|
|
||||||
User.username.ilike(username),
|
|
||||||
User.email.ilike(email)).first()
|
|
||||||
|
|
||||||
if user:
|
if user:
|
||||||
now = int(time.time())
|
now = int(time.time())
|
||||||
token = generate_hash(f"{user.id}+{now}+forgot+{user.login_nonce}")
|
token = generate_hash(f"{user.id}+{now}+forgot+{user.login_nonce}")
|
||||||
|
@ -494,16 +477,6 @@ def request_2fa_disable():
|
||||||
|
|
||||||
|
|
||||||
email=request.values.get("email").strip().lower()
|
email=request.values.get("email").strip().lower()
|
||||||
if email != user.email and email.endswith("@gmail.com"):
|
|
||||||
email=email.split('@')[0]
|
|
||||||
email=email.split('+')[0]
|
|
||||||
email=email.replace('.','').replace('_','')
|
|
||||||
email=f"{email}@gmail.com"
|
|
||||||
if email != user.email:
|
|
||||||
return render_template(f"message.html",
|
|
||||||
title="Removal request received",
|
|
||||||
message="If username, password, and email match, we will send you an email.")
|
|
||||||
|
|
||||||
|
|
||||||
password =request.values.get("password")
|
password =request.values.get("password")
|
||||||
if not user.verifyPass(password):
|
if not user.verifyPass(password):
|
||||||
|
|
|
@ -491,7 +491,7 @@ def edit_post(pid, v):
|
||||||
|
|
||||||
p.body_html = body_html
|
p.body_html = body_html
|
||||||
|
|
||||||
if "rama" in request.host and "ivermectin" in body_html.lower():
|
if request.host == "rdrama.net" and "ivermectin" in body_html.lower():
|
||||||
|
|
||||||
p.is_banned = True
|
p.is_banned = True
|
||||||
p.ban_reason = "AutoJanny"
|
p.ban_reason = "AutoJanny"
|
||||||
|
@ -1054,7 +1054,7 @@ def submit_post(v):
|
||||||
add_notif(cid, user.id)
|
add_notif(cid, user.id)
|
||||||
|
|
||||||
|
|
||||||
if "rama" in request.host and "ivermectin" in new_post.body_html.lower():
|
if request.host == "rdrama.net" and "ivermectin" in new_post.body_html.lower():
|
||||||
|
|
||||||
new_post.is_banned = True
|
new_post.is_banned = True
|
||||||
new_post.ban_reason = "AutoJanny"
|
new_post.ban_reason = "AutoJanny"
|
||||||
|
|
|
@ -493,24 +493,13 @@ def gumroad(v):
|
||||||
|
|
||||||
if not (v.email and v.is_activated): return {"error": f"You must have a verified email to verify {patron} status and claim your rewards"}, 400
|
if not (v.email and v.is_activated): return {"error": f"You must have a verified email to verify {patron} status and claim your rewards"}, 400
|
||||||
|
|
||||||
data = {'access_token': GUMROAD_TOKEN,}
|
data = {'access_token': GUMROAD_TOKEN, 'email': v.email}
|
||||||
|
response = requests.get('https://api.gumroad.com/v2/sales', data=data).json()["sales"]
|
||||||
|
|
||||||
response = [x['email'] for x in requests.get(f'https://api.gumroad.com/v2/products/{GUMROAD_ID}/subscribers', data=data, timeout=5).json()["subscribers"]]
|
if len(response) == 0: return {"error": "Email not found"}, 404
|
||||||
emails = []
|
|
||||||
|
|
||||||
for email in response:
|
response = response[0]
|
||||||
if email.endswith("@gmail.com"):
|
|
||||||
email=email.split('@')[0]
|
|
||||||
email=email.split('+')[0]
|
|
||||||
email=email.replace('.','').replace('_','')
|
|
||||||
email=f"{email}@gmail.com"
|
|
||||||
emails.append(email.lower())
|
|
||||||
|
|
||||||
if v.email.lower() not in emails: return {"error": "Email not found"}, 404
|
|
||||||
|
|
||||||
response = requests.get('https://api.gumroad.com/v2/sales', data=data, timeout=5).json()["sales"][0]
|
|
||||||
tier = tiers[response["variants_and_quantity"]]
|
tier = tiers[response["variants_and_quantity"]]
|
||||||
|
|
||||||
if v.patron == tier: return {"error": f"{patron} rewards already claimed"}, 400
|
if v.patron == tier: return {"error": f"{patron} rewards already claimed"}, 400
|
||||||
|
|
||||||
existing = g.db.query(User.id).filter_by(email=v.email, is_activated=True, patron=tier).one_or_none()
|
existing = g.db.query(User.id).filter_by(email=v.email, is_activated=True, patron=tier).one_or_none()
|
||||||
|
@ -610,12 +599,6 @@ def settings_security_post(v):
|
||||||
|
|
||||||
new_email = request.values.get("new_email","").strip().lower()
|
new_email = request.values.get("new_email","").strip().lower()
|
||||||
|
|
||||||
if new_email.endswith("@gmail.com"):
|
|
||||||
new_email=new_email.split('@')[0]
|
|
||||||
new_email=new_email.split('+')[0]
|
|
||||||
new_email=new_email.replace('.','').replace('_','')
|
|
||||||
new_email=f"{new_email}@gmail.com"
|
|
||||||
|
|
||||||
if new_email == v.email:
|
if new_email == v.email:
|
||||||
return render_template("settings_security.html", v=v, error="That email is already yours!")
|
return render_template("settings_security.html", v=v, error="That email is already yours!")
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
<i class="fas fa-trophy fa-sm fa-fw mr-1"></i>
|
<i class="fas fa-trophy fa-sm fa-fw mr-1"></i>
|
||||||
Give awards
|
Give awards
|
||||||
</button>
|
</button>
|
||||||
{% if 'rdrama.net' not in request.host or v.admin_level > 2 %}
|
{% if request.host != 'rdrama.net' or v.admin_level > 2 %}
|
||||||
<button onclick="post_toast('/admin/monthly')" class="btn btn-yellow">
|
<button onclick="post_toast('/admin/monthly')" class="btn btn-yellow">
|
||||||
<i class="fas fa-dollar-sign fa-sm fa-fw mr-1"></i>
|
<i class="fas fa-dollar-sign fa-sm fa-fw mr-1"></i>
|
||||||
Grant monthly MarseyBux
|
Grant monthly MarseyBux
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<thead class="bg-primary text-white">
|
<thead class="bg-primary text-white">
|
||||||
<tr>
|
<tr>
|
||||||
<th class="font-bold">Name</th>
|
<th class="font-bold">Name</th>
|
||||||
<th class="font-bold text-right">Score</th>
|
<th class="font-bold text-right">Truescore</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
{% for user in admins %}
|
{% for user in admins %}
|
||||||
|
|
|
@ -232,7 +232,7 @@
|
||||||
<span class="patron" style="background-color:#{{c.author.namecolor}};">
|
<span class="patron" style="background-color:#{{c.author.namecolor}};">
|
||||||
{{c.author.username}}
|
{{c.author.username}}
|
||||||
</span>
|
</span>
|
||||||
{% elif c.distinguish_level and 'rama' in request.host %}
|
{% elif c.distinguish_level and request.host == 'rdrama.net' %}
|
||||||
<span class="mod" style="background-color:#{{c.author.namecolor}};">
|
<span class="mod" style="background-color:#{{c.author.namecolor}};">
|
||||||
{{c.author.username}}
|
{{c.author.username}}
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -58,7 +58,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<li class="hidden md:block">
|
<li class="hidden md:block">
|
||||||
<button class="copy-link hover:text-gray-400" data-clipboard-text="{% if 'rama' in request.host %}https://rdrama.com{{c.permalink}}{% else %}{{c.permalink | full_link}}{% endif %}">
|
<button class="copy-link hover:text-gray-400" data-clipboard-text="{% if request.host == 'rdrama.net' %}https://rdrama.com{{c.permalink}}{% else %}{{c.permalink | full_link}}{% endif %}">
|
||||||
<i class="fas fa-link fa-fw mr-1"></i>Copy link
|
<i class="fas fa-link fa-fw mr-1"></i>Copy link
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
<img loading="lazy" src="/assets/images/emojis/marseymerchant.webp?a=1" class="w-14 h-14 object-contain mb-4">
|
<img loading="lazy" src="/assets/images/emojis/marseymerchant.webp?a=1" class="w-14 h-14 object-contain mb-4">
|
||||||
<h1 class="h5">401 Not Authorized</h1>
|
<h1 class="h5">401 Not Authorized</h1>
|
||||||
<p class="text-gray-500 mb-3">
|
<p class="text-gray-500 mb-3">
|
||||||
This page is only available to {% if "rama" in request.host %}paypigs{% else %}patrons{% endif %}:
|
This page is only available to {% if request.host == "rdrama.net" %}paypigs{% else %}patrons{% endif %}:
|
||||||
</p>
|
</p>
|
||||||
<a rel="nofollow noopener noreferrer" href="{{'GUMROAD_LINK' | app_config}}" class='btn btn-gray'>{{'GUMROAD_LINK' | app_config}}</a>
|
<a rel="nofollow noopener noreferrer" href="{{'GUMROAD_LINK' | app_config}}" class='btn btn-gray'>{{'GUMROAD_LINK' | app_config}}</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<nav class="shadow shadow-md fixed-top">
|
<nav class="shadow shadow-md fixed-top">
|
||||||
{% if "rama" in request.host %}
|
{% if request.host == "rdrama.net" %}
|
||||||
<div id="srd" style="width: 100%; background-color: var(--primary); padding: 2px; text-align: center; font-weight: bold;">
|
<div id="srd" style="width: 100%; background-color: var(--primary); padding: 2px; text-align: center; font-weight: bold;">
|
||||||
<a style="color: white" href="https://reddit.com/r/SubredditDrama">/r/SubredditDrama official site</a>
|
<a style="color: white" href="https://reddit.com/r/SubredditDrama">/r/SubredditDrama official site</a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -9,9 +9,7 @@
|
||||||
<div class="flex-grow-1">
|
<div class="flex-grow-1">
|
||||||
<a href="/" class="navbar-brand mr-auto">
|
<a href="/" class="navbar-brand mr-auto">
|
||||||
<img loading="lazy" height="30" src="/assets/CHRISTMAS/images/{{'SITE_NAME' | app_config}}/headericon.webp?a=1">
|
<img loading="lazy" height="30" src="/assets/CHRISTMAS/images/{{'SITE_NAME' | app_config}}/headericon.webp?a=1">
|
||||||
{% if "gigachadlife" in request.host %}
|
{% if request.host != 'pcmemes.net' %}
|
||||||
<span style="font-weight: bold; font-size: 1.2rem;">GigaChadLife</span>
|
|
||||||
{% elif 'pcm' not in request.host %}
|
|
||||||
<img loading="lazy" src="/assets/CHRISTMAS/images/{{'SITE_NAME' | app_config}}/logo.webp?a=1" height="20">
|
<img loading="lazy" src="/assets/CHRISTMAS/images/{{'SITE_NAME' | app_config}}/logo.webp?a=1" height="20">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</a>
|
</a>
|
||||||
|
@ -123,11 +121,11 @@
|
||||||
<a class="dropdown-item" rel="nofollow noopener noreferrer" href="/report_bugs"><i class="fas fa-bug fa-fw text-left mr-3"></i>Report bugs or suggestions</a>
|
<a class="dropdown-item" rel="nofollow noopener noreferrer" href="/report_bugs"><i class="fas fa-bug fa-fw text-left mr-3"></i>Report bugs or suggestions</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if 'pcm' not in request.host %}
|
{% if request.host != 'pcmemes.net' %}
|
||||||
<a class="dropdown-item" href="/discord"><i class="fab fa-discord fa-fw text-left mr-3"></i>Discord</a>
|
<a class="dropdown-item" href="/discord"><i class="fab fa-discord fa-fw text-left mr-3"></i>Discord</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<a class="dropdown-item" rel="nofollow noopener noreferrer" href="{{'GUMROAD_LINK' | app_config}}"><i class="fas fa-dollar-sign fa-fw text-left mr-3"></i>Donate</a>
|
<a class="dropdown-item" rel="nofollow noopener noreferrer" href="{{'GUMROAD_LINK' | app_config}}"><i class="fas fa-dollar-sign fa-fw text-left mr-3"></i>Donate</a>
|
||||||
{% if 'rama' in request.host %}<a class="dropdown-item" href="/archives"><i class="fas fa-book fa-fw text-left mr-3"></i>Archives</a>{% endif %}
|
{% if request.host == 'rdrama.net' %}<a class="dropdown-item" href="/archives"><i class="fas fa-book fa-fw text-left mr-3"></i>Archives</a>{% endif %}
|
||||||
<a class="dropdown-item" href="/contact"><i class="fas fa-file-signature fa-fw text-left mr-3"></i>Contact us</a>
|
<a class="dropdown-item" href="/contact"><i class="fas fa-file-signature fa-fw text-left mr-3"></i>Contact us</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="px-2">
|
<div class="px-2">
|
||||||
|
@ -185,11 +183,11 @@
|
||||||
<a class="nav-item nav-link" rel="nofollow noopener noreferrer" href="/report_bugs"><i class="fas fa-bug fa-fw mr-3"></i>Report bugs or suggestions</a>
|
<a class="nav-item nav-link" rel="nofollow noopener noreferrer" href="/report_bugs"><i class="fas fa-bug fa-fw mr-3"></i>Report bugs or suggestions</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if 'pcm' not in request.host %}
|
{% if request.host != 'pcmemes.net' %}
|
||||||
<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="/discord"><i class="fab fa-discord fa-fw mr-3"></i>Discord</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<a class="nav-item nav-link" rel="nofollow noopener noreferrer" href="{{'GUMROAD_LINK' | app_config}}"><i class="fas fa-dollar-sign fa-fw mr-3"></i>Donate</a>
|
<a class="nav-item nav-link" rel="nofollow noopener noreferrer" href="{{'GUMROAD_LINK' | app_config}}"><i class="fas fa-dollar-sign fa-fw mr-3"></i>Donate</a>
|
||||||
{% if 'rama' in request.host %}<a class="nav-item nav-link" href="/archives"><i class="fas fa-book fa-fw mr-3"></i>Archives</a>{% endif %}
|
{% if request.host == 'rdrama.net' %}<a class="nav-item nav-link" href="/archives"><i class="fas fa-book fa-fw mr-3"></i>Archives</a>{% endif %}
|
||||||
<a class="nav-item nav-link" href="/contact"><i class="fas fa-file-signature fa-fw mr-3"></i>Contact us</a>
|
<a class="nav-item nav-link" href="/contact"><i class="fas fa-file-signature fa-fw mr-3"></i>Contact us</a>
|
||||||
|
|
||||||
<li class="nav-item border-top border-bottom mt-2 pt-2">
|
<li class="nav-item border-top border-bottom mt-2 pt-2">
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<li>
|
<li>
|
||||||
<button class="btn btn-gray w-full text-left copy-link" data-bs-dismiss="modal" data-clipboard-text="{% if 'rama' in request.host %}https://rdrama.com{{c.permalink}}{% else %}{{c.permalink | full_link}}{% endif %}">
|
<button class="btn btn-gray w-full text-left copy-link" data-bs-dismiss="modal" data-clipboard-text="{% if request.host == 'rdrama.net' %}https://rdrama.com{{c.permalink}}{% else %}{{c.permalink | full_link}}{% endif %}">
|
||||||
<i class="fas fa-copy fa-fw mr-4"></i>Copy link
|
<i class="fas fa-copy fa-fw mr-4"></i>Copy link
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -60,7 +60,7 @@
|
||||||
</marquee>
|
</marquee>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if 'rama' not in request.host %}
|
{% if request.host != 'rdrama.net' %}
|
||||||
<!-- <script defer>
|
<!-- <script defer>
|
||||||
function poll_vote(cid) {
|
function poll_vote(cid) {
|
||||||
{% if v %}
|
{% if v %}
|
||||||
|
@ -368,7 +368,7 @@
|
||||||
<span class="patron" style="background-color:#{{p.author.namecolor}};">
|
<span class="patron" style="background-color:#{{p.author.namecolor}};">
|
||||||
{{p.author.username}}
|
{{p.author.username}}
|
||||||
</span>
|
</span>
|
||||||
{% elif p.distinguish_level and 'rama' in request.host %}
|
{% elif p.distinguish_level and request.host == 'rdrama.net' %}
|
||||||
<span class="mod">
|
<span class="mod">
|
||||||
{{p.author.username}}
|
{{p.author.username}}
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -78,7 +78,7 @@
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="hidden md:inline-block">
|
<li class="hidden md:inline-block">
|
||||||
<button class="copy-link hover:text-gray-400" data-clipboard-text="{% if 'rama' in request.host %}https://rdrama.com{{p.permalink}}{% else %}{{p.permalink | full_link}}{% endif %}">
|
<button class="copy-link hover:text-gray-400" data-clipboard-text="{% if request.host == 'rdrama.net' %}https://rdrama.com{{p.permalink}}{% else %}{{p.permalink | full_link}}{% endif %}">
|
||||||
<i class="fas fa-link fa-fw mr-1"></i>Copy link
|
<i class="fas fa-link fa-fw mr-1"></i>Copy link
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
|
@ -90,7 +90,7 @@
|
||||||
<ul class="dropdown-menu w-56 bg-gray-900 rounded-md shadow-lg" aria-labelledby="dropdownPostActions">
|
<ul class="dropdown-menu w-56 bg-gray-900 rounded-md shadow-lg" aria-labelledby="dropdownPostActions">
|
||||||
<!-- Does not require auth -->
|
<!-- Does not require auth -->
|
||||||
<li class="hidden">
|
<li class="hidden">
|
||||||
<button class="copy-link dropdown-item dropdown-item-primary" role="button" data-clipboard-text="{% if 'rama' in request.host %}https://rdrama.com{{p.permalink}}{% else %}{{p.permalink | full_link}}{% endif %}">
|
<button class="copy-link dropdown-item dropdown-item-primary" role="button" data-clipboard-text="{% if request.host == 'rdrama.net' %}https://rdrama.com{{p.permalink}}{% else %}{{p.permalink | full_link}}{% endif %}">
|
||||||
<i class="fas fa-link fa-sm fa-fw mr-4"></i>Copy link
|
<i class="fas fa-link fa-sm fa-fw mr-4"></i>Copy link
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
<li class="mr-5">
|
<li class="mr-5">
|
||||||
<button class="copy-link" data-clipboard-text="{% if 'rama' in request.host %}https://rdrama.com{{p.permalink}}{% else %}{{p.permalink | full_link}}{% endif %}">
|
<button class="copy-link" data-clipboard-text="{% if request.host == 'rdrama.net' %}https://rdrama.com{{p.permalink}}{% else %}{{p.permalink | full_link}}{% endif %}">
|
||||||
<i class="fas fa-link fa-fw"></i>
|
<i class="fas fa-link fa-fw"></i>
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
<a class="list-inline-item text-muted d-none d-md-inline-block" href="javascript:void(0)" data-bs-toggle="modal" data-bs-target="#awardModal" onclick="awardModal('/post/{{p.id}}/awards')"><i class="fas fa-gift fa-fw"></i>Give Award</a>
|
<a class="list-inline-item text-muted d-none d-md-inline-block" href="javascript:void(0)" data-bs-toggle="modal" data-bs-target="#awardModal" onclick="awardModal('/post/{{p.id}}/awards')"><i class="fas fa-gift fa-fw"></i>Give Award</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<a class="list-inline-item copy-link" href="javascript:void(0);" role="button" data-clipboard-text="{% if 'rama' in request.host %}https://rdrama.com{{p.permalink}}{% else %}{{p.permalink | full_link}}{% endif %}"><i class="fas fa-copy"></i>Copy link</a>
|
<a class="list-inline-item copy-link" href="javascript:void(0);" role="button" data-clipboard-text="{% if request.host == 'rdrama.net' %}https://rdrama.com{{p.permalink}}{% else %}{{p.permalink | full_link}}{% endif %}"><i class="fas fa-copy"></i>Copy link</a>
|
||||||
|
|
||||||
{% if v %}
|
{% if v %}
|
||||||
<a id="subscribe-{{p.id}}" class="{% if p.id in v.subscribed_idlist() %}d-none{% endif %} list-inline-item" href="javascript:void(0)" onclick="post_toast2('/subscribe/{{p.id}}','subscribe-{{p.id}}','unsubscribe-{{p.id}}')"><i class="fas fa-eye"></i>Subscribe</a>
|
<a id="subscribe-{{p.id}}" class="{% if p.id in v.subscribed_idlist() %}d-none{% endif %} list-inline-item" href="javascript:void(0)" onclick="post_toast2('/subscribe/{{p.id}}','subscribe-{{p.id}}','unsubscribe-{{p.id}}')"><i class="fas fa-eye"></i>Subscribe</a>
|
||||||
|
|
|
@ -128,7 +128,7 @@
|
||||||
<span class="patron flex-shrink-0" style="background-color:#{{p.author.namecolor}};">
|
<span class="patron flex-shrink-0" style="background-color:#{{p.author.namecolor}};">
|
||||||
{{p.author.username}}
|
{{p.author.username}}
|
||||||
</span>
|
</span>
|
||||||
{% elif p.distinguish_level and 'rama' in request.host %}
|
{% elif p.distinguish_level and request.host == 'rdrama.net' %}
|
||||||
<span class="mod flex-shrink-0">
|
<span class="mod flex-shrink-0">
|
||||||
{{p.author.username}}
|
{{p.author.username}}
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<th style="font-weight:bold;">#</th>
|
<th style="font-weight:bold;">#</th>
|
||||||
<th style="font-weight:bold;">Name</th>
|
<th style="font-weight:bold;">Name</th>
|
||||||
<th style="font-weight:bold; text-align:right;">Score</th>
|
<th style="font-weight:bold; text-align:right;">Truescore</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
{% for user in users %}
|
{% for user in users %}
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<p class="text-gray-500 mb-3">
|
<p class="text-gray-500 mb-3">
|
||||||
YOU AREN'T WELCOME HERE GO AWAY
|
YOU AREN'T WELCOME HERE GO AWAY
|
||||||
</p>
|
</p>
|
||||||
{% if u.id == 253 and 'rama' in request.host %}
|
{% if u.id == 253 and request.host == 'rdrama.net' %}
|
||||||
<div class="bg-gray-100 border border-gray-300 p-4">
|
<div class="bg-gray-100 border border-gray-300 p-4">
|
||||||
{% if v and v.coins > 500 and not v.is_suspended %}
|
{% if v and v.coins > 500 and not v.is_suspended %}
|
||||||
<p class="text-gray-500 mb-3">
|
<p class="text-gray-500 mb-3">
|
||||||
|
|
|
@ -63,7 +63,7 @@
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<pre></pre>
|
<pre></pre>
|
||||||
{% if 'rdrama.net' not in request.host or v.admin_level > 2 %}
|
{% if request.host != 'rdrama.net' or v.id == 1 %}
|
||||||
<div><a class="btn btn-danger" role="button" onclick="post_toast('/admin/monthly')">Grant Monthly Marseybux</a></div>
|
<div><a class="btn btn-danger" role="button" onclick="post_toast('/admin/monthly')">Grant Monthly Marseybux</a></div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
|
@ -11,7 +11,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<th style="font-weight:bold;">#</th>
|
<th style="font-weight:bold;">#</th>
|
||||||
<th style="font-weight:bold;">Name</th>
|
<th style="font-weight:bold;">Name</th>
|
||||||
<th style="font-weight:bold; text-align:right;">Score</th>
|
<th style="font-weight:bold; text-align:right;">Truescore</th>
|
||||||
<th style="font-weight:bold; text-align:right;">Mod actions</th>
|
<th style="font-weight:bold; text-align:right;">Mod actions</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
|
@ -203,7 +203,7 @@
|
||||||
{% if c.author.verified %}<i class="fas fa-badge-check align-middle ml-1" style="color:{% if c.author.verifiedcolor %}#{{c.author.verifiedcolor}}{% else %}#1DA1F2{% endif %}" data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-original-title="{{c.author.verified}}"></i>
|
{% if c.author.verified %}<i class="fas fa-badge-check align-middle ml-1" style="color:{% if c.author.verifiedcolor %}#{{c.author.verifiedcolor}}{% else %}#1DA1F2{% endif %}" data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-original-title="{{c.author.verified}}"></i>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<a class="user-name text-decoration-none" onclick='popclick({{c.author.json_popover(v) | tojson}})' data-bs-placement="bottom" data-bs-toggle="popover" data-bs-trigger="focus" data-content-id="popover" role="button" tabindex="0" style="color:#{{c.author.namecolor}}; font-size:12px; font-weight:bold;"><img alt="@{{c.author.username}}'s profile picture" loading="lazy" src="{{c.author.profile_url}}" class="profile-pic-25 mr-2"><span {% if c.author.patron and not c.distinguish_level %}class="patron" style="background-color:#{{c.author.namecolor}};"{% elif c.distinguish_level and 'rama' in request.host %}class="mod"{% endif %}>{{c.author.username}}</span></a>
|
<a class="user-name text-decoration-none" onclick='popclick({{c.author.json_popover(v) | tojson}})' data-bs-placement="bottom" data-bs-toggle="popover" data-bs-trigger="focus" data-content-id="popover" role="button" tabindex="0" style="color:#{{c.author.namecolor}}; font-size:12px; font-weight:bold;"><img alt="@{{c.author.username}}'s profile picture" loading="lazy" src="{{c.author.profile_url}}" class="profile-pic-25 mr-2"><span {% if c.author.patron and not c.distinguish_level %}class="patron" style="background-color:#{{c.author.namecolor}};"{% elif c.distinguish_level and request.host == 'rdrama.net' %}class="mod"{% endif %}>{{c.author.username}}</span></a>
|
||||||
{% if c.author.customtitle %} <bdi style="color: #{{c.author.titlecolor}}"> {% if c.author.quadrant %}<img alt="{{c.author.quadrant}} quadrant" loading="lazy" height="20" src="/static/assets/images/quadrants/{{c.author.quadrant}}.webp?a=3">{% endif %}{{c.author.customtitle | safe}}</bdi>{% endif %}
|
{% if c.author.customtitle %} <bdi style="color: #{{c.author.titlecolor}}"> {% if c.author.quadrant %}<img alt="{{c.author.quadrant}} quadrant" loading="lazy" height="20" src="/static/assets/images/quadrants/{{c.author.quadrant}}.webp?a=3">{% endif %}{{c.author.customtitle | safe}}</bdi>{% endif %}
|
||||||
|
|
||||||
{% if c.parent_comment_id and not standalone and level != 1 %}<a href="#comment-{{ c.parent_comment_id }}-only" class="text-muted ml-2"><i class="fas fa-reply fa-sm fa-fw fa-flip-horizontal mr-1"></i>{{ c.parent_comment.author.username }}</a>{% endif %}
|
{% if c.parent_comment_id and not standalone and level != 1 %}<a href="#comment-{{ c.parent_comment_id }}-only" class="text-muted ml-2"><i class="fas fa-reply fa-sm fa-fw fa-flip-horizontal mr-1"></i>{{ c.parent_comment.author.username }}</a>{% endif %}
|
||||||
|
@ -422,7 +422,7 @@
|
||||||
|
|
||||||
<a class="btn caction nobackground px-1 text-muted" href="{{c.permalink}}"><i class="fas fa-book-open"></i>Context</a>
|
<a class="btn caction nobackground px-1 text-muted" href="{{c.permalink}}"><i class="fas fa-book-open"></i>Context</a>
|
||||||
|
|
||||||
<button class="btn caction py-0 nobackground px-1 text-muted copy-link" role="button" role="button" data-clipboard-text="{% if 'rama' in request.host %}https://rdrama.com{{c.permalink}}{% else %}{{c.permalink | full_link}}{% endif %}"><i class="fas fa-copy"></i>Copy link</button>
|
<button class="btn caction py-0 nobackground px-1 text-muted copy-link" role="button" role="button" data-clipboard-text="{% if request.host == 'rdrama.net' %}https://rdrama.com{{c.permalink}}{% else %}{{c.permalink | full_link}}{% endif %}"><i class="fas fa-copy"></i>Copy link</button>
|
||||||
|
|
||||||
{% if v %}
|
{% if v %}
|
||||||
<button class="btn caction py-0 nobackground px-1 text-muted" data-bs-toggle="modal" data-bs-target="#reportCommentModal" onclick="report_commentModal('{{c.id}}','{{c.author.username}}',)"><i class="fas fa-flag fa-fw"></i>Report</button>
|
<button class="btn caction py-0 nobackground px-1 text-muted" data-bs-toggle="modal" data-bs-target="#reportCommentModal" onclick="report_commentModal('{{c.id}}','{{c.author.username}}',)"><i class="fas fa-flag fa-fw"></i>Report</button>
|
||||||
|
@ -575,7 +575,7 @@
|
||||||
|
|
||||||
<a href="/votes?link={{c.fullname}}"><li class="list-group-item"><i class="fas fa-arrows-v"></i>Votes</li></a>
|
<a href="/votes?link={{c.fullname}}"><li class="list-group-item"><i class="fas fa-arrows-v"></i>Votes</li></a>
|
||||||
|
|
||||||
<a role="button" role="button" class="list-group-item copy-link" data-bs-dismiss="modal" data-clipboard-text="{% if 'rama' in request.host %}https://rdrama.com{{c.permalink}}{% else %}{{c.permalink | full_link}}{% endif %}"><i class="fas fa-copy"></i>Copy link</a>
|
<a role="button" role="button" class="list-group-item copy-link" data-bs-dismiss="modal" data-clipboard-text="{% if request.host == 'rdrama.net' %}https://rdrama.com{{c.permalink}}{% else %}{{c.permalink | full_link}}{% endif %}"><i class="fas fa-copy"></i>Copy link</a>
|
||||||
|
|
||||||
<a class="list-group-item" href="{{c.permalink}}"><i class="fas fa-dna"></i>Context</a>
|
<a class="list-group-item" href="{{c.permalink}}"><i class="fas fa-dna"></i>Context</a>
|
||||||
|
|
||||||
|
|
|
@ -210,7 +210,7 @@
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body id="{% if request.path != '/comments' %}{% block pagetype %}frontpage{% endblock %}{% endif %}" style="{% if path != '/formatting' %}overflow-x: hidden; {% endif %}{% if v and v.background %} background:url(/static/assets/images/backgrounds/{{v.background}}) no-repeat center center fixed !important; background-size: cover!important; background-color: #000!important;{% endif %} {% if 'rama' in request.host %}margin-top: 29px!important;{% endif %}">
|
<body id="{% if request.path != '/comments' %}{% block pagetype %}frontpage{% endblock %}{% endif %}" style="{% if path != '/formatting' %}overflow-x: hidden; {% endif %}{% if v and v.background %} background:url(/static/assets/images/backgrounds/{{v.background}}) no-repeat center center fixed !important; background-size: cover!important; background-color: #000!important;{% endif %} {% if request.host == 'rdrama.net' %}margin-top: 29px!important;{% endif %}">
|
||||||
|
|
||||||
{% block Banner %}
|
{% block Banner %}
|
||||||
{% if '@' not in request.path %}
|
{% if '@' not in request.path %}
|
||||||
|
@ -226,7 +226,7 @@
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
{% if v %}
|
{% if v %}
|
||||||
<a href="{% if 'rama' in request.host %}https://secure.transequality.org/site/Donation2?df_id=1480{% else %}/{% endif %}">
|
<a href="{% if request.host == 'rdrama.net' %}https://secure.transequality.org/site/Donation2?df_id=1480{% else %}/{% endif %}">
|
||||||
<img class="banner" alt="site banner" src="/static/assets/images/{{'SITE_NAME' | app_config}}/banner.webp?a=7" width="100%">
|
<img class="banner" alt="site banner" src="/static/assets/images/{{'SITE_NAME' | app_config}}/banner.webp?a=7" width="100%">
|
||||||
</a>
|
</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
<div class="text-center px-3 my-8">
|
<div class="text-center px-3 my-8">
|
||||||
<img alt=":#marseymerchant:" loading="lazy" class="mb-2" src="/static/assets/images/emojis/marseymerchant.webp?a=3">
|
<img alt=":#marseymerchant:" loading="lazy" class="mb-2" src="/static/assets/images/emojis/marseymerchant.webp?a=3">
|
||||||
<h1 class="h5">401 Not Authorized</h1>
|
<h1 class="h5">401 Not Authorized</h1>
|
||||||
<p class="text-muted">This page is only available to {% if "rama" in request.host %}paypigs{% else %}patrons{% endif %}:</p>
|
<p class="text-muted">This page is only available to {% if request.host == "rdrama.net" %}paypigs{% else %}patrons{% endif %}:</p>
|
||||||
<a rel="nofollow noopener noreferrer" href="{{'GUMROAD_LINK' | app_config}}">{{'GUMROAD_LINK' | app_config}}</a>
|
<a rel="nofollow noopener noreferrer" href="{{'GUMROAD_LINK' | app_config}}">{{'GUMROAD_LINK' | app_config}}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<nav class="shadow shadow-md fixed-top">
|
<nav class="shadow shadow-md fixed-top">
|
||||||
{% if "rama" in request.host %}
|
{% if request.host == "rdrama.net" %}
|
||||||
<div id="srd" style="width: 100%; background-color: var(--primary); padding: 2px; text-align: center; font-weight: bold;">
|
<div id="srd" style="width: 100%; background-color: var(--primary); padding: 2px; text-align: center; font-weight: bold;">
|
||||||
<a style="color: white" href="https://reddit.com/r/SubredditDrama">/r/SubredditDrama official site</a>
|
<a style="color: white" href="https://reddit.com/r/SubredditDrama">/r/SubredditDrama official site</a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -9,9 +9,7 @@
|
||||||
<div class="flex-grow-1">
|
<div class="flex-grow-1">
|
||||||
<a href="/" class="navbar-brand mr-auto">
|
<a href="/" class="navbar-brand mr-auto">
|
||||||
<img alt="header icon" loading="lazy" height="30" src="/static/assets/images/{{'SITE_NAME' | app_config}}/headericon.webp?a=7">
|
<img alt="header icon" loading="lazy" height="30" src="/static/assets/images/{{'SITE_NAME' | app_config}}/headericon.webp?a=7">
|
||||||
{% if "gigachadlife" in request.host %}
|
{% if request.host != 'pcmemes.net' %}
|
||||||
<span style="font-weight: bold; font-size: 1.2rem;">GigaChadLife</span>
|
|
||||||
{% elif 'pcm' not in request.host %}
|
|
||||||
<img alt="logo" loading="lazy" src="/static/assets/images/{{'SITE_NAME' | app_config}}/logo.webp?a=3" height="20">
|
<img alt="logo" loading="lazy" src="/static/assets/images/{{'SITE_NAME' | app_config}}/logo.webp?a=3" height="20">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</a>
|
</a>
|
||||||
|
@ -122,11 +120,11 @@
|
||||||
<a class="dropdown-item" rel="nofollow noopener noreferrer" href="/report_bugs"><i class="fas fa-bug fa-fw text-left mr-3"></i>Report bugs or suggestions</a>
|
<a class="dropdown-item" rel="nofollow noopener noreferrer" href="/report_bugs"><i class="fas fa-bug fa-fw text-left mr-3"></i>Report bugs or suggestions</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if 'pcm' not in request.host %}
|
{% if request.host != 'pcmemes.net' %}
|
||||||
<a class="dropdown-item" href="/discord"><i class="fab fa-discord fa-fw text-left mr-3"></i>Discord</a>
|
<a class="dropdown-item" href="/discord"><i class="fab fa-discord fa-fw text-left mr-3"></i>Discord</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<a class="dropdown-item" rel="nofollow noopener noreferrer" href="{{'GUMROAD_LINK' | app_config}}"><i class="fas fa-dollar-sign fa-fw text-left mr-3"></i>Donate</a>
|
<a class="dropdown-item" rel="nofollow noopener noreferrer" href="{{'GUMROAD_LINK' | app_config}}"><i class="fas fa-dollar-sign fa-fw text-left mr-3"></i>Donate</a>
|
||||||
{% if 'rama' in request.host %}<a class="dropdown-item" href="/archives"><i class="fas fa-book fa-fw text-left mr-3"></i>Archives</a>{% endif %}
|
{% if request.host == 'rdrama.net' %}<a class="dropdown-item" href="/archives"><i class="fas fa-book fa-fw text-left mr-3"></i>Archives</a>{% endif %}
|
||||||
<a class="dropdown-item" href="/contact"><i class="fas fa-file-signature fa-fw text-left mr-3"></i>Contact us</a>
|
<a class="dropdown-item" href="/contact"><i class="fas fa-file-signature fa-fw text-left mr-3"></i>Contact us</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="px-2">
|
<div class="px-2">
|
||||||
|
@ -182,11 +180,11 @@
|
||||||
<a class="nav-item nav-link" rel="nofollow noopener noreferrer" href="/report_bugs"><i class="fas fa-bug fa-fw mr-3"></i>Report bugs or suggestions</a>
|
<a class="nav-item nav-link" rel="nofollow noopener noreferrer" href="/report_bugs"><i class="fas fa-bug fa-fw mr-3"></i>Report bugs or suggestions</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if 'pcm' not in request.host %}
|
{% if request.host != 'pcmemes.net' %}
|
||||||
<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="/discord"><i class="fab fa-discord fa-fw mr-3"></i>Discord</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<a class="nav-item nav-link" rel="nofollow noopener noreferrer" href="{{'GUMROAD_LINK' | app_config}}"><i class="fas fa-dollar-sign fa-fw mr-3"></i>Donate</a>
|
<a class="nav-item nav-link" rel="nofollow noopener noreferrer" href="{{'GUMROAD_LINK' | app_config}}"><i class="fas fa-dollar-sign fa-fw mr-3"></i>Donate</a>
|
||||||
{% if 'rama' in request.host %}<a class="nav-item nav-link" href="/archives"><i class="fas fa-book fa-fw mr-3"></i>Archives</a>{% endif %}
|
{% if request.host == 'rdrama.net' %}<a class="nav-item nav-link" href="/archives"><i class="fas fa-book fa-fw mr-3"></i>Archives</a>{% endif %}
|
||||||
<a class="nav-item nav-link" href="/contact"><i class="fas fa-file-signature fa-fw mr-3"></i>Contact us</a>
|
<a class="nav-item nav-link" href="/contact"><i class="fas fa-file-signature fa-fw mr-3"></i>Contact us</a>
|
||||||
|
|
||||||
<li class="nav-item border-top border-bottom mt-2 pt-2">
|
<li class="nav-item border-top border-bottom mt-2 pt-2">
|
||||||
|
|
|
@ -245,7 +245,7 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{% if "pcm" in request.host %}
|
{% if request.host == "pcmemes.net" %}
|
||||||
<pre>
|
<pre>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
<div class="settings">
|
<div class="settings">
|
||||||
|
|
||||||
{% if "pcm" in request.host.lower() %}
|
{% if request.host == "pcmemes.net".lower() %}
|
||||||
|
|
||||||
<h2 class="h5" name="referral">Quadrant</h2>
|
<h2 class="h5" name="referral">Quadrant</h2>
|
||||||
|
|
||||||
|
@ -295,7 +295,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
{% if 'pcm' not in request.host %}
|
{% if request.host != 'pcmemes.net' %}
|
||||||
<h2 class="h5" name="referral">Linked Accounts</h2>
|
<h2 class="h5" name="referral">Linked Accounts</h2>
|
||||||
|
|
||||||
<p class="text-small text-muted">Manage your connections to other services.</p>
|
<p class="text-small text-muted">Manage your connections to other services.</p>
|
||||||
|
|
|
@ -384,7 +384,7 @@
|
||||||
{% if p.active_flags %}<a class="btn btn-primary" role="button" style="padding:1px 5px; font-size:10px;" onclick="document.getElementById('flaggers').classList.toggle('d-none')">{{p.active_flags}} Reports</a>{% endif %}
|
{% if p.active_flags %}<a class="btn btn-primary" role="button" style="padding:1px 5px; font-size:10px;" onclick="document.getElementById('flaggers').classList.toggle('d-none')">{{p.active_flags}} Reports</a>{% endif %}
|
||||||
{% if p.author.verified %}<i class="fas fa-badge-check align-middle ml-1" style="color:{% if p.author.verifiedcolor %}#{{p.author.verifiedcolor}}{% else %}#1DA1F2{% endif %}" data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-original-title="{{p.author.verified}}"></i>
|
{% if p.author.verified %}<i class="fas fa-badge-check align-middle ml-1" style="color:{% if p.author.verifiedcolor %}#{{p.author.verifiedcolor}}{% else %}#1DA1F2{% endif %}" data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-original-title="{{p.author.verified}}"></i>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<a class="user-name text-decoration-none" onclick='popclick({{p.author.json_popover(v) | tojson}})' data-bs-placement="bottom" data-bs-toggle="popover" data-bs-trigger="focus" data-content-id="popover" role="button" tabindex="0" style="color: #{{p.author.namecolor}}; font-weight: bold;" class="user-name"><img alt="@{{p.author.username}}'s profile picture" loading="lazy" src="{{p.author.profile_url}}" class="profile-pic-25 mr-2"><span {% if p.author.patron and not p.distinguish_level %}class="patron" style="background-color:#{{p.author.namecolor}};"{% elif p.distinguish_level and 'rama' in request.host %}class="mod"{% endif %}>{{p.author.username}}</span></a>{% if p.author.customtitle %} <bdi style="color: #{{p.author.titlecolor}}"> {% if p.author.quadrant %}<img alt="{{p.author.quadrant}} quadrant" loading="lazy" height="20" src="/static/assets/images/quadrants/{{p.author.quadrant}}.webp?a=3">{% endif %}{{p.author.customtitle | safe}}</bdi>{% endif %}
|
<a class="user-name text-decoration-none" onclick='popclick({{p.author.json_popover(v) | tojson}})' data-bs-placement="bottom" data-bs-toggle="popover" data-bs-trigger="focus" data-content-id="popover" role="button" tabindex="0" style="color: #{{p.author.namecolor}}; font-weight: bold;" class="user-name"><img alt="@{{p.author.username}}'s profile picture" loading="lazy" src="{{p.author.profile_url}}" class="profile-pic-25 mr-2"><span {% if p.author.patron and not p.distinguish_level %}class="patron" style="background-color:#{{p.author.namecolor}};"{% elif p.distinguish_level and request.host == 'rdrama.net' %}class="mod"{% endif %}>{{p.author.username}}</span></a>{% if p.author.customtitle %} <bdi style="color: #{{p.author.titlecolor}}"> {% if p.author.quadrant %}<img alt="{{p.author.quadrant}} quadrant" loading="lazy" height="20" src="/static/assets/images/quadrants/{{p.author.quadrant}}.webp?a=3">{% endif %}{{p.author.customtitle | safe}}</bdi>{% endif %}
|
||||||
<span data-bs-toggle="tooltip" data-bs-placement="bottom" id="timestamp" onmouseover="timestamp('timestamp','{{p.created_utc}}')"> {{p.age_string}}</span>
|
<span data-bs-toggle="tooltip" data-bs-placement="bottom" id="timestamp" onmouseover="timestamp('timestamp','{{p.created_utc}}')"> {{p.age_string}}</span>
|
||||||
({% if p.is_image %}image post{% elif p.is_video %}video post{% elif p.realurl(v) %}<a href="/search/posts/?q=domain%3A{{p.domain}}&sort=new&t=all" {% if not v or v.newtabexternal %}target="_blank"{% endif %}>{{p.domain}}</a>{% else %}text post{% endif %})
|
({% if p.is_image %}image post{% elif p.is_video %}video post{% elif p.realurl(v) %}<a href="/search/posts/?q=domain%3A{{p.domain}}&sort=new&t=all" {% if not v or v.newtabexternal %}target="_blank"{% endif %}>{{p.domain}}</a>{% else %}text post{% endif %})
|
||||||
|
|
||||||
|
@ -570,7 +570,7 @@
|
||||||
<a class="list-inline-item text-muted d-none d-md-inline-block" role="button" data-bs-toggle="modal" data-bs-target="#awardModal" onclick="awardModal('/post/{{p.id}}/awards')"><i class="fas fa-gift fa-fw"></i>Give Award</a>
|
<a class="list-inline-item text-muted d-none d-md-inline-block" role="button" data-bs-toggle="modal" data-bs-target="#awardModal" onclick="awardModal('/post/{{p.id}}/awards')"><i class="fas fa-gift fa-fw"></i>Give Award</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<a class="list-inline-item copy-link" role="button" role="button" data-clipboard-text="{% if 'rama' in request.host %}https://rdrama.com{{p.permalink}}{% else %}{{p.permalink | full_link}}{% endif %}"><i class="fas fa-copy"></i>Copy link</a>
|
<a class="list-inline-item copy-link" role="button" role="button" data-clipboard-text="{% if request.host == 'rdrama.net' %}https://rdrama.com{{p.permalink}}{% else %}{{p.permalink | full_link}}{% endif %}"><i class="fas fa-copy"></i>Copy link</a>
|
||||||
|
|
||||||
{% if v %}
|
{% if v %}
|
||||||
<a id="subscribe-{{p.id}}" class="{% if p.id in v.subscribed_idlist() %}d-none{% endif %} list-inline-item" role="button" onclick="post_toast2('/subscribe/{{p.id}}','subscribe-{{p.id}}','unsubscribe-{{p.id}}')"><i class="fas fa-eye"></i>Subscribe</a>
|
<a id="subscribe-{{p.id}}" class="{% if p.id in v.subscribed_idlist() %}d-none{% endif %} list-inline-item" role="button" onclick="post_toast2('/subscribe/{{p.id}}','subscribe-{{p.id}}','unsubscribe-{{p.id}}')"><i class="fas fa-eye"></i>Subscribe</a>
|
||||||
|
@ -705,7 +705,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<a class="list-inline-item copy-link" role="button" role="button" data-clipboard-text="{% if 'rama' in request.host %}https://rdrama.com{{p.permalink}}{% else %}{{p.permalink | full_link}}{% endif %}"><i class="fas fa-link"></i>Copy link</a>
|
<a class="list-inline-item copy-link" role="button" role="button" data-clipboard-text="{% if request.host == 'rdrama.net' %}https://rdrama.com{{p.permalink}}{% else %}{{p.permalink | full_link}}{% endif %}"><i class="fas fa-link"></i>Copy link</a>
|
||||||
{% if v %}
|
{% if v %}
|
||||||
<li class="list-inline-item">
|
<li class="list-inline-item">
|
||||||
<a role="button" data-bs-toggle="modal" data-bs-target="#actionsModal">
|
<a role="button" data-bs-toggle="modal" data-bs-target="#actionsModal">
|
||||||
|
|
|
@ -193,7 +193,7 @@
|
||||||
{% if p.active_flags %}<a class="btn btn-primary" role="button" style="padding:1px 5px; font-size:10px;" onclick="document.getElementById('flaggers-{{p.id}}').classList.toggle('d-none')">{{p.active_flags}} Reports</a>{% endif %}
|
{% if p.active_flags %}<a class="btn btn-primary" role="button" style="padding:1px 5px; font-size:10px;" onclick="document.getElementById('flaggers-{{p.id}}').classList.toggle('d-none')">{{p.active_flags}} Reports</a>{% endif %}
|
||||||
{% if p.author.verified %}<i class="fas fa-badge-check align-middle ml-1" style="color:{% if p.author.verifiedcolor %}#{{p.author.verifiedcolor}}{% else %}#1DA1F2{% endif %}" data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-original-title="{{p.author.verified}}"></i>
|
{% if p.author.verified %}<i class="fas fa-badge-check align-middle ml-1" style="color:{% if p.author.verifiedcolor %}#{{p.author.verifiedcolor}}{% else %}#1DA1F2{% endif %}" data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-original-title="{{p.author.verified}}"></i>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<a class="user-name text-decoration-none" onclick='popclick({{p.author.json_popover(v) | tojson}})' data-bs-placement="bottom" data-bs-toggle="popover" data-bs-trigger="focus" data-content-id="popover" role="button" tabindex="0" style="color: #{{p.author.namecolor}}; font-weight: bold;"><img alt="@{{p.author.profile_url}}'s profile picture" loading="lazy" src="{{p.author.profile_url}}" class="profile-pic-25 mr-2"><span {% if p.author.patron and not p.distinguish_level %}class="patron" style="background-color:#{{p.author.namecolor}};"{% elif p.distinguish_level and 'rama' in request.host %}class="mod"{% endif %}>{{p.author.username}}</span></a>{% if p.author.customtitle %}<bdi style="color: #{{p.author.titlecolor}}"> {% if p.author.quadrant %}<img alt="{{p.author.quadrant}} quadrant" loading="lazy" height="20" src="/static/assets/images/quadrants/{{p.author.quadrant}}.webp?a=3">{% endif %}{{p.author.customtitle | safe}}</bdi>{% endif %}
|
<a class="user-name text-decoration-none" onclick='popclick({{p.author.json_popover(v) | tojson}})' data-bs-placement="bottom" data-bs-toggle="popover" data-bs-trigger="focus" data-content-id="popover" role="button" tabindex="0" style="color: #{{p.author.namecolor}}; font-weight: bold;"><img alt="@{{p.author.profile_url}}'s profile picture" loading="lazy" src="{{p.author.profile_url}}" class="profile-pic-25 mr-2"><span {% if p.author.patron and not p.distinguish_level %}class="patron" style="background-color:#{{p.author.namecolor}};"{% elif p.distinguish_level and request.host == 'rdrama.net' %}class="mod"{% endif %}>{{p.author.username}}</span></a>{% if p.author.customtitle %}<bdi style="color: #{{p.author.titlecolor}}"> {% if p.author.quadrant %}<img alt="{{p.author.quadrant}} quadrant" loading="lazy" height="20" src="/static/assets/images/quadrants/{{p.author.quadrant}}.webp?a=3">{% endif %}{{p.author.customtitle | safe}}</bdi>{% endif %}
|
||||||
<span data-bs-toggle="tooltip" data-bs-placement="bottom" onmouseover="timestamp('timestamp-{{p.id}}','{{p.created_utc}}')" id="timestamp-{{p.id}}"> {{p.age_string}}</span>
|
<span data-bs-toggle="tooltip" data-bs-placement="bottom" onmouseover="timestamp('timestamp-{{p.id}}','{{p.created_utc}}')" id="timestamp-{{p.id}}"> {{p.age_string}}</span>
|
||||||
|
|
||||||
({% if p.is_image %}image post{% elif p.is_video %}video post{% elif p.realurl(v) %}<a href="/search/posts/?q=domain%3A{{p.domain}}&sort=new&t=all" {% if v and v.newtab and not g.webview %}target="_blank"{% endif %}>{{p.domain}}</a>{% else %}text post{% endif %})
|
({% if p.is_image %}image post{% elif p.is_video %}video post{% elif p.realurl(v) %}<a href="/search/posts/?q=domain%3A{{p.domain}}&sort=new&t=all" {% if v and v.newtab and not g.webview %}target="_blank"{% endif %}>{{p.domain}}</a>{% else %}text post{% endif %})
|
||||||
|
@ -226,7 +226,7 @@
|
||||||
<a class="list-inline-item text-muted d-none d-md-inline-block" role="button" data-bs-toggle="modal" data-bs-target="#awardModal" onclick="awardModal('/post/{{p.id}}/awards')"><i class="fas fa-gift fa-fw"></i>Give Award</a>
|
<a class="list-inline-item text-muted d-none d-md-inline-block" role="button" data-bs-toggle="modal" data-bs-target="#awardModal" onclick="awardModal('/post/{{p.id}}/awards')"><i class="fas fa-gift fa-fw"></i>Give Award</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<a class="list-inline-item copy-link" role="button" data-clipboard-text="{% if 'rama' in request.host %}https://rdrama.com{{p.permalink}}{% else %}{{p.permalink | full_link}}{% endif %}"><i class="fas fa-copy"></i>Copy link</a>
|
<a class="list-inline-item copy-link" role="button" data-clipboard-text="{% if request.host == 'rdrama.net' %}https://rdrama.com{{p.permalink}}{% else %}{{p.permalink | full_link}}{% endif %}"><i class="fas fa-copy"></i>Copy link</a>
|
||||||
|
|
||||||
{% if v %}
|
{% if v %}
|
||||||
<a id="subscribe-{{p.id}}" class="{% if p.id in v.subscribed_idlist() %}d-none{% endif %} list-inline-item" role="button" onclick="post_toast2('/subscribe/{{p.id}}','subscribe-{{p.id}}','unsubscribe-{{p.id}}')"><i class="fas fa-eye"></i>Subscribe</a>
|
<a id="subscribe-{{p.id}}" class="{% if p.id in v.subscribed_idlist() %}d-none{% endif %} list-inline-item" role="button" onclick="post_toast2('/subscribe/{{p.id}}','subscribe-{{p.id}}','unsubscribe-{{p.id}}')"><i class="fas fa-eye"></i>Subscribe</a>
|
||||||
|
@ -328,7 +328,7 @@
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<a class="copy-link" role="button" data-clipboard-text="{% if 'rama' in request.host %}https://rdrama.com{{p.permalink}}{% else %}{{p.permalink | full_link}}{% endif %}" style="margin-right: 15px;margin-top:5px;"><i class="fas fa-link"></i></a>
|
<a class="copy-link" role="button" data-clipboard-text="{% if request.host == 'rdrama.net' %}https://rdrama.com{{p.permalink}}{% else %}{{p.permalink | full_link}}{% endif %}" style="margin-right: 15px;margin-top:5px;"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
{% if p.realbody(v) and request.path != "/changelog"%}
|
{% if p.realbody(v) and request.path != "/changelog"%}
|
||||||
<a class="list-inline-item" role="button" onclick="expandText('{{p.id}}')"><i class="fas fa-expand-alt mr-0 text-expand-icon-{{p.id}}"></i></a>
|
<a class="list-inline-item" role="button" onclick="expandText('{{p.id}}')"><i class="fas fa-expand-alt mr-0 text-expand-icon-{{p.id}}"></i></a>
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
</span>
|
</span>
|
||||||
<h2 class="h5">This account is private</h2>
|
<h2 class="h5">This account is private</h2>
|
||||||
<p class="text-muted">This user has enabled private mode to cloak their posting history.</p>
|
<p class="text-muted">This user has enabled private mode to cloak their posting history.</p>
|
||||||
{% if u.id == 253 and 'rama' in request.host %}
|
{% if u.id == 253 and request.host == 'rdrama.net' %}
|
||||||
{% if v and v.coins > 500 and not v.is_suspended %}
|
{% if v and v.coins > 500 and not v.is_suspended %}
|
||||||
<a class="btn btn-primary" role="button", onclick="post_toast('/pay_rent', '1')">Pay rent to view profile (500 coins)</a>
|
<a class="btn btn-primary" role="button", onclick="post_toast('/pay_rent', '1')">Pay rent to view profile (500 coins)</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue