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 %}
|
2023-10-29 12:51:00 +00:00
|
|
|
|
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-30 12:17:44 +00:00
|
|
|
<link rel="stylesheet" href="{{('css/transparent.css') | asset}}">
|
2022-12-05 04:16:45 +00:00
|
|
|
{% endif %}
|
2023-10-05 10:09:58 +00:00
|
|
|
{% if u and (u.profilecss or u.profile_background) and not request.values.get('nocss') and can_see(v, u) %}
|
2023-09-07 16:16:13 +00:00
|
|
|
<link rel="stylesheet" href="/@{{u.username}}/profilecss">
|
2022-11-20 02:18:45 +00:00
|
|
|
{% endif %}
|
2022-05-04 23:09:46 +00:00
|
|
|
{% endblock %}
|
2023-10-29 12:51:00 +00:00
|
|
|
|
2022-05-04 23:09:46 +00:00
|
|
|
{% block content %}
|
2023-10-29 12:51:00 +00:00
|
|
|
{%- include 'userpage/banner.html' -%}
|
|
|
|
{%- include 'userpage/header.html' -%}
|
|
|
|
{% block userpage_content required %}{% endblock %}
|
|
|
|
|
|
|
|
{% if FEATURES['USERS_PROFILE_SONG'] and u.song %}
|
|
|
|
{% 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 %}
|
|
|
|
<div id='tax' class="d-none">{% if v.patron or u.patron %}0{% else %}0.03{% endif %}</div>
|
|
|
|
<script defer src="{{'js/userpage_v.js' | asset}}"></script>
|
|
|
|
<div id="username" class="d-none">{{u.username}}</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<script defer src="{{'js/userpage.js' | asset}}"></script>
|
|
|
|
|
|
|
|
{% if can_see(v, u) and u.song %}
|
|
|
|
<audio id="profile-song" hidden preload="none" src="/songs/{{u.song}}.mp3" loop></audio>
|
|
|
|
<script defer src="{{'js/profile_song.js' | asset}}"></script>
|
|
|
|
{% endif %}
|
2022-05-04 23:09:46 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block pagenav %}
|
2023-10-29 12:51:00 +00:00
|
|
|
{% if listing %}
|
|
|
|
{% include "pagination.html" %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if request.path.endswith('/posts') %}
|
|
|
|
<script defer src="{{'js/vendor/marked.js' | asset}}"></script>
|
|
|
|
<script defer src="{{'js/markdown.js' | asset}}"></script>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if v and v.id != u.id and request.path.endswith('/posts') %}
|
|
|
|
{% include "modals/gif.html" %}
|
|
|
|
{% endif %}
|
2022-05-04 23:09:46 +00:00
|
|
|
{% endblock %}
|
2023-10-29 12:51:00 +00:00
|
|
|
|
2022-11-21 08:52:22 +00:00
|
|
|
{% block GIFpicker %}{% endblock %}
|