rDrama/files/templates/userpage.html

734 lines
39 KiB
HTML
Raw Normal View History

2021-07-21 01:12:26 +00:00
{% extends "default.html" %}
{% if u and u.profilecss %}
{% block stylesheets %}
{% if v %}
<link rel="stylesheet" href="/assets/style/{{v.theme}}_{{v.themecolor}}.css">
2021-07-29 04:47:39 +00:00
{% if v.agendaposter %}<link rel="stylesheet" href="/assets/style/agendaposter.css">{% elif v.css %}<link rel="stylesheet" href="/@{{v.username}}/css">{% endif %}
2021-07-21 01:12:26 +00:00
{% else %}
2021-08-19 05:34:39 +00:00
<link rel="stylesheet" href="/assets/style/{{'DEFAULT_THEME' | app_config}}.css">
2021-07-21 01:12:26 +00:00
{% endif %}
{% if u and u.profilecss %}
<link rel="stylesheet" href="/@{{u.username}}/profilecss">
{% endif %}
{% endblock %}
{% endif %}
2021-07-29 04:47:39 +00:00
2021-07-21 01:12:26 +00:00
{% block pagetype %}userpage{% endblock %}
{% block title %}
2021-08-19 05:14:52 +00:00
<title>{{u.username}}'s profile - {{'SITE_NAME' | app_config}}</title>
2021-07-21 01:12:26 +00:00
{% if u.is_private %}
<meta name="robots" content="noindex">
{% endif %}
<meta property="og:article:author" content="@{{u.username}}" />
2021-08-19 05:14:52 +00:00
<meta property="article:section" content="{{u.username}}'s profile - {{'SITE_NAME' | app_config}}" />
2021-07-21 01:12:26 +00:00
<meta property="article:published_time" content="{{u.created_date}}" />
2021-09-08 08:00:51 +00:00
<meta property="og:description" name="description" content="{{u.coins}} {{'COINS_NAME' | app_config}} - Joined {{u.created_date}} - {% if u.stored_subscriber_count >=1 and not u.is_private and not u.is_nofollow %}{{u.stored_subscriber_count}} Followers - {% endif %}{% if not u.is_private %}{{u.post_count}} Posts - {{u.comment_count}} Comments - {% endif %}{{u.bio}}" />
2021-07-21 01:12:26 +00:00
<meta property="og:author" name="author" content="@{{u.username}}" />
<meta property="og:title" content="{{u.username}}" />
2021-08-20 05:52:52 +00:00
<meta property="og:image" content="{% if u.bannerurl %}{{u.banner_url}}{% else %}{{'SITE_NAME' | app_config}}/assets/images/{{'SITE_NAME' | app_config}}/preview.gif{% endif %}" />
<meta property="og:url" content="{{u.url | full_link}}" />
2021-08-02 16:13:41 +00:00
<meta property="og:site_name" content="{{request.host}}" />
2021-07-21 01:12:26 +00:00
<meta name="twitter:card" content="summary_large_image"/>
2021-08-04 16:21:10 +00:00
<meta name="twitter:site" content="{{request.host_url}}">
2021-08-19 05:14:52 +00:00
<meta name="twitter:title" content="{{u.username}}'s profile - {{'SITE_NAME' | app_config}}" />
2021-07-21 01:12:26 +00:00
<meta name="twitter:creator" content="@{{u.username}}">
2021-09-08 08:00:51 +00:00
<meta name="twitter:description" content="{{u.coins}} {{'COINS_NAME' | app_config}} - Joined {{u.created_date}} - {% if u.stored_subscriber_count >=1 and not u.is_private and not u.is_nofollow %}{{u.stored_subscriber_count}} Followers -{% endif %} {% if not u.is_private %} {{u.post_count}} Posts - {{u.comment_count}} Comments -{% endif %} {{u.bio}}" />
2021-08-20 05:52:52 +00:00
<meta name="twitter:image" content="{% if u.bannerurl %}{{u.banner_url}}{% else %}{{'SITE_NAME' | app_config}}/assets/images/{{'SITE_NAME' | app_config}}/preview.gif{% endif %}" />
<meta name="twitter:url" content="{{u.url | full_link}}" />
2021-07-21 01:12:26 +00:00
{% endblock %}
{% block desktopUserBanner %}
<!-- Desktop -->
2021-07-21 10:28:37 +00:00
<script>
var userid = document.getElementById("userid").value;
if (userid != "nosong")
{
2021-07-21 10:42:56 +00:00
var audio = new Audio(`/songs/${userid}`);
2021-07-21 10:28:37 +00:00
audio.loop=true;
audio.play();
document.getElementById('userpage').addEventListener('click', () => {
if (audio.paused) audio.play();
}, {once : true});
}
function transferCoins(mobile=false) {
let t = event.target;
t.disabled = true;
2021-08-13 01:52:01 +00:00
post_toast("/@{{u.username}}/transfer_coins",
xhr => {
if(xhr.status == 200) {
2021-08-13 01:52:01 +00:00
fetch("/@{{u.username}}/coins")
.then(r => r.json())
.then(m => {
document.getElementById("profile-coins-amount").innerText = m["coins"];
document.getElementById("profile-coins-amount-mobile").innerText = m["coins"];
})
2021-08-13 01:52:01 +00:00
fetch("/@{{v.username}}/coins")
.then(r => r.json())
.then(m => document.getElementById(`user-coins-amount`).innerText = m["coins"])
}
},
{"amount": document.getElementById(mobile ? "coins-transfer-amount-mobile" : "coins-transfer-amount").value}
);
setTimeout(_ => t.disabled = false, 2000);
}
function toggleElement(group, id) {
for(let el of document.getElementsByClassName(group)) {
if(el.id != id) {
el.classList.add('d-none');
}
}
document.getElementById(id).classList.toggle('d-none');
}
2021-07-21 10:28:37 +00:00
</script>
2021-07-21 10:42:56 +00:00
<textarea id="userid" style="display: none;">{% if u.song %}{{u.id}}{% else %}nosong{% endif %}</textarea>
2021-07-21 01:12:26 +00:00
<div class="row d-none d-md-block">
<div class="col px-0">
2021-09-06 17:26:54 +00:00
<div class="jumbotron jumbotron-fluid jumbotron-guild d-none d-md-block" style="background-image: url({{u.banner_url}})">
2021-07-21 01:12:26 +00:00
<div class="jumbotron-overlay"></div>
<div class="w-100 my-3">
2021-08-20 07:47:36 +00:00
<div class="container-fluid nobackground">
2021-07-21 01:12:26 +00:00
<div class="d-md-flex text-center text-md-left">
<div>
2021-09-03 14:08:32 +00:00
<a rel="nofollow noopener noreferrer" href="{% if u.highres %}{{u.highres}}{% else %}{{u.profile_url}}{% endif %}"><img loading="lazy" src="{{u.profile_url}}" class="profile-pic profile-pic-100 mb-5"></a>
2021-07-21 01:12:26 +00:00
</div>
<div class="ml-3 w-100">
2021-07-28 15:43:16 +00:00
{% if u.is_suspended %}
2021-07-21 01:12:26 +00:00
<h5 style="color:#ff66ac;">BANNED USER{% if u.ban_reason %}: {{u.ban_reason}}{% endif %}</h5>
2021-08-11 15:15:51 +00:00
{% if u.unban_utc %}<h5 style="color:#ff66ac;">{{u.unban_string}}</h5>{% endif %}
2021-07-21 01:12:26 +00:00
{% endif %}
<div class="d-flex align-items-center mt-1 mb-2">
2021-08-11 18:02:52 +00:00
<h1 class="font-weight-bolder h3 mb-0" style="color: #{{u.namecolor}}"><span {% if u.patron %}class="patron" style="background-color:#{{u.namecolor}};"{% endif %}>{{u.username}}</span></h1>
2021-07-21 01:12:26 +00:00
{% if u.username != u.original_username %}
<span>
<i class="fad fa-user-tag text-info align-middle ml-2" data-toggle="tooltip" data-placement="bottom" title="Original Username: @{{u.original_username}}"></i>
</span>
{% endif %}
2021-09-01 12:01:22 +00:00
{% if u.verified %}<span><i class="fas fa-badge-check align-middle ml-1" style="color:#1DA1F2" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="{{u.verified}}"></i></span>{% endif %}
2021-07-28 21:35:24 +00:00
{% if u.admin_level > 1 or (u.admin_level == 1 and (not v or v.admin_level < 2)) %}
2021-08-21 18:00:19 +00:00
<span>
2021-08-19 18:45:27 +00:00
<i class="fas fa-broom text-admin align-middle ml-2" data-toggle="tooltip" data-placement="bottom" title="Admin"></i>
2021-08-21 18:00:19 +00:00
</span>
2021-07-21 01:12:26 +00:00
{% elif u.admin_level == 1 %}
2021-08-21 18:00:19 +00:00
<span>
2021-07-28 21:31:50 +00:00
<i class="fas fa-broom align-middle ml-2" data-toggle="tooltip" data-placement="bottom" title="Fake Admin"></i>
2021-08-21 18:00:19 +00:00
</span>
2021-07-21 01:12:26 +00:00
{% endif %}
{% if v and v.has_follower(u) %}
2021-09-06 01:57:42 +00:00
<span class="followsyou text-primary badge badge-secondary text-small align-middle ml-2">Follows you</span>
2021-07-21 01:12:26 +00:00
{% endif %}
<div class="profile-actions align-middle d-none ml-2">
2021-08-15 01:03:29 +00:00
{% if v and v.id != u.id %}
<div class="dropdown show d-none">
2021-07-21 01:12:26 +00:00
<a href="#" role="button" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false">
<i class="far fa-ellipsis-h text-lg align-middle text-gray-600"></i>
</a>
</div>
{% endif %}
{% if v and v.id == u.id %}
<div class="dropdown show d-none">
<a href="#" role="button" id="dropdownProfileActionsLink" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false">
<i class="far fa-ellipsis-h text-lg align-middle text-gray-600"></i>
</a>
<div class="dropdown-menu dropdown-menu-right border-0 shadow" aria-labelledby="dropdownMoreLink">
<a class="dropdown-item" href="/settings/profile#bio"><i class="fas fa-edit"></i>Edit profile</a>
<a class="dropdown-item" href="/settings/security"><i class="fas fa-cog"></i>Account details</a>
</div>
</div>
{% endif %}
</div>
</div>
2021-09-03 14:08:32 +00:00
{% if u.customtitle %}<p class="font-weight-bolder" style="color: #{{u.titlecolor}}">{% if u.quadrant %}<img loading="lazy" height="20" src="/assets/images/PCM/quadrants/{{u.quadrant}}.gif">{% endif %}{{u.customtitle | safe}}</p>{% endif %}
2021-07-21 01:12:26 +00:00
<div class="font-weight-bolder">
2021-09-08 08:00:51 +00:00
<span id="profile-coins-amount">{{u.coins}}</span> {{'COINS_NAME' | app_config}}&nbsp;&nbsp; {% if u.stored_subscriber_count >=1 and not u.is_nofollow %}<a href="/@{{u.username}}/followers">{{u.stored_subscriber_count}} follower{{'s' if u.stored_subscriber_count != 1 else ''}}</a>&nbsp;&nbsp; {% endif %}joined <span data-toggle="tooltip" data-placement="bottom" title="" data-original-title="{{u.created_datetime}}">{{u.created_date}}</span>
2021-07-21 01:12:26 +00:00
</div>
2021-09-06 17:03:14 +00:00
{% if "pcm" in request.host %}<p class="text-muted">Based Count: {{u.basedcount}}</p>{% endif %}
2021-07-21 01:12:26 +00:00
{% if u.bio_html %}
<pre></pre>
<div class="text-muted font-weight-bolder">{{u.bio_html | safe}}</div>
{% else %}
<p class="text-muted">No bio...</p>
{% endif %}
{% if u.bio_html and v %}
{% endif %}
2021-08-11 15:15:51 +00:00
{% if u.received_awards %}
<div class="text-white rounded p-2 mb-3" style="background-color: rgba(50, 50, 50, 0.6); width: 30%;">
<p class="text-uppercase my-0" style="font-weight: bold; font-size: 12px;">Awards received</p>
{% for a in u.received_awards %}
<span class="d-inline-block mx-1">
2021-08-13 01:52:01 +00:00
<i class="{{a['icon']}} {{a['color']}} fa-fw" data-toggle="tooltip" data-placement="bottom" title="{{a['title']}} Awards received"></i>
x{{a['count']}}
2021-08-11 15:15:51 +00:00
</span>
{% endfor %}
</div>
{% endif %}
2021-07-21 01:12:26 +00:00
<div class="d-flex justify-content-between align-items-center">
<div>
2021-08-15 01:03:29 +00:00
{% if v and v.id != u.id %}
2021-08-11 17:01:19 +00:00
<a id="button-unsub" class="btn btn-secondary {% if not is_following %}d-none{% endif %}" href="javascript:void(0)" onclick="post_toast('/unfollow/{{u.username}}', callback=function(){document.getElementById('button-unsub').classList.toggle('d-none');document.getElementById('button-sub').classList.toggle('d-none');})">Unfollow</a>
<a id="button-sub" class="btn btn-primary {% if is_following or u.is_nofollow or u.is_blocked %}d-none{% endif %}" href="javascript:void(0)" onclick="post_toast('/follow/{{u.username}}', callback=function(){document.getElementById('button-sub').classList.toggle('d-none');document.getElementById('button-unsub').classList.toggle('d-none');})">Follow</a>
2021-07-21 01:12:26 +00:00
<a class="btn btn-primary" href="javascript:void(0)" onclick="toggleElement('profile-toggleable', 'message')">Message</a>
2021-08-11 17:01:19 +00:00
<a class="btn btn-primary" href="javascript:void(0)" onclick="post_toast('/@{{u.username}}/suicide')">Get them help</a>
2021-09-08 08:00:51 +00:00
<a class="btn btn-primary" href="javascript:void(0)" onclick="toggleElement('profile-toggleable', 'coin-transfer')">Gift {{'COINS_NAME' | app_config}}</a>
2021-08-31 20:11:13 +00:00
2021-09-03 20:05:04 +00:00
{% if 'pcm' in request.host and v.admin_level == 6 %}
2021-08-31 20:11:13 +00:00
{% if u.admin_level == 0 %}
<a class="btn btn-primary" href="javascript:void(0)" onclick="post_toast('/@{{u.username}}/make_admin')">Make admin</a>
{% elif v.id == 10 %}
<a class="btn btn-primary" href="javascript:void(0)" onclick="post_toast('/@{{u.username}}/remove_admin')">Remove admin</a>
{% endif %}
{% endif %}
2021-09-08 07:09:50 +00:00
{% if 'rdrama' in request.host and v.id in [28,29,995] %}
2021-09-03 14:23:49 +00:00
{% if u.admin_level == 0 %}
<a class="btn btn-primary" href="javascript:void(0)" onclick="post_toast('/@{{u.username}}/make_admin')">Make admin</a>
2021-09-06 00:49:27 +00:00
<a class="btn btn-primary" href="javascript:void(0)" onclick="post_toast('/@{{u.username}}/make_fake_admin')">Make fake admin</a>
{% elif u.admin_level == 1 %}
<a class="btn btn-primary" href="javascript:void(0)" onclick="post_toast('/@{{u.username}}/remove_fake_admin')">Remove fake admin</a>
2021-09-06 00:51:01 +00:00
{% else %}
2021-09-03 14:23:49 +00:00
<a class="btn btn-primary" href="javascript:void(0)" onclick="post_toast('/@{{u.username}}/remove_admin')">Remove admin</a>
{% endif %}
{% endif %}
2021-09-03 20:05:04 +00:00
{% if 'rdrama' not in request.host and 'pcm' not in request.host and v.admin_level == 6 %}
{% if u.admin_level == 0 %}
<a class="btn btn-primary" href="javascript:void(0)" onclick="post_toast('/@{{u.username}}/make_admin')">Make admin</a>
{% else %}
<a class="btn btn-primary" href="javascript:void(0)" onclick="post_toast('/@{{u.username}}/remove_admin')">Remove admin</a>
{% endif %}
{% endif %}
<form class="d-none profile-toggleable" id="message" action="/@{{u.username}}/message" method="post">
2021-07-21 01:12:26 +00:00
<pre></pre>
2021-08-25 17:50:58 +00:00
<textarea id="input-message" form="message" name="message" rows="3" maxlength="1000" class="form-control" required></textarea>
2021-07-21 01:12:26 +00:00
<pre></pre>
<pre class="btn btn-secondary format d-inline-block m-0 fas fa-bold" aria-hidden="true" onclick="makeBold('input-message')" data-toggle="tooltip" data-placement="bottom" title="Bold"></pre>
&nbsp;
<pre class="btn btn-secondary format d-inline-block m-0 fas fa-italic" aria-hidden="true" onclick="makeItalics('input-message')" data-toggle="tooltip" data-placement="bottom" title="Italicize"></pre>
&nbsp;
<pre class="btn btn-secondary format d-inline-block m-0 fas fa-quote-right" aria-hidden="true" onclick="makeQuote('input-message')" data-toggle="tooltip" data-placement="bottom" title="Quote"></pre>
&nbsp;
<pre style="line-height:1;" class="btn btn-secondary format d-inline-block m-0 font-weight-bolder text-uppercase" onclick="commentForm('input-message');getGif()" aria-hidden="true" data-toggle="modal" data-target="#gifModal" data-toggle="tooltip" data-placement="bottom" title="Add GIF">GIF</pre>
&nbsp;
<pre class="btn btn-secondary format d-inline-block m-0 fas fa-smile-beam" onclick="loadEmojis('input-message')" aria-hidden="true" data-toggle="modal" data-target="#emojiModal" data-toggle="tooltip" data-placement="bottom" title="Add Emoji"></pre>
&nbsp;
<input type="submit" value="Submit" class="btn btn-primary mt-3">
</form>
<div class="d-none mt-3 profile-toggleable" id="coin-transfer">
<input id="coins-transfer-amount" class="form-control" name="amount" type="number">
<button class="btn btn-primary mt-3" onclick="transferCoins()">Gift</button>
</div>
2021-08-15 01:03:29 +00:00
{% elif v and v.id == u.id %}
2021-07-21 01:12:26 +00:00
<a href="/settings/profile" class="btn btn-secondary">Edit profile</a>
2021-07-23 20:01:48 +00:00
<a href="/views" class="btn btn-secondary">Profile views</a>
2021-08-15 01:03:29 +00:00
{% endif %}
2021-08-29 02:54:36 +00:00
{% if v and v.id != u.id and v.admin_level > 1 %}
2021-07-21 01:12:26 +00:00
<br><br>
<div class="body d-lg-flex border-bottom">
<div class="w-lg-100">
<form action="/admin/title_change/{{u.id}}" method="post">
<input type="hidden" name="formkey" value="{{v.formkey}}">
<input id="customtitlebody" type="text" name="title" class="form-control" placeholder='Enter a flair here' value="{% if u.customtitleplain %}{{u.customtitleplain}}{% endif %}">
<div class="d-flex mt-2">
<small class="format"><i class="btn btn-secondary format d-inline-block m-0 fas fa-smile-beam" onclick="loadEmojis('customtitlebody')" aria-hidden="true" data-toggle="modal" data-target="#emojiModal" data-toggle="tooltip" data-placement="bottom" title="Add Emoji"></i></small>
&nbsp;&nbsp;&nbsp;
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="locked" name="locked" {% if u.flairchanged %}checked{% endif %}>
<label class="custom-control-label" for="locked">locked</label>
2021-07-21 01:12:26 +00:00
</div>
&nbsp;&nbsp;&nbsp;
<input class="btn btn-primary ml-auto" type="submit" value="Change Flair">
</div>
</form>
</div>
</div>
<pre></pre>
2021-08-21 17:48:25 +00:00
{% if u.is_suspended %}
2021-08-11 17:01:19 +00:00
<form action="/unban_user/{{u.id}}/" method="post" action="">
2021-07-29 21:01:22 +00:00
<input type="hidden" name="formkey" value="{{v.formkey}}">
<div class="custom-control custom-checkbox">
<input type="checkbox" id="alts-1-desktop" class="custom-control-input" name="alts" value="1">
<label class="custom-control-label" for="alts-1-desktop">Include alts</label>
2021-07-29 21:01:22 +00:00
</div>
2021-07-21 01:12:26 +00:00
<input type="submit" class="btn btn-success" value="Unban user">
</form>
{% else %}
2021-08-11 17:01:19 +00:00
<form action="/ban_user/{{u.id}}" method="post" action="">
2021-07-21 01:12:26 +00:00
<input type="hidden" name="formkey" value="{{v.formkey}}">
<input style="font-size:11px;" type="text" class="form-control" name="reason" placeholder="Ban Reason" onchange="document.getElementById('user-ban-submit').disabled=false">
<input style="font-size:11px;" type="number" class="form-control" name="days" placeholder="Days (blank = permanent)">
2021-07-29 21:01:22 +00:00
<div class="custom-control custom-checkbox">
<input type="checkbox" id="alts-2-desktop" class="custom-control-input" name="alts" value="1">
<label class="custom-control-label" for="alts-2-desktop">Include alts</label>
2021-07-29 21:01:22 +00:00
</div>
2021-07-21 01:12:26 +00:00
<input id="user-ban-submit" type="submit" class="btn btn-danger" value="Ban user" disabled>
</form>
{% endif %}
<pre></pre>
{% if u.agendaposter %}
2021-08-11 17:01:19 +00:00
<a class="btn btn-success" href="javascript:void(0)" onclick="post_toast('/agendaposter/{{u.id}}?toast')">Disable Agendaposter Theme</a>
2021-07-21 01:12:26 +00:00
{% else %}
2021-07-28 02:46:49 +00:00
<form action="/agendaposter/{{u.id}}" method="post">
2021-07-21 01:12:26 +00:00
<input type="hidden" name="formkey", value="{{v.formkey}}">
<input type="number" name="days" class="form-control" placeholder="Days (0 or blank = permanent)" />
<input type="submit" class="btn btn-danger" value="Lock Agendaposter Theme" />
</form>
{% endif %}
<pre></pre>
{% if u.shadowbanned %}
2021-08-11 17:01:19 +00:00
<a class="btn btn-success" href="javascript:void(0)" onclick="post_toast('/unshadowban/{{u.id}}')">Unshadowban</a>
2021-07-21 01:12:26 +00:00
{% else %}
2021-08-11 17:01:19 +00:00
<a class="btn btn-danger" href="javascript:void(0)" onclick="post_toast('/shadowban/{{u.id}}')">Shadowban</a>
{% endif %}
<pre></pre>
{% if u.verified %}
<a class="btn btn-danger" href="javascript:void(0)" onclick="post_toast('/admin/unverify/{{u.id}}')">Unverify</a>
{% else %}
<a class="btn btn-success" href="javascript:void(0)" onclick="post_toast('/admin/verify/{{u.id}}')">Verify</a>
2021-07-21 01:12:26 +00:00
{% endif %}
<pre></pre>
<form action="/admin/unnuke_user" method="post">
<input type="hidden" name="formkey", value="{{v.formkey}}">
<input type="hidden" name="user" value="{{u.username}}">
<input type="submit" class="btn btn-success" value="Approve User's Content">
</form>
<pre></pre>
<form 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" class="btn btn-danger" value="Remove User's Content">
</form>
{% endif %}
2021-08-24 17:43:20 +00:00
<pre></pre>
<p>User ID: {{u.id}}</p>
2021-07-21 01:12:26 +00:00
{% if v and v.admin_level >=4 %}
{% if u.is_private %}
<p>User has private mode enabled.</p>
{% endif %}
2021-08-11 18:27:04 +00:00
<span>Alts:</span>
2021-07-21 01:12:26 +00:00
<ul>
{% for account in u.alts %}
2021-07-28 04:54:21 +00:00
<li><a href="{{account.url}}">@{{account.username}}</a>{% if account._is_manual %} [m]{% endif %}</li>
2021-07-21 01:12:26 +00:00
{% endfor %}
</ul>
{% endif %}
2021-08-11 02:54:52 +00:00
{% if u.is_suspended %}
2021-08-11 18:27:04 +00:00
<p>Banned by: <a href="{{u.banned_by.url}}">@{{u.banned_by.username}}</a></p>
2021-08-11 02:54:52 +00:00
{% endif %}
2021-08-15 01:03:29 +00:00
</div>
2021-07-21 01:12:26 +00:00
<div>
{% for b in u.badges %}
2021-07-25 15:37:55 +00:00
{% if b.url %}
2021-09-03 14:08:32 +00:00
<a rel="nofollow noopener noreferrer" href="{{b.url}}"><img loading="lazy" style="width: 60px; height: 60px" src="{{b.path}}" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="{{b.name}} - {{b.text}}"></a>
2021-07-25 15:37:55 +00:00
{% else %}
2021-09-03 14:08:32 +00:00
<img loading="lazy" style="width: 60px; height: 60px" src="{{b.path}}" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="{{b.name}} - {{b.text}}">
2021-07-25 15:37:55 +00:00
{% endif %}
2021-07-21 01:12:26 +00:00
{% endfor %}
</div>
2021-08-15 01:03:29 +00:00
</div>
2021-07-21 01:12:26 +00:00
2021-08-15 01:03:29 +00:00
</div>
</div>
2021-07-21 01:12:26 +00:00
</div>
</div>
</div>
</div>
</div>
{% endblock %}
{% block mobileUserBanner %}
<!-- Mobile -->
<div class="container-fluid text-center bg-white d-md-none">
<div class="row">
<div class="col px-0">
2021-09-03 14:08:32 +00:00
<img loading="lazy" src="{{u.banner_url}}" style="width: 100%; height: 65px; object-fit: cover;">
2021-07-21 01:12:26 +00:00
</div>
</div>
<div class="row border-bottom">
<div class="col">
<div style="margin-top: -34px;">
2021-09-03 14:08:32 +00:00
<a rel="nofollow noopener noreferrer" href="{% if u.highres %}{{u.highres}}{% else %}{{u.profile_url}}{% endif %}"><img loading="lazy" src="{{u.profile_url}}" class="profile-pic-65 bg-white border-2 border-white mb-2"></a>
2021-07-21 01:12:26 +00:00
</div>
<div class="mt-n3 py-3">
2021-07-28 15:43:16 +00:00
{% if u.is_suspended %}
2021-07-21 01:12:26 +00:00
<h5 style="color:#ff66ac;">BANNED USER{% if u.ban_reason %}: {{u.ban_reason}}{% endif %}</h5>
2021-08-11 15:15:51 +00:00
{% if u.unban_utc %}<h5 style="color:#ff66ac;">{{u.unban_string}}</h5>{% endif %}
2021-07-21 01:12:26 +00:00
{% endif %}
2021-09-01 11:59:28 +00:00
{% if u.verified %}<span><i class="fas fa-badge-check align-middle ml-1" style="color:#1DA1F2" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="{{u.verified}}"></i></span>&nbsp;{% endif %}
2021-08-11 18:02:52 +00:00
<a class="text-black"><h1 class="h5 d-inline-block" style="color: #{{u.namecolor}}"><span {% if u.patron %}class="patron" style="background-color:#{{u.namecolor}};"{% endif %}>{{u.username}}</span></h1></a>
2021-07-21 01:12:26 +00:00
{% if u.username != u.original_username %}
<span>
<i class="fad fa-user-tag text-info align-middle ml-2" data-toggle="tooltip" data-placement="bottom" title="Original Username: @{{u.original_username}}"></i>
</span>
{% endif %}
2021-08-09 13:31:07 +00:00
{% if u.admin_level > 1 or (u.admin_level == 1 and (not v or v.admin_level < 2)) %}
2021-08-21 18:00:19 +00:00
<span>
2021-08-19 18:45:27 +00:00
<i class="fas fa-broom text-admin align-middle ml-2" data-toggle="tooltip" data-placement="bottom" title="Admin"></i>
2021-08-21 18:00:19 +00:00
</span>
2021-08-09 13:31:07 +00:00
{% elif u.admin_level == 1 %}
2021-08-21 18:00:19 +00:00
<span>
2021-08-09 13:31:07 +00:00
<i class="fas fa-broom align-middle ml-2" data-toggle="tooltip" data-placement="bottom" title="Fake Admin"></i>
2021-08-21 18:00:19 +00:00
</span>
2021-08-09 13:31:07 +00:00
{% endif %}
2021-07-21 01:12:26 +00:00
{% if v and v.has_follower(u) and not v.is_nofollow %}
2021-09-06 01:57:42 +00:00
<span class="followsyou text-primary badge badge-secondary text-small align-middle mx-1">Follows you</span>
2021-07-21 01:12:26 +00:00
{% endif %}
2021-09-03 14:08:32 +00:00
{% if u.customtitle %}<p style="color: #{{u.titlecolor}}">{% if u.quadrant %}<img loading="lazy" height="20" src="/assets/images/PCM/quadrants/{{u.quadrant}}.gif">{% endif %}{{u.customtitle | safe}}</p>{% endif %}
2021-07-21 01:12:26 +00:00
<div class="font-weight-normal">
2021-09-08 08:00:51 +00:00
<span id="profile-coins-amount-mobile" class="font-weight-bold">{{u.coins}}</span> {{'COINS_NAME' | app_config}}&nbsp;&nbsp;{% if u.stored_subscriber_count >=1 and not u.is_nofollow %}<a href="/@{{u.username}}/followers" class="font-weight-bold">{{u.stored_subscriber_count}} follower{{'s' if u.stored_subscriber_count != 1 else ''}}</a>&nbsp;&nbsp; {% endif %}
2021-09-03 21:27:31 +00:00
2021-09-06 17:03:14 +00:00
{% if "pcm" in request.host %}
2021-09-03 21:27:31 +00:00
<br>Based count: {{u.basedcount}}
{% endif %}
<br>joined <span data-toggle="tooltip" data-placement="bottom" title="" data-original-title="{{u.created_datetime}}" class="font-weight-bold">{{u.created_date}}</span>
2021-07-21 01:12:26 +00:00
</div>
{% if u.bio_html %}
<p class="text-muted text-break">{{u.bio_html | safe}}</p>
{% endif %}
2021-08-11 15:15:51 +00:00
{% if u.received_awards %}
<div class="text-white rounded p-2 my-3 text-center" style="background-color: rgba(50, 50, 50, 0.6);">
<p class="text-uppercase my-0" style="font-weight: bold; font-size: 12px;">Awards received</p>
{% for a in u.received_awards %}
<span class="d-inline-block mx-1">
2021-08-13 01:52:01 +00:00
<i class="{{a['icon']}} {{a['color']}} fa-fw" data-toggle="tooltip" data-placement="bottom" title="{{a['title']}} Awards received"></i>
x{{a['count']}}
2021-08-11 15:15:51 +00:00
</span>
{% endfor %}
</div>
{% endif %}
2021-07-21 01:12:26 +00:00
<div class="mb-3">
2021-07-25 15:37:55 +00:00
{% for b in u.badges %}
{% if b.url %}
2021-09-03 14:08:32 +00:00
<a rel="nofollow noopener noreferrer" href="{{b.url}}"><img loading="lazy" style="width: 32px; height: 32px" src="{{b.path}}" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="{{b.name}} - {{b.text}}"></a>
2021-07-21 01:12:26 +00:00
{% else %}
2021-09-03 14:08:32 +00:00
<img loading="lazy" style="width: 32px; height: 32px" src="{{b.path}}" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="{{b.name}} - {{b.text}}">
2021-07-25 15:37:55 +00:00
{% endif %}
{% endfor %}
2021-07-21 01:12:26 +00:00
</div>
{% if v and v.id == u.id %}
2021-08-15 01:03:29 +00:00
<a href="/settings/profile" class="btn btn-secondary btn-sm">Edit profile</a>
<a href="/views" class="btn btn-secondary btn-sm">Profile views</a>
2021-07-21 01:12:26 +00:00
{% endif %}
{% if v and v.id != u.id %}
2021-08-11 17:01:19 +00:00
<a id="button-unsub2" class="btn btn-secondary {% if not is_following %}d-none{% endif %}" href="javascript:void(0)" onclick="post_toast('/unfollow/{{u.username}}', callback=function(){document.getElementById('button-unsub2').classList.toggle('d-none');document.getElementById('button-sub2').classList.toggle('d-none');})">Unfollow</a>
<a id="button-sub2" class="btn btn-primary {% if is_following or u.is_nofollow or u.is_blocked %}d-none{% endif %}" href="javascript:void(0)" onclick="post_toast('/follow/{{u.username}}', callback=function(){document.getElementById('button-sub2').classList.toggle('d-none');document.getElementById('button-unsub2').classList.toggle('d-none');})">Follow</a>
2021-07-21 01:12:26 +00:00
<a class="btn btn-primary" href="javascript:void(0)" onclick="toggleElement('profile-toggleable-mobile', 'message-mobile')">Message</a>
2021-08-11 17:01:19 +00:00
<a class="btn btn-primary" href="javascript:void(0)" onclick="post_toast('/@{{u.username}}/suicide')">Get them help</a>
2021-09-08 08:00:51 +00:00
<a class="btn btn-primary" href="javascript:void(0)" onclick="toggleElement('profile-toggleable-mobile', 'coin-transfer-mobile')">Gift {{'COINS_NAME' | app_config}}</a>
2021-08-31 20:08:06 +00:00
2021-09-06 00:51:01 +00:00
{% if 'pcm' in request.host and v.admin_level == 6 %}
2021-08-31 20:08:06 +00:00
{% if u.admin_level == 0 %}
<a class="btn btn-primary" href="javascript:void(0)" onclick="post_toast('/@{{u.username}}/make_admin')">Make admin</a>
{% elif v.id == 10 %}
<a class="btn btn-primary" href="javascript:void(0)" onclick="post_toast('/@{{u.username}}/remove_admin')">Remove admin</a>
{% endif %}
2021-08-31 20:05:06 +00:00
{% endif %}
2021-08-31 20:08:06 +00:00
2021-09-08 07:09:50 +00:00
{% if 'rdrama' in request.host and v.id in [28,29,995] %}
2021-09-06 00:51:01 +00:00
{% if u.admin_level == 0 %}
<a class="btn btn-primary" href="javascript:void(0)" onclick="post_toast('/@{{u.username}}/make_admin')">Make admin</a>
<a class="btn btn-primary" href="javascript:void(0)" onclick="post_toast('/@{{u.username}}/make_fake_admin')">Make fake admin</a>
{% elif u.admin_level == 1 %}
<a class="btn btn-primary" href="javascript:void(0)" onclick="post_toast('/@{{u.username}}/remove_fake_admin')">Remove fake admin</a>
{% else %}
<a class="btn btn-primary" href="javascript:void(0)" onclick="post_toast('/@{{u.username}}/remove_admin')">Remove admin</a>
{% endif %}
{% endif %}
{% if 'rdrama' not in request.host and 'pcm' not in request.host and v.admin_level == 6 %}
{% if u.admin_level == 0 %}
<a class="btn btn-primary" href="javascript:void(0)" onclick="post_toast('/@{{u.username}}/make_admin')">Make admin</a>
{% else %}
<a class="btn btn-primary" href="javascript:void(0)" onclick="post_toast('/@{{u.username}}/remove_admin')">Remove admin</a>
{% endif %}
{% endif %}
<form class="d-none profile-toggleable-mobile" id='message-mobile' action="/@{{u.username}}/message" method="post">
2021-07-21 01:12:26 +00:00
<pre></pre>
2021-08-25 17:50:58 +00:00
<textarea id="input-message-mobile" form="message-mobile" name="message" rows="3" maxlength="1000" class="form-control" required></textarea>
2021-07-21 01:12:26 +00:00
<pre></pre>
<pre class="btn btn-secondary format d-inline-block m-0 fas fa-bold" aria-hidden="true" onclick="makeBold('input-message-mobile')" data-toggle="tooltip" data-placement="bottom" title="Bold"></pre>
&nbsp;
<pre class="btn btn-secondary format d-inline-block m-0 fas fa-italic" aria-hidden="true" onclick="makeItalics('input-message-mobile')" data-toggle="tooltip" data-placement="bottom" title="Italicize"></pre>
&nbsp;
<pre class="btn btn-secondary format d-inline-block m-0 fas fa-quote-right" aria-hidden="true" onclick="makeQuote('input-message-mobile')" data-toggle="tooltip" data-placement="bottom" title="Quote"></pre>
&nbsp;
<pre style="line-height:1;" class="btn btn-secondary format d-inline-block m-0 font-weight-bolder text-uppercase" onclick="commentForm('input-message-mobile');getGif()" aria-hidden="true" data-toggle="modal" data-target="#gifModal" data-toggle="tooltip" data-placement="bottom" title="Add GIF">GIF</pre>
&nbsp;
<pre class="btn btn-secondary format d-inline-block m-0 fas fa-smile-beam" onclick="loadEmojis('input-message-mobile')" aria-hidden="true" data-toggle="modal" data-target="#emojiModal" data-toggle="tooltip" data-placement="bottom" title="Add Emoji"></pre>
&nbsp;
<input type="submit" value="Submit" class="btn btn-primary mt-3">
</form>
<div class="d-none mt-3 profile-toggleable-mobile" id="coin-transfer-mobile">
<input id="coins-transfer-amount-mobile" class="form-control" name="amount" type="number">
<button class="btn btn-primary mt-3" onclick="transferCoins(true)">Gift</button>
</div>
2021-07-21 01:12:26 +00:00
2021-08-29 02:54:36 +00:00
{% if v.admin_level > 1 %}
2021-07-21 01:12:26 +00:00
<br><br>
<div class="body d-lg-flex border-bottom">
<div class="w-lg-100">
<form action="/admin/title_change/{{u.id}}" method="post">
<input type="hidden" name="formkey" value="{{v.formkey}}">
<input id="customtitlebody-mobile" type="text" name="title" class="form-control" placeholder='Enter a flair here' value="{% if u.customtitle %}{{u.customtitle}}{% endif %}">
<div class="d-flex mt-2">
<small class="format"><i class="btn btn-secondary format d-inline-block m-0 fas fa-smile-beam" onclick="loadEmojis('customtitlebody-mobile')" aria-hidden="true" data-toggle="modal" data-target="#emojiModal" data-toggle="tooltip" data-placement="bottom" title="Add Emoji"></i></small>
&nbsp;&nbsp;&nbsp;
<div class="custom-control custom-checkbox">
2021-08-05 18:31:20 +00:00
<input type="checkbox" class="custom-control-input" id="locked-mobile" name="locked" {% if u.flairchanged %}checked{% endif %}>
<label class="custom-control-label" for="locked-mobile">locked</label>
2021-07-21 01:12:26 +00:00
</div>
&nbsp;&nbsp;&nbsp;
<input class="btn btn-primary ml-auto" type="submit" value="Change Flair">
</div>
</form>
</div>
</div>
<pre></pre>
2021-08-21 17:48:25 +00:00
{% if u.is_suspended %}
2021-08-11 17:01:19 +00:00
<form action="/unban_user/{{u.id}}" method="post">
2021-07-21 01:12:26 +00:00
<input type="hidden" name="formkey", value="{{v.formkey}}">
2021-07-29 21:14:18 +00:00
<br />
2021-07-29 21:01:22 +00:00
<div class="custom-control custom-checkbox">
<input type="checkbox" id="alts-1-mobile" class="custom-control-input" name="alts" value="1">
<label class="custom-control-label" for="alts-1-mobile">Include alts</label>
2021-07-29 21:01:22 +00:00
</div>
2021-07-29 21:14:18 +00:00
<br />
2021-07-21 01:12:26 +00:00
<input type="submit" class="btn btn-success" value="Unban user">
</form>
{% else %}
2021-08-11 17:01:19 +00:00
<form action="/ban_user/{{u.id}}/" method="post">
2021-07-21 01:12:26 +00:00
<input type="hidden" name="formkey" value="{{v.formkey}}">
<input style="font-size:11px;" type="text" class="form-control" name="reason" placeholder="Ban Reason" onchange="document.getElementById('user-ban-submit2').disabled=false">
<input style="font-size:11px;" type="number" class="form-control" name="days" placeholder="Days (blank = permanent)">
2021-07-29 21:14:18 +00:00
<br />
2021-07-29 21:01:22 +00:00
<div class="custom-control custom-checkbox">
<input type="checkbox" id="alts-2-mobile" class="custom-control-input" name="alts" value="1">
<label class="custom-control-label" for="alts-2-mobile">Include alts</label>
2021-07-29 21:01:22 +00:00
</div>
2021-07-29 21:14:18 +00:00
<br />
2021-07-21 01:12:26 +00:00
<input id="user-ban-submit2" type="submit" class="btn btn-danger" value="Ban user" disabled>
</form>
{% endif %}
<pre></pre>
{% if u.agendaposter %}
2021-08-11 17:01:19 +00:00
<a class="btn btn-success" href="javascript:void(0)" onclick="post_toast('/agendaposter/{{u.id}}?toast')">Disable Agendaposter Theme</a>
2021-07-21 01:12:26 +00:00
{% else %}
2021-07-28 02:46:49 +00:00
<form action="/agendaposter/{{u.id}}" method="post">
2021-07-21 01:12:26 +00:00
<input type="hidden" name="formkey", value="{{v.formkey}}">
<input type="number" name="days" class="form-control" placeholder="Days (0 or blank = permanent)" />
<input type="submit" class="btn btn-danger" value="Lock Agendaposter Theme" />
</form>
{% endif %}
<pre></pre>
{% if u.shadowbanned %}
2021-08-11 17:01:19 +00:00
<a class="btn btn-success" href="javascript:void(0)" onclick="post_toast('/unshadowban/{{u.id}}')">Unshadowban</a>
2021-07-21 01:12:26 +00:00
{% else %}
2021-08-11 17:01:19 +00:00
<a class="btn btn-danger" href="javascript:void(0)" onclick="post_toast('/shadowban/{{u.id}}')">Shadowban</a>
2021-07-21 01:12:26 +00:00
{% endif %}
2021-09-06 02:57:20 +00:00
{% if u.verified %}
<a class="btn btn-danger" href="javasript:void(0)" onclick="post_toast('/admin/unverify/{{u.id}}')">Unverify</a>
{% else %}
<a class="btn btn-success" href="javasript:void(0)" onclick="post_toast('/admin/verify/{{u.id}}')">Verify</a>
{% endif %}
2021-07-21 01:12:26 +00:00
<pre></pre>
<form action="/admin/unnuke_user" method="post">
<input type="hidden" name="formkey", value="{{v.formkey}}">
<input type="hidden" name="user" value="{{u.username}}">
<input type="submit" class="btn btn-success" value="Approve User's Content">
</form>
<pre></pre>
<form 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" class="btn btn-danger" value="Remove User's Content">
</form>
{% endif %}
2021-08-31 20:20:01 +00:00
{% endif %}
<pre></pre>
<p>User ID: {{u.id}}</p>
2021-08-31 20:21:15 +00:00
{% if v and v.admin_level > 1 %}
2021-08-31 20:20:01 +00:00
{% if u.is_private %}
<p>User has private mode enabled.</p>
{% endif %}
<span>Alts:</span>
<ul>
{% for account in u.alts %}
<li><a href="{{account.url}}">@{{account.username}}</a>{% if account._is_manual %} [m]{% endif %}</li>
{% endfor %}
</ul>
{% endif %}
2021-08-11 02:54:52 +00:00
{% if u.is_suspended %}
2021-08-11 18:27:04 +00:00
<p>Banned by: <a href="{{u.banned_by.url}}">@{{u.banned_by.username}}</a></p>
2021-07-21 01:12:26 +00:00
{% endif %}
</div>
</div>
</div>
</div>
{% endblock %}
{% block content %}
<div id="profilecontent" class="row no-gutters">
<div class="col">
<div class="flex-row box-shadow-bottom d-flex justify-content-center justify-content-md-between align-items-center">
<ul class="nav settings-nav">
<li class="nav-item">
<a class="nav-link {% if not 'saved' in request.path %}active{% endif %}" href="/@{{u.username}}">Posts</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/@{{u.username}}/comments">Comments</a>
</li>
{% if u.id == v.id %}
<li class="nav-item">
<a class="nav-link {% if 'saved' in request.path %}active{% endif %}" href="/@{{u.username}}/saved/posts">Saved Posts</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/@{{u.username}}/saved/comments">Saved Comments</a>
</li>
{% endif %}
</ul>
</div>
</div>
</div>
2021-07-28 04:54:21 +00:00
{% if not "saved" in request.full_path %}
<div class="d-flex justify-content-between align-items-center" style="padding-top:10px">
2021-07-21 01:12:26 +00:00
2021-07-28 04:54:21 +00:00
<div class="d-flex align-items-center sortingbarmargin">
<div class="text-small font-weight-bold mr-2">‎</div>
<div class="dropdown dropdown-actions">
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{% if t=="day" %}<i class="fas fa-calendar-day mr-1"></i>{% endif %}
{% if t=="week" %}<i class="fas fa-calendar-week mr-1"></i>{% endif %}
{% if t=="month" %}<i class="fas fa-calendar-alt mr-1"></i>{% endif %}
{% if t=="year" %}<i class="fas fa-calendar mr-1"></i>{% endif %}
{% if t=="all" %}<i class="fas fa-infinity mr-1"></i>{% endif %}
{{t | capitalize}}
</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton" x-placement="bottom-start" style="position: absolute; will-change: transform; top: 0px; left: 0px; transform: translate3d(0px, 31px, 0px);">
2021-08-19 05:54:40 +00:00
{% if not t=="hour" %}<a class="dropdown-item" href="?sort={{sort}}&t=hour"><i class="fas fa-clock mr-2"></i>Hour</a>{% endif %}
2021-07-28 04:54:21 +00:00
{% if not t=="day" %}<a class="dropdown-item" href="?sort={{sort}}&t=day"><i class="fas fa-calendar-day mr-2"></i>Day</a>{% endif %}
{% if not t=="week" %}<a class="dropdown-item" href="?sort={{sort}}&t=week"><i class="fas fa-calendar-week mr-2"></i>Week</a>{% endif %}
{% if not t=="month" %}<a class="dropdown-item" href="?sort={{sort}}&t=month"><i class="fas fa-calendar-alt mr-2"></i>Month</a>{% endif %}
{% if not t=="year" %}<a class="dropdown-item" href="?sort={{sort}}&t=year"><i class="fas fa-calendar mr-2"></i>Year</a>{% endif %}
{% if not t=="all" %}<a class="dropdown-item" href="?sort={{sort}}&t=all"><i class="fas fa-infinity mr-2"></i>All</a>{% endif %}
</div>
2021-07-21 01:12:26 +00:00
</div>
2021-07-28 04:54:21 +00:00
<div class="text-small font-weight-bold ml-3 mr-2">‎</div>
<div class="dropdown dropdown-actions">
<button class="btn btn-secondary dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{% if sort=="top" %}<i class="fas fa-arrow-alt-circle-up mr-1"></i>{% endif %}
{% if sort=="bottom" %}<i class="fas fa-arrow-alt-circle-down mr-1"></i>{% endif %}
{% if sort=="new" %}<i class="fas fa-sparkles mr-1"></i>{% endif %}
{% if sort=="old" %}<i class="fas fa-book mr-1"></i>{% endif %}
{% if sort=="controversial" %}<i class="fas fa-bullhorn mr-1"></i>{% endif %}
{% if sort=="comments" %}<i class="fas fa-comments mr-1"></i>{% endif %}
{{sort | capitalize}}
</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton" x-placement="bottom-start" style="position: absolute; will-change: transform; top: 0px; left: 0px; transform: translate3d(0px, 31px, 0px);">
{% if sort != "top" %}<a class="dropdown-item" href="?sort=top&t={{t}}"><i class="fas fa-arrow-alt-circle-up mr-2"></i>Top</a>{% endif %}
{% if sort != "bottom" %}<a class="dropdown-item" href="?sort=bottom&t={{t}}"><i class="fas fa-arrow-alt-circle-down mr-2"></i>Bottom</a>{% endif %}
{% if sort != "new" %}<a class="dropdown-item" href="?sort=new&t={{t}}"><i class="fas fa-sparkles mr-2"></i>New</a>{% endif %}
{% if sort != "old" %}<a class="dropdown-item" href="?sort=old&t={{t}}"><i class="fas fa-book mr-2"></i>Old</a>{% endif %}
{% if sort != "controversial" %}<a class="dropdown-item" href="?sort=controversial&t={{t}}"><i class="fas fa-bullhorn mr-2"></i>Controversial</a>{% endif %}
{% if sort != "comments" %}<a class="dropdown-item" href="?sort=comments&t={{t}}"><i class="fas fa-comments mr-2"></i>Comments</a>{% endif %}
</div>
2021-07-21 01:12:26 +00:00
</div>
</div>
</div>
2021-07-28 04:54:21 +00:00
{% endif %}
2021-07-21 01:12:26 +00:00
<div class="row no-gutters {% if listing %}mt-md-3{% elif not listing %}my-md-3{% endif %}" style="margin-top: 10px;">
<div class="col">
<div class="posts">
{% include "submission_listing.html" %}
</div>
</div>
</div>
{% endblock %}
{% block pagenav %}
{% if listing %}
<nav aria-label="Page navigation">
<ul class="pagination pagination-sm mb-0">
{% if page>1 %}
<li class="page-item">
<small><a class="page-link" href="?page={{page-1}}&sort={{sort}}&t={{t}}" tabindex="-1">Prev</a></small>
</li>
{% else %}
<li class="page-item disabled"><span class="page-link">Prev</span></li>
{% endif %}
{% if next_exists %}
<li class="page-item">
<small><a class="page-link" href="?page={{page+1}}&sort={{sort}}&t={{t}}">Next</a></small>
</li>
{% else %}
<li class="page-item disabled"><span class="page-link">Next</span></li>
{% endif %}
</ul>
</nav>
{% endif %}
{% endblock %}
{% block GIFpicker %}
{% if v %}
{% include "emoji_modal.html" %}
{% include "gif_modal.html" %}
{% endif %}
{% endblock %}