get rid of <pre> being used as vertical spacing

remotes/1693176582716663532/tmp_refs/heads/watchparty
Aevann1 2022-10-29 02:38:39 +02:00
parent 35e2128dec
commit de8be8dd0e
51 changed files with 95 additions and 328 deletions

View File

@ -8,9 +8,7 @@
{% block customPadding %}px-3{% endblock %}
{% block content %}
<pre></pre>
<pre></pre>
<h3 class="pb-2">Admin Tools</h3>
<h3 class="pb-2 mt-2">Admin Tools</h3>
{% if (v.admin_level >= PERMS['SITE_SETTINGS_SIDEBARS_BANNERS_BADGES'] or v.admin_level >= PERMS['SITE_SETTINGS_SNAPPY_QUOTES']) and (SITE_NAME == 'rDrama' or SIDEBAR_THREAD or BANNER_THREAD or BADGE_THREAD or SNAPPY_THREAD) %}
<h4>Add Stuff</h4>
@ -110,8 +108,7 @@
</ul>
{% if v.admin_level >= PERMS['SITE_SETTINGS'] %}
<pre></pre>
<div class="custom-control custom-switch">
<div class="custom-control custom-switch mt-1">
<input autocomplete="off" type="checkbox" class="custom-control-input" id="signups" {% if site_settings['Signups'] %}checked{% endif %} onchange="post_toast(this,'/admin/site_settings/Signups');">
<label class="custom-control-label" for="signups">Signups</label>
</div>

View File

@ -6,12 +6,8 @@
{% endblock %}
{% block content %}
<pre>
</pre>
<h5>Vote Info</h5>
<h5 class="mt-3">Vote Info</h5>
<form action="/admin/alt_votes" method="get" class="mb-6">
<label for="link-input">Usernames</label>

View File

@ -31,9 +31,7 @@
</div>
{% endif %}
<pre></pre>
<pre></pre>
<h5>Badge Grant</h5>
<h5 class="mt-2">Badge Grant</h5>
<form action="/admin/badge_grant", method="post">
<input type="hidden" name="formkey" value="{{v.formkey}}">

View File

@ -31,9 +31,7 @@
</div>
{% endif %}
<pre></pre>
<pre></pre>
<h5>Badge Remove</h5>
<h5 class="mt-2">Badge Remove</h5>
<form action="/admin/badge_remove", method="post">
<input type="hidden" name="formkey" value="{{v.formkey}}">

View File

@ -6,10 +6,6 @@
{% block content %}
<pre>
</pre>
<script>
function unbanDomain(t, domain) {
post_toast(t,'/admin/unban_domain/' + domain);
@ -17,7 +13,7 @@
}
</script>
<div class="overflow-x-auto">
<div class="overflow-x-auto mt-2">
<table class="table table-striped mb-5" id="domains-table">
<thead class="bg-primary text-white">
<tr>

View File

@ -1,9 +1,7 @@
{% extends "default.html" %}
{% block content %}
<pre></pre>
<h5>Admin — Lottery Info</h5>
<pre></pre>
<h5 class="my-1">Admin — Lottery Info</h5>
<div class="overflow-x-auto"><table class="table table-striped mb-5">
<thead class="bg-primary text-white">
<tr>

View File

@ -6,8 +6,7 @@
<pre class="d-none d-md-inline-block"></pre>
<h5 style="font-weight:bold;">Admins</h5>
<pre></pre>
<div class="overflow-x-auto">
<div class="overflow-x-auto mt-1">
<table class="table table-striped mb-5">
<thead class="bg-primary text-white">
<tr>

View File

@ -6,12 +6,7 @@
{% endblock %}
{% block content %}
<pre>
</pre>
<h1>API Guide for Bots</h1>
<pre></pre>
<h1 class="mt-3 mb-1">API Guide for Bots</h1>
<p>This page explains how to obtain and use an access token. </p>
<h2>Step 1: Create your Application</h2>
<p>In the <a href="/settings/apps">apps tab of {{SITE_NAME}} settings</a>, fill in and submit the form to request an access token. You will need:</p>
@ -52,17 +47,8 @@
print(r.json())
</pre>
<p>The expected result of this would be a JSON representation of unread notifications for your account</p>
<pre>
</pre>
<h1>API Guide for Applications</h1>
<pre></pre>
<h1 class="mt-4 mb-1">API Guide for Applications</h1>
<p>The OAuth2 authorization flow is used to enable users to authorize third-party applications to access their {{SITE_NAME}} account without having to provide their login information to the application.</p>
<p>This page explains how to obtain API application keys, how to prompt a user for authorization, and how to obtain and use access tokens. </p>
<h2>Step 1: Create your Application</h2>
@ -109,4 +95,4 @@
print(r.json())
</pre>
<p>The expected result of this would be a JSON representation of unread notifications for your account</p>
{% endblock %}
{% endblock %}

View File

@ -35,8 +35,6 @@
<button type="button" id="buy1" class="awardbtn btn btn-primary mt-3 mx-3 {% if not FEATURES['PROCOINS'] %}d-none{% endif %}" disabled style="float:right" data-click="buy(true)" onclick="areyousure(this)">Buy with marseybux</button>
<button type="button" id="buy2" class="awardbtn btn btn-primary mt-3" disabled style="float:right" data-click="buy()" onclick="areyousure(this)">Buy</button>
<pre>
</pre>
</div>
</div>
</div>

View File

@ -1,16 +1,8 @@
{% extends "default.html" %}
{% block content %}
<pre>
</pre>
<h1>User Badges</h1>
<h1 class="mt-3">User Badges</h1>
<div>This page describes the requirements for obtaining all profile badges.</div>
<pre>
</pre>
<div class="overflow-x-auto">
<div class="overflow-x-auto mt-3">
<table class="table table-striped mb-5">
<thead class="bg-primary text-white">
<tr>

View File

@ -1,12 +1,7 @@
{% extends "default.html" %}
{% block content %}
<pre>
</pre>
<h5>@{{u.username}}'s blockers</h5>
<pre></pre>
<div class="overflow-x-auto"><table class="table table-striped mb-5">
<h5 class="mt-3">@{{u.username}}'s blockers</h5>
<div class="overflow-x-auto mt-1"><table class="table table-striped mb-5">
<thead class="bg-primary text-white">
<tr>
<th>#</th>

View File

@ -4,8 +4,7 @@
{% block content %}
<h1> Blocks</h1>
<pre></pre>
<div class="overflow-x-auto"><table class="table table-striped mb-5">
<div class="overflow-x-auto mt-3"><table class="table table-striped mb-5">
<thead class="bg-primary text-white">
<tr>
<th>#</th>

View File

@ -209,8 +209,7 @@
{% if c.active_flags(v) %}
<div id="flaggers-{{c.id}}" class="flaggers d-none">
<strong><i class="far fa-fw fa-flag"></i> Reported by:</strong>
<pre></pre>
<ul style="padding-left:20px; margin-bottom: 0;word-wrap:break-word">
<ul class="mt-1 mb-0" style="padding-left:20px;word-wrap:break-word">
{% for f in c.filtered_flags(v) %}
<li>{% if c.ghost %}👻{% else %}<a style="font-weight:bold" href="{{f.user.url}}">{{f.user.username}}</a>{% endif %}{% if f.reason %}: {{f.realreason(v) | safe}}{% endif %} {% if v and v.admin_level >= PERMS['FLAGS_REMOVE'] %}<button type="button" onclick="post_toast(this,'/del_report/comment/{{f.comment_id}}/{{f.user_id}}')">[remove]</button>{% endif %}</li>
{% endfor %}
@ -780,8 +779,7 @@
</div>
<div class="modal-body">
<div class="h6">We're sorry something here is wrong.</div>
<small class="form-text text-muted">Please enter a reason for reporting below.</small>
<pre></pre>
<small class="form-text text-muted mb-1">Please enter a reason for reporting below.</small>
<input autocomplete="off" maxlength="100" id="reason_comment" class="form-control">
</div>
<div class="modal-footer">

View File

@ -39,17 +39,7 @@
<input type="submit" onclick="disable(this)" value="Submit" class="btn btn-primary mt-3">
</form>
<pre>
</pre>
<p>Warrant Canary has been moved to <a href="/search/posts/?q=%22Monthly%20Website%20Stats%20Post%22&sort=new&t=all">Monthly Website Stats Posts</a>.</p>
<pre>
</pre>
<p class="my-3">Warrant Canary has been moved to <a href="/search/posts/?q=%22Monthly%20Website%20Stats%20Post%22&sort=new&t=all">Monthly Website Stats Posts</a>.</p>
{% include "emoji_modal.html" %}
{% else %}

View File

@ -125,8 +125,7 @@
<div class="col-10 col-md-5">
<div class="text-center px-3 my-8">
<img alt=":#marseycapysorenjump2:" loading="lazy" src="/e/marseycapysorenjump2.webp">
<pre></pre>
<h1 class="h5">502 Bad Gateway</h1>
<h1 class="h5 mt-1">502 Bad Gateway</h1>
<p class="text-muted mb-3">
aevann is probably restarting server or sum shit, just keep refreshing lmao
</p>

View File

@ -125,8 +125,7 @@
<div class="col-10 col-md-5">
<div class="text-center px-3 my-8">
<img alt=":#marseycapysorenjump2:" loading="lazy" src="/e/marseycapysorenjump2.webp">
<pre></pre>
<h1 class="h5">502 Bad Gateway</h1>
<h1 class="h5 mt-1">502 Bad Gateway</h1>
<p class="text-muted mb-3">
aevann is probably restarting server or sum shit, just keep refreshing lmao
</p>

View File

@ -13,8 +13,7 @@
{% if img -%}
<img alt=":#{{img}}:" loading="lazy" src="/e/{{img}}.webp">
{%- endif %}
<pre></pre>
<h1 class="h5">{{code}} {{title}}</h1>
<h1 class="h5 mt-1">{{code}} {{title}}</h1>
<p class="text-muted error-description">{{msg|safe}}</p>
{% if details -%}
<blockquote class="error-details mb-5 py-2">{{details|safe}}</blockquote>

View File

@ -125,8 +125,7 @@
<div class="col-10 col-md-5">
<div class="text-center px-3 my-8">
<img alt=":#marseycapysorenjump2:" loading="lazy" src="/e/marseycapysorenjump2.webp">
<pre></pre>
<h1 class="h5">502 Bad Gateway</h1>
<h1 class="h5 mt-1">502 Bad Gateway</h1>
<p class="text-muted mb-3">
aevann is probably restarting server or sum shit, just keep refreshing lmao
</p>

View File

@ -1,12 +1,7 @@
{% extends "default.html" %}
{% block content %}
<pre>
</pre>
<h5>@{{u.username}}'s followers</h5>
<pre></pre>
<div class="overflow-x-auto"><table class="table table-striped mb-5">
<h5 class="mt-2">@{{u.username}}'s followers</h5>
<div class="overflow-x-auto mt-1"><table class="table table-striped mb-5">
<thead class="bg-primary text-white">
<tr>
<th>#</th>

View File

@ -1,11 +1,6 @@
{% extends "default.html" %}
{% block content %}
<pre>
</pre>
<h5>Users followed by @{{u.username}}</h5>
<pre></pre>
<h5 class="mt-3 mb-1">Users followed by @{{u.username}}</h5>
<div class="overflow-x-auto"><table class="table table-striped mb-5">
<thead class="bg-primary text-white">
<tr>

View File

@ -5,19 +5,11 @@
{% endblock %}
{% block content %}
<pre>
</pre>
<h1>Markdown Formatting</h1>
<h1 mt-3>Markdown Formatting</h1>
You can use Markdown formatting:
<pre>
</pre>
<div class="overflow-x-auto"><table class="table table-striped mb-5">
<div class="overflow-x-auto mt-3"><table class="table table-striped mb-5">
<thead class="bg-primary text-white">
<tr>
<th>Name</th>
@ -240,11 +232,7 @@ Text 2
And we allow custom HTML in most places:
<pre>
</pre>
<h4>Allowed Tags</h4>
<h4 class="mt-2">Allowed Tags</h4>
<div class="overflow-x-auto"><table class="table table-striped mb-5">
<thead class="bg-primary text-white">

View File

@ -77,10 +77,8 @@
}
</script>
<pre>
</pre>
<div class="overflow-x-auto"><table class="table table-striped shop">
<div class="overflow-x-auto mt-1 mb-5">
<table class="table table-striped shop">
<thead class="bg-primary text-white">
<tr>
<th scope="col">Hat</th>
@ -144,12 +142,5 @@
{% endfor %}
</tbody>
</table>
<pre>
</pre>
<script defer src="{{'js/sort_table.js' | asset}}"></script>
{% endblock %}

View File

@ -342,16 +342,7 @@
<li class="mt-3">
{% if request.path == "/chat" %}
<h4 class="ml-3">Users in chat right now</h4>
<div id="online3" class="col text-left d-lg-none bg-white mb-5" style="max-width:300px"></div>
<pre>
</pre>
<div id="online3" class="col text-left d-lg-none bg-white mb-6" style="max-width:300px"></div>
{% elif has_sidebar %}
{% include "sidebar_" + SITE_NAME + ".html" %}
{% endif %}

View File

@ -4,8 +4,7 @@
{% block sortnav %}{% endblock %}
{% block content %}
<pre></pre>
<div class="d-flex justify-content-between align-items-center">
<div class="d-flex justify-content-between align-items-center mt-1">
<div class="d-flex px-2 align-items-center">
<div class="text-small font-weight-bold mr-2"></div>

View File

@ -46,7 +46,7 @@
</div>
{% endif %}
<div class="px-2">
<div class="px-2 mb-4">
<h1 class="py-3"><i class="fas fa-circle mr-3" style="color:red"></i>Live</h1>
<div class="overflow-x-auto">
<table class="table table-striped mb-5">
@ -105,8 +105,4 @@
</form>
{% endif %}
</div>
<pre>
</pre>
{% endblock %}

View File

@ -1,10 +1,6 @@
{% extends "default.html" %}
{% block content %}
<pre>
</pre>
<div class="overflow-x-auto"><table class="table table-striped mb-5">
<div class="overflow-x-auto mt-3"><table class="table table-striped mb-5">
<thead class="bg-primary text-white">
<tr>
<th>#</th>

View File

@ -18,7 +18,7 @@
<i class="fas text-gray-600 {% if message %}fa-envelope-open-text{% elif error %}fa-exclamation-triangle{% endif %} fa-stack-1x text-lg"></i>
</span>
<h1 class="h5">{{title}}</h1>
<h5>{{title}}</h1>
<div class="text-small text-muted mb-3">{{message if message else error}}</div>
<a href="/" class="btn btn-primary ">Go to homepage</a>
</div>

View File

@ -9,11 +9,7 @@
{% if thing %}
<pre>
</pre>
<h3>{{thing.body_html | safe}} - {{ups | length}} {% if thing.exclusive == 2 %}bets{% else %}votes{% endif %}</h3>
<h3 class="mt-2">{{thing.body_html | safe}} - {{ups | length}} {% if thing.exclusive == 2 %}bets{% else %}votes{% endif %}</h3>
<div class="overflow-x-auto mt-5">
<table class="table table-striped mb-5">
<thead class="bg-primary text-white">
@ -45,4 +41,4 @@
{% endif %}
{% endblock %}
{% endblock %}

View File

@ -10,8 +10,7 @@
<div class="modal-body">
<div class="h6">We're sorry something here is wrong.</div>
<small class="form-text text-muted">Please enter a reason for reporting below.</small>
<pre></pre>
<input autocomplete="off" maxlength="100" id="reason_post" class="form-control b2">
<input autocomplete="off" maxlength="100" id="reason_post" class="form-control b2 mt-1">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-link text-muted" data-bs-dismiss="modal">Cancel</button>

View File

@ -134,8 +134,7 @@
</p>
<div class="text-center mb-3">
<img alt="two-factor QR code" loading="lazy" class="img-fluid" width=175 src="/2faqr/{{mfa_secret}}">
<pre></pre>
<div class="text-small text-muted">Or enter this code: {{mfa_secret}}</div>
<div class="text-small text-muted mt-1">Or enter this code: {{mfa_secret}}</div>
</div>
<p>
<span class="font-weight-bold">Step 2:</span> Enter the six-digit code generated in the authenticator app and your {{SITE_NAME}} account password.

View File

@ -13,9 +13,7 @@
<h2 class="h5"><a href="/api">API Guide</a></h2>
<pre></pre>
<h2 class="h5">Your API Applications</h2>
<h2 class="h5 mt-1">Your API Applications</h2>
{% for app in v.applications if app.client_id %}

View File

@ -196,8 +196,7 @@
</div>
{% if v.background %}
<div class="d-flex mt-2">
<button type="button" class="btn btn-primary ml-auto" onclick="post_toast(this,'/settings/removebackground', true)">Remove Background</button>
<pre></pre>
<button type="button" class="btn btn-primary ml-auto mb-1" onclick="post_toast(this,'/settings/removebackground', true)">Remove Background</button>
</div>
{% endif %}
<div id="bgcontainer"></div>
@ -585,8 +584,7 @@
<input autocomplete="off" id="file-upload" accept="image/*, video/*, audio/*" type="file" name="file" multiple="multiple" {% if request.headers.get('cf-ipcountry')=="T1" %}disabled{% endif %} onchange="changename('filename-show','file-upload')" hidden>
</label>
</div>
<pre></pre>
<div class="d-flex">
<div class="d-flex mt-1">
<small>Limit of 1500 characters</small>
<input autocomplete="off" class="btn btn-primary ml-auto" id="bioSave" type="submit" onclick="disable(this)" value="Save Changes">
</div>
@ -604,8 +602,7 @@
<form id="profile-friends" action="/settings/profile" method="post" enctype="multipart/form-data">
<input type="hidden" name="formkey" value="{{v.formkey}}">
<textarea autocomplete="off" id="friends-text" class="form-control rounded" aria-label="With textarea" placeholder="Enter your friends on the site..." rows="3" name="friends" form="profile-friends" maxlength="1500">{% if v.friends %}{{v.friends}}{% endif %}</textarea>
<pre></pre>
<div class="d-flex">
<div class="d-flex mt-1">
<small>Limit of 500 characters</small>
<input autocomplete="off" class="btn btn-primary ml-auto" id="friendsSave" type="submit" onclick="disable(this)" value="Save Changes">
</div>
@ -623,8 +620,7 @@
<form id="profile-enemies" action="/settings/profile" method="post" enctype="multipart/form-data">
<input type="hidden" name="formkey" value="{{v.formkey}}">
<textarea autocomplete="off" id="enemies-text" class="form-control rounded" aria-label="With textarea" placeholder="Enter your enemies on the site..." rows="3" name="enemies" form="profile-enemies" maxlength="1500">{% if v.enemies %}{{v.enemies}}{% endif %}</textarea>
<pre></pre>
<div class="d-flex">
<div class="d-flex mt-1">
<small>Limit of 500 characters</small>
<input autocomplete="off" class="btn btn-primary ml-auto" id="enemiesSave" type="submit" onclick="disable(this)" value="Save Changes">
</div>
@ -648,8 +644,7 @@
&nbsp;
<pre style="padding-top:0.7rem" class="btn btn-secondary format d-inline-block m-0 fas fa-smile-beam" onclick="loadEmojis('sig-text')" aria-hidden="true" data-bs-toggle="modal" data-bs-target="#emojiModal" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Add Emoji"></pre>
</div>
<pre></pre>
<div class="d-flex">
<div class="d-flex mt-1">
<small>Limit of 200 characters</small>
<input autocomplete="off" class="btn btn-primary ml-auto" id="sigSave" type="submit" onclick="disable(this)" value="Save Changes">
</div>

View File

@ -72,10 +72,7 @@
{% endblock %}
{% block content %}
<pre>
</pre>
<div class="overflow-x-auto"><table class="table table-striped shop">
<div class="overflow-x-auto mt-1 mb-5"><table class="table table-striped shop">
<thead class="bg-primary text-white">
<tr>
<th scope="col">Icon</th>
@ -114,12 +111,6 @@
</tr>
{% endfor %}
</table>
<pre>
</pre>
</div>
<script defer src="{{'js/sort_table.js' | asset}}"></script>
{% endblock %}

View File

@ -6,11 +6,7 @@
{% endblock %}
{% block content %}
<pre>
</pre>
<div class="mx-4 mt-2 mb-6">
<div class="mx-4 mt-4 mb-6">
<h1 class="text-muted text-uppercase">Sidebar</h5>
<div id="sidebar" class="my-3">
@ -19,4 +15,4 @@
{% endif %}
</div>
</div>
{% endblock %}
{% endblock %}

View File

@ -1,4 +1,4 @@
<div class="col sidebar text-left {% if '/sidebar' not in request.path %}d-none d-lg-block{% endif %} pt-3 pb-5" {% if request.path != '/sidebar' %}id="sidebar-content"{% endif %}>
<div class="col sidebar text-left {% if '/sidebar' not in request.path %}d-none d-lg-block{% endif %} pt-3 pb-5 mb-5" {% if request.path != '/sidebar' %}id="sidebar-content"{% endif %}>
{%- if v -%}
{%- set art_path = 'assets/images/WPD/sidebar' -%}
@ -97,12 +97,4 @@
</li>
</ol>
</div>
<pre>
</pre>
</div>

View File

@ -1,4 +1,4 @@
<div class="col sidebar text-left {% if '/sidebar' not in request.path %}d-none d-lg-block{% endif %} pt-3 pb-5" {% if request.path != '/sidebar' %}id="sidebar-content"{% endif %}>
<div class="col sidebar text-left {% if '/sidebar' not in request.path %}d-none d-lg-block{% endif %} pt-3 pb-5 mb-5" {% if request.path != '/sidebar' %}id="sidebar-content"{% endif %}>
{% if sub %}
{% set image=sub.sidebar_url %}
@ -76,12 +76,4 @@
<span style="color:hotpink">𝐜𝐚𝐫𝐩 𝐰𝐨𝐳 𝐞𝐫𝐞</span><br><br>
</div>
{% endif %}
<pre>
</pre>
</div>

View File

@ -6,8 +6,7 @@
{% endblock %}
{% block content %}
<pre></pre>
<div class="overflow-x-auto"><table class="table table-striped mb-5">
<div class="overflow-x-auto mt-1"><table class="table table-striped mb-5">
<thead class="bg-primary text-white">
<tr>
<th>Statistic</th>
@ -22,4 +21,4 @@
{% endfor %}
</table>
{% endblock %}
{% endblock %}

View File

@ -1,12 +1,7 @@
{% extends "default.html" %}
{% block content %}
<pre>
</pre>
<h5>Users {{verb}} /h/{{sub}}</h5>
<pre></pre>
<div class="overflow-x-auto"><table class="table table-striped mb-5">
<h5 class="mt-3">Users {{verb}} /h/{{sub}}</h5>
<div class="overflow-x-auto mt-1"><table class="table table-striped mb-5">
<thead class="bg-primary text-white">
<tr>
<th>#</th>

View File

@ -6,12 +6,7 @@
{% block form %}
<pre>
</pre>
<form id="submitform" action="/create_hole" method="post">
<form class="mt-3" id="submitform" action="/create_hole" method="post">
<div class="container">

View File

@ -1,11 +1,6 @@
{% extends "default.html" %}
{% block content %}
<pre>
</pre>
<h5>Users exiled from /h/{{sub}}</h5>
<pre></pre>
<h5 class="mt-3 mb-1">Users exiled from /h/{{sub}}</h5>
<div class="overflow-x-auto"><table class="table table-striped mb-5">
<thead class="bg-primary text-white">
<tr>

View File

@ -1,12 +1,7 @@
{% extends "default.html" %}
{% block content %}
<pre>
</pre>
<h5>/h/{{sub}} Mods</h5>
<pre></pre>
<div class="overflow-x-auto"><table class="table table-striped mb-5">
<h5 class="mt-2">/h/{{sub}} Mods</h5>
<div class="overflow-x-auto mt-1"><table class="table table-striped mb-5">
<thead class="bg-primary text-white">
<tr>
<th>#</th>
@ -42,4 +37,4 @@
</form>
{% endif %}
{% endblock %}
{% endblock %}

View File

@ -1,11 +1,6 @@
{% extends "default.html" %}
{% block content %}
<pre>
</pre>
<h5>{{HOLE_NAME|capitalize}} List</h5>
<pre></pre>
<h5 class="mt-3 mb-1">{{HOLE_NAME|capitalize}} List</h5>
<div class="overflow-x-auto">
<table class="table table-striped mb-5">
<thead class="bg-primary text-white">

View File

@ -697,8 +697,7 @@
{% if p.active_flags(v) %}
<div id="flaggers" class="flaggers d-none">
<strong><i class="far fa-fw fa-flag"></i> Reported by:</strong>
<pre></pre>
<ul style="padding-left:20px; margin-bottom: 0;word-wrap:break-word">
<ul class="mt-1 mb-0" style="padding-left:20px; word-wrap:break-word">
{% for f in p.filtered_flags(v) %}
<li><a style="font-weight:bold" href="{{f.user.url}}">{{f.user.username}}</a>{% if f.reason %}: {{f.realreason(v) | safe}}{% endif %} {% if v and v.admin_level >= PERMS['FLAGS_REMOVE'] %}<button type="button" onclick="post_toast(this,'/del_report/post/{{f.post_id}}/{{f.user_id}}')">[remove]</button>{% endif %}</li>
{% endfor %}
@ -751,28 +750,24 @@
<div id="post-text" class="{% if p.author.agendaposter and p.sub != 'chudrama' %}agendaposter{% endif %} {% if p.author.rainbow %}rainbow-text{% endif %}">
{% if p.is_image %}
<div class="row no-gutters">
<div class="row no-gutters mb-1">
<div class="col">
<a {% if not v or v.newtabexternal %}target="_blank"{% endif %} rel="nofollow noopener noreferrer" href="{{p.realurl(v)}}">
<img onclick="expandDesktopImage()" src="{{p.realurl(v)}}" class="img-fluid" style="max-height:500px" alt="Unable to load image">
</a>
</div>
</div>
<pre></pre>
{% elif p.is_video %}
<div class="row no-gutters">
<div class="row no-gutters mb-1">
<div class="col">
<video controls preload="none" src="{{p.realurl(v)}}"></video>
</div>
</div>
<pre></pre>
{% elif p.is_audio %}
<div class="row no-gutters">
\ {% elif p.is_audio %}
<div class="row no-gutters mb-1">
<div class="col">
<audio controls preload="none" src="{{p.realurl(v)}}"></audio>
</div>
</div>
<pre></pre>
{% endif %}
{{p.realbody(v) | safe}}
@ -964,8 +959,7 @@
{% if sort != "controversial" %}<a class="dropdown-item" href="?sort=controversial"><i class="fas fa-bullhorn mr-2"></i>Controversial</a>{% endif %}
</div>
{% if comment_info and p.comment_count >= 2%}
<pre></pre>
<div class="total"><a href="{{p.permalink}}">View entire discussion</a></div>
<div class="total mt-1"><a href="{{p.permalink}}">View entire discussion</a></div>
{% endif %}
</div>
</div>

View File

@ -37,8 +37,7 @@
{% if p.active_flags(v) %}
<div id="flaggers-{{p.id}}" class="flaggers d-none">
<strong><i class="far fa-fw fa-flag"></i> Reported by:</strong>
<pre></pre>
<ul style="padding-left:20px; margin-bottom: 0;word-wrap:break-word">
<ul class="mt-1 mb-0" style="padding-left:20px; word-wrap:break-word">
{% for f in p.filtered_flags(v) %}
<li><a style="font-weight:bold" href="{{f.user.url}}">{{f.user.username}}</a>{% if f.reason %}: {{f.realreason(v) | safe}}{% endif %} {% if v and v.admin_level >= PERMS['FLAGS_REMOVE'] %}<button type="button" onclick="post_toast(this,'/del_report/post/{{f.post_id}}/{{f.user_id}}')">[remove]</button>{% endif %}</li>
{% endfor %}
@ -384,9 +383,7 @@
<i class="fas text-gray-500 fa-scroll-old fa-stack-1x text-lg"></i>
</span>
<h2 class="h5">@{{u.username}} hasn't made a post yet</h2>
<p class="text-muted">Their posting history will show here.</p>
<pre>
</pre>
<p class="text-muted mb-1">Their posting history will show here.</p>
</div>
</div>
</div>

View File

@ -87,9 +87,7 @@
<div id="preview" class="preview my-3"></div>
<pre></pre>
<div class="form-text text-small"><a href="/formatting" {% if v and v.newtab and not g.webview %}target="_blank"{% endif %}>Formatting help</a></div>
<pre></pre>
<div class="form-text text-small my-1"><a href="/formatting" {% if v and v.newtab and not g.webview %}target="_blank"{% endif %}>Formatting help</a></div>
<div class="custom-control custom-checkbox">
<input autocomplete="off" type="checkbox" class="custom-control-input" id="post-notify" name="notify" onchange="savetext()" checked>
@ -117,19 +115,10 @@
</div>
{%- endif %}
<div class="custom-control custom-checkbox">
<div class="custom-control custom-checkbox mb-5">
<input onchange='draft(this);' autocomplete="off" type="checkbox" class="custom-control-input" id="post-ghost" name="ghost" {% if v.coins < 100 %}disabled{% endif %}>
<label class="custom-control-label" for="post-ghost">Ghost thread (cost: 100 coins)</label>
</div>
<pre>
</pre>
</div>
</div>

View File

@ -4,8 +4,7 @@
{% block sortnav %}{% endblock %}
{% block content %}
<pre></pre>
<div class="row no-gutters {% if listing %}mt-md-3{% elif not listing %}my-md-3{% endif %}">
<div class="row no-gutters {% if listing %}mt-md-3{% elif not listing %}my-md-3{% endif %} mt-1">
<div class="col-12 px-3">
@ -45,4 +44,4 @@
</div>
<script defer src="{{'js/clipboard.js' | asset}}"></script>
{% endblock %}
{% endblock %}

View File

@ -89,8 +89,6 @@
{% if u.customtitle %}
<p class="font-weight-bolder" id="profile--flair" style="color: #{{u.titlecolor}}">{{u.customtitle | safe}}</p>
{% else %}
<pre></pre>
{% endif %}
{% if v and (v.id == u.id or v.admin_level >= PERMS['USER_VOTERS_VISIBLE']) -%}
@ -122,8 +120,7 @@
{% if FEATURES['USERS_PROFILE_BODYTEXT'] -%}
{% if u.bio_html %}
<pre></pre>
<div class="text-muted font-weight-bolder" id="profile--bio">{{u.bio_html | safe}}</div>
<div class="text-muted font-weight-bolder mt-1" id="profile--bio">{{u.bio_html | safe}}</div>
{% else %}
<p class="text-muted" id="profile--bio">No bio...</p>
{% endif %}
@ -185,9 +182,7 @@
</div>
<form class="d-none toggleable" id="message" action="/@{{u.username}}/message" onsubmit="submitFormAjax(event)">
<input type="hidden" name="formkey" value="{{v.formkey}}">
<pre></pre>
<textarea autocomplete="off" id="input-message" form="message" name="message" rows="3" minlength="1" maxlength="10000" class="form-control b2" data-preview="message-preview" oninput="markdown(this)" required></textarea>
<pre></pre>
<textarea autocomplete="off" id="input-message" form="message" name="message" rows="3" minlength="1" maxlength="10000" class="form-control b2 mt-1" data-preview="message-preview" oninput="markdown(this)" required></textarea>
<pre class="btn btn-secondary format d-inline-block m-0 fas fa-smile-beam" onclick="loadEmojis('input-message')" aria-hidden="true" data-bs-toggle="modal" data-bs-target="#emojiModal" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Add Emoji"></pre>
&nbsp;
<input type="submit" onclick="disable(this);remove_dialog()" value="Submit" class="btn btn-primary">
@ -220,8 +215,7 @@
{{userpage_admintools.userAdminToolsLower('desktop')}}
<pre></pre>
<div id="profile--info">
<div class="mt-1" id="profile--info">
<p id="profile--info--id">User ID: {{u.id}}</p>
<p id="profile--info--spent">Coins spent: {{u.coins_spent}}</p>
<p id="profile--info--truescore">True score: {{u.truecoins}}</p>
@ -320,8 +314,6 @@
{% if u.customtitle %}
<p style="color: #{{u.titlecolor}}" id="profile-mobile--flair">{{u.customtitle | safe}}</p>
{% else %}
<pre></pre>
{% endif %}
{% if v and (v.id == u.id or v.admin_level >= PERMS['USER_VOTERS_VISIBLE']) -%}
@ -430,11 +422,9 @@
{{userpage_admintools.userAdminToolsUpper('mobile')}}
<form class="d-none toggleable" id='message-mobile' action="/@{{u.username}}/message" onsubmit="submitFormAjax(event)">
<pre></pre>
<input type="hidden" name="formkey" value="{{v.formkey}}">
<input class="mt-1" type="hidden" name="formkey" value="{{v.formkey}}">
<textarea autocomplete="off" id="input-message-mobile" form="message-mobile" name="message" rows="3" minlength="1" maxlength="10000" class="form-control" data-preview="message-preview-mobile" oninput="markdown(this)" required></textarea>
<pre></pre>
<pre class="btn btn-secondary format d-inline-block m-0 fas fa-smile-beam" onclick="loadEmojis('input-message-mobile')" aria-hidden="true" data-bs-toggle="modal" data-bs-target="#emojiModal" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Add Emoji"></pre>
<pre class="mt-1 btn btn-secondary format d-inline-block m-0 fas fa-smile-beam" onclick="loadEmojis('input-message-mobile')" aria-hidden="true" data-bs-toggle="modal" data-bs-target="#emojiModal" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Add Emoji"></pre>
&nbsp;
<input type="submit" onclick="disable(this);remove_dialog()" value="Submit" class="btn btn-primary">
</form>
@ -458,8 +448,7 @@
{{userpage_admintools.userAdminToolsLower('mobile')}}
{% endif %}
<pre></pre>
<div id="profile-mobile--info">
<div class="mt-1" id="profile-mobile--info">
<p id="profile-mobile--info--id">User ID: {{u.id}}</p>
<p id="profile-mobile--info--spent">Coins spent: {{u.coins_spent}}</p>
<p id="profile-mobile--info--truescore">True score: {{u.truecoins}}</p>

View File

@ -39,7 +39,7 @@
<div class="admintools-user-lower-{{deviceType}}">
<br><br>
{% if v.admin_level >= PERMS['USER_TITLE_CHANGE'] %}
<div class="body d-lg-flex border-bottom">
<div class="body d-lg-flex border-bottom mb-2">
<div class="w-lg-100">
<form action="/admin/title_change/{{u.id}}" method="post">
<input type="hidden" name="formkey" value="{{v.formkey}}">
@ -57,18 +57,16 @@
</form>
</div>
</div>
<pre></pre>
<pre></pre>
{% endif %}
{% if v.admin_level >= PERMS['USER_BAN'] %}
{% if u.is_suspended %}
<form action="/unban_user/{{u.id}}" method="post">
<form class="mb-2" action="/unban_user/{{u.id}}" method="post">
<input type="hidden" name="formkey" value="{{v.formkey}}">
<input type="hidden" name="redir" value="true">
<input type="submit" onclick="disable(this)" class="btn btn-success" value="Unban user">
</form>
{% else %}
<form action="/ban_user/{{u.id}}" method="post">
<form class="mb-2" action="/ban_user/{{u.id}}" method="post">
<input type="hidden" name="formkey" value="{{v.formkey}}">
<input type="hidden" name="redir" value="true">
<input autocomplete="off" style="font-size:11px" type="text" class="form-control" maxlength="256" name="reason" placeholder="Ban Reason" oninput="document.getElementById('user-ban-submit-{{deviceType}}').disabled=false" required>
@ -80,17 +78,15 @@
<input autocomplete="off" id="user-ban-submit-{{deviceType}}" type="submit" onclick="disable(this)" class="btn btn-danger" value="Ban user" disabled>
</form>
{% endif %}
<pre></pre>
<pre></pre>
{% endif %}
{% if v.admin_level >= PERMS['USER_SHADOWBAN'] %}
{% if u.shadowbanned %}
<form action="/unshadowban/{{u.id}}" method="post">
<form class="mb-2" action="/unshadowban/{{u.id}}" method="post">
<input type="hidden" name="formkey" value="{{v.formkey}}">
<input type="submit" onclick="disable(this)" class="btn btn-success" value="Unshadowban user">
</form>
{% else %}
<form action="/shadowban/{{u.id}}" method="post">
<form class="mb-2" action="/shadowban/{{u.id}}" method="post">
<input type="hidden" name="formkey" value="{{v.formkey}}">
<input autocomplete="off" style="font-size:11px" type="text" class="form-control" maxlength="256" name="reason" placeholder="Shadowban Reason" oninput="document.getElementById('user-shadowban-submit-{{deviceType}}').disabled=false" required>
<div class="custom-control custom-checkbox mb-1">
@ -100,8 +96,6 @@
<input autocomplete="off" id="user-shadowban-submit-{{deviceType}}" type="submit" onclick="disable(this)" class="btn btn-danger" value="Shadowban user" disabled>
</form>
{% endif %}
<pre></pre>
<pre></pre>
{% endif %}
{% if v.admin_level >= PERMS['USER_AGENDAPOSTER'] %}
<form id="agendaposter-{{deviceType}}" class="{% if u.agendaposter %}d-none{% endif %}" action="/agendaposter/{{u.id}}" method="post">
@ -109,13 +103,11 @@
<input autocomplete="off" type="number" step="any" name="days" class="form-control" placeholder="Days (0 or blank = permanent)">
<input type="submit" onclick="disable(this)" class="btn btn-danger" value="Lock Chud Theme">
</form>
<pre></pre>
<button type="button" id="unagendaposter-{{deviceType}}" class="{% if not u.agendaposter %}d-none{% endif %} btn btn-success" onclick="post_toast(this,'/unagendaposter/{{u.id}}','agendaposter-{{deviceType}}','unagendaposter-{{deviceType}}','d-none')">Disable Chud Theme</button>
<button type="button" id="unagendaposter-{{deviceType}}" class="mt-1 {% if not u.agendaposter %}d-none{% endif %} btn btn-success" onclick="post_toast(this,'/unagendaposter/{{u.id}}','agendaposter-{{deviceType}}','unagendaposter-{{deviceType}}','d-none')">Disable Chud Theme</button>
{% endif %}
{% if v.admin_level >= PERMS['USER_BAN'] %}
<button type="button" id="mute-user-{{deviceType}}" class="{% if u.is_muted %}d-none{% endif %} btn btn-danger" onclick="post_toast(this,'/mute_user/{{u.id}}/1','mute-user-{{deviceType}}','unmute-user-{{deviceType}}','d-none')">Mute</button>
<button type="button" id="unmute-user-{{deviceType}}" class="{% if not u.is_muted %}d-none{% endif %} btn btn-success" onclick="post_toast(this,'/mute_user/{{u.id}}/0','mute-user-{{deviceType}}','unmute-user-{{deviceType}}','d-none')">Unmute</button>
<pre></pre>
<button type="button" id="unmute-user-{{deviceType}}" class="mb-1 {% if not u.is_muted %}d-none{% endif %} btn btn-success" onclick="post_toast(this,'/mute_user/{{u.id}}/0','mute-user-{{deviceType}}','unmute-user-{{deviceType}}','d-none')">Unmute</button>
{% endif %}
{% if v and v.admin_level >= PERMS['POST_COMMENT_MODERATION'] %}
<form action="/admin/unnuke_user" method="post">
@ -123,16 +115,14 @@
<input type="hidden" name="user" value="{{u.username}}">
<input type="submit" onclick="disable(this)" class="btn btn-success" value="Approve User's Content">
</form>
<pre></pre>
<form action="/admin/nuke_user" method="post">
<form class="mt-1" action="/admin/nuke_user" method="post">
<input type="hidden" name="formkey", value="{{v.formkey}}">
<input type="hidden" name="user" value="{{u.username}}">
<input type="submit" onclick="disable(this)" class="btn btn-danger" value="Remove User's Content">
</form>
{% endif %}
{% if FEATURES['COUNTRY_CLUB'] and v and v.admin_level >= PERMS['USER_CLUB_ALLOW_BAN'] %}
<pre></pre>
<button type="button" id="grant-{{device}}" class="{% if u.paid_dues %}d-none{% endif %} btn btn-success" onclick="post_toast(this,'/@{{u.username}}/club_allow','grant-{{device}}','bar-{{device}}','d-none')">Grant club access</button>
<button type="button" id="grant-{{device}}" class="mt-1 {% if u.paid_dues %}d-none{% endif %} btn btn-success" onclick="post_toast(this,'/@{{u.username}}/club_allow','grant-{{device}}','bar-{{device}}','d-none')">Grant club access</button>
<button type="button" id="bar-{{device}}" class="{% if u.club_allowed == False %}d-none{% endif %} btn btn-danger" onclick="post_toast(this,'/@{{u.username}}/club_ban','grant-{{device}}','bar-{{device}}','d-none')">Bar from club</button>
{% endif %}
</div>

View File

@ -1,8 +1,6 @@
{% extends "default.html" %}
{% block content %}
<pre></pre>
<h5 class="pt-4 pl-2">Users who viewed your profile</h5>
<pre></pre>
<h5 class="pt-4 pl-2 my-1">Users who viewed your profile</h5>
<div class="overflow-x-auto"><table class="table table-striped mb-5">
<thead class="bg-primary text-white">
<tr>
@ -22,4 +20,4 @@
{% endfor %}
</table>
{% endblock %}
{% endblock %}

View File

@ -1,13 +1,8 @@
{% extends "default.html" %}
{% block content %}
<pre>
</pre>
<h3 style="text-align: center">{{name2}}</h3>
<h3 class="mt-3" style="text-align: center">{{name2}}</h3>
<h5 class="font-weight-bold text-center mt-3">Total: {{total}}</h5>
<pre></pre>
<div class="overflow-x-auto"><table class="table table-striped mb-5">
<div class="mt-1 overflow-x-auto"><table class="table table-striped mb-5">
<thead class="bg-primary text-white">
<tr>
<th>#</th>
@ -37,4 +32,4 @@
</tbody>
</table>
{% endblock %}
{% endblock %}

View File

@ -9,10 +9,7 @@
{% if thing %}
<pre>
</pre>
<h1>Info</h1>
<h1 class="mt-2">Info</h1>
<p><a href="{{thing.permalink}}">{{thing.permalink}}</a></p>
<p><b>Author:</b> <a href="{{thing.author.url}}">@{{thing.author.username}}</a></p>
<p><b>Author Created At:</b> <span data-time="{{thing.author.created_utc}}"></span></p>