2022-05-04 23:09:46 +00:00
|
|
|
{% extends "default.html" %}
|
|
|
|
{% block pagetype %}userpage{% endblock %}
|
2022-11-21 08:52:22 +00:00
|
|
|
{% block pagetitle %}@{{u.username}}'s profile{% endblock %}
|
2022-11-20 02:18:45 +00:00
|
|
|
{% block head_final %}
|
2022-12-05 04:57:27 +00:00
|
|
|
{% if u and u.profile_background %}
|
2022-12-09 12:03:08 +00:00
|
|
|
{% set displaying_bg = True %}
|
2022-12-19 01:44:57 +00:00
|
|
|
{% if not HOLIDAY_EVENT %}
|
|
|
|
<link rel="stylesheet" href="{{('css/transparent.css') | asset}}">
|
|
|
|
{% endif %}
|
2022-12-05 04:16:45 +00:00
|
|
|
{% endif %}
|
2022-12-29 14:20:27 +00:00
|
|
|
{% if u and (u.profilecss or u.profile_background) and not request.values.get('nocss') %}
|
2022-11-20 02:18:45 +00:00
|
|
|
<link rel="stylesheet" href="/{{u.id}}/profilecss">
|
|
|
|
{% endif %}
|
2022-05-04 23:09:46 +00:00
|
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
2022-12-09 03:35:28 +00:00
|
|
|
{%- include 'userpage/banner.html' -%}
|
|
|
|
{%- include 'userpage/header.html' -%}
|
|
|
|
{% block userpage_content required %}{% endblock %}
|
2022-07-20 01:16:59 +00:00
|
|
|
{% if FEATURES['USERS_PROFILE_SONG'] and u.song %}
|
2022-05-04 23:09:46 +00:00
|
|
|
{% if v and v.id == u.id %}
|
|
|
|
<div id="v_username" class="d-none">{{v.username}}</div>
|
|
|
|
{% else %}
|
|
|
|
<div id="u_username" class="d-none">{{u.username}}</div>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if v %}
|
2022-12-22 20:44:37 +00:00
|
|
|
<div id='tax' class="d-none">{% if v.patron or u.patron %}0{% else %}0.03{% endif %}</div>
|
2022-09-24 07:04:06 +00:00
|
|
|
<script defer src="{{'js/userpage_v.js' | asset}}"></script>
|
2022-05-04 23:09:46 +00:00
|
|
|
<div id="username" class="d-none">{{u.username}}</div>
|
|
|
|
{% endif %}
|
2022-09-24 07:04:06 +00:00
|
|
|
<script defer src="{{'js/userpage.js' | asset}}"></script>
|
2022-12-19 14:00:37 +00:00
|
|
|
{% if not HOLIDAY_EVENT or SITE_NAME == 'WPD' %}
|
2022-12-19 02:18:48 +00:00
|
|
|
<script defer src="{{'js/profile_song.js' | asset}}"></script>
|
|
|
|
{% endif %}
|
2022-05-04 23:09:46 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block pagenav %}
|
|
|
|
{% if listing %}
|
2022-12-25 02:10:56 +00:00
|
|
|
<nav>
|
2022-05-04 23:09:46 +00:00
|
|
|
<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 %}
|
|
|
|
|
2022-12-03 01:49:07 +00:00
|
|
|
{% if not request.path.endswith('/comments') and not request.path.endswith(u.username) %}
|
2022-11-18 19:16:40 +00:00
|
|
|
<script defer src="{{'js/vendor/marked.js' | asset}}"></script>
|
|
|
|
<script defer src="{{'js/markdown.js' | asset}}"></script>
|
2022-07-09 08:35:47 +00:00
|
|
|
{% endif %}
|
2022-05-04 23:09:46 +00:00
|
|
|
|
2022-12-03 01:49:07 +00:00
|
|
|
{% if v and v.id != u.id and not request.path.endswith('/comments') and not request.path.endswith(u.username) %}
|
2022-11-15 19:14:29 +00:00
|
|
|
{% include "modals/emoji.html" %}
|
2022-05-04 23:09:46 +00:00
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
2022-11-21 08:52:22 +00:00
|
|
|
{% block GIFpicker %}{% endblock %}
|