MarseyWorld/files/templates/default.html

149 lines
5.8 KiB
HTML
Raw Normal View History

[DO NOT MERGE] titlesssssssssss (#468) * titles * testing * self * Revert "self" This reverts commit d6c12d5a5ba125feb44673f55e1fdac75f151cb5. * Revert "testing" This reverts commit 86d800f9fd552196b31f0e0b3891d4fc072a9bc0. * testing on devrama * rewrite the html head * reference error or smth idk * tempalte debug * template debug redux * default2 * rename default2 -> root, page title * fix settings2 * include the set_variables block * root scope variables 2 * test 3 * remove unnecessary set * add pagetitles to all settings2 pages * add pagetitle to casino * remove bloat * remove duplicate site name thingy * page titles 2 * page titles 3 * remove duplicate imports and add page titles everywhere iirc * ok but actually this time * remove unnecessary newlines * fix title lol * > * fsdfsfsfsfsfs * fsfs * template configurations * fix 500 * reduce login template bloat * move files and add status codes where needful * move authfroms to login * remove 2fa bloat * verification code * sign up fixes * readability * fssfsfsfs * move forgot password to login/ * readability * don't emit comments * add page titles where needful * gsgsgs * modals: move to respective pages * testing on devrama * get home garbage out of title * remove insane amount of icon duplication * sign up text * add votes pagetitle * fix blank lines * Revert "fix blank lines" This reverts commit b2c54339970725d00b6fc82bb458c1757909952c. * Fix blank lines on sign_up.html. * title: votes.html more meaningful identifier. * titles: Lottery, Directory, Notifications * head final in submission.html * fix missing comma * > * test * title: /comments * fsfsfsfsf * titles: user_cards * head: only load video and audio meta attributes if they actually exist * titlessssss: /admin/lottery/participants * titlessssssss: extra quote in search.html * titlessssss: userpage voters. * titties: /h/<sub>/{followers,blockers,exilees[sic]} * test banner * Revert "test banner" This reverts commit c3d875d03f3e60d72a60dab7d28bf108554a5826. * make submit.html inherit from default.html Co-authored-by: TLSM <duolsm@outlook.com>
2022-11-21 08:52:22 +00:00
{%- extends 'root.html' -%}
{% block body_attributes %}id="{% if request.path != '/comments' %}{% block pagetype %}frontpage{% endblock %}{% endif %}" class="has_header"{% endblock %}
[DO NOT MERGE] titlesssssssssss (#468) * titles * testing * self * Revert "self" This reverts commit d6c12d5a5ba125feb44673f55e1fdac75f151cb5. * Revert "testing" This reverts commit 86d800f9fd552196b31f0e0b3891d4fc072a9bc0. * testing on devrama * rewrite the html head * reference error or smth idk * tempalte debug * template debug redux * default2 * rename default2 -> root, page title * fix settings2 * include the set_variables block * root scope variables 2 * test 3 * remove unnecessary set * add pagetitles to all settings2 pages * add pagetitle to casino * remove bloat * remove duplicate site name thingy * page titles 2 * page titles 3 * remove duplicate imports and add page titles everywhere iirc * ok but actually this time * remove unnecessary newlines * fix title lol * > * fsdfsfsfsfsfs * fsfs * template configurations * fix 500 * reduce login template bloat * move files and add status codes where needful * move authfroms to login * remove 2fa bloat * verification code * sign up fixes * readability * fssfsfsfs * move forgot password to login/ * readability * don't emit comments * add page titles where needful * gsgsgs * modals: move to respective pages * testing on devrama * get home garbage out of title * remove insane amount of icon duplication * sign up text * add votes pagetitle * fix blank lines * Revert "fix blank lines" This reverts commit b2c54339970725d00b6fc82bb458c1757909952c. * Fix blank lines on sign_up.html. * title: votes.html more meaningful identifier. * titles: Lottery, Directory, Notifications * head final in submission.html * fix missing comma * > * test * title: /comments * fsfsfsfsf * titles: user_cards * head: only load video and audio meta attributes if they actually exist * titlessssss: /admin/lottery/participants * titlessssssss: extra quote in search.html * titlessssss: userpage voters. * titties: /h/<sub>/{followers,blockers,exilees[sic]} * test banner * Revert "test banner" This reverts commit c3d875d03f3e60d72a60dab7d28bf108554a5826. * make submit.html inherit from default.html Co-authored-by: TLSM <duolsm@outlook.com>
2022-11-21 08:52:22 +00:00
{% block body %}
2024-04-08 06:33:47 +00:00
{% set central_orgy = get_running_orgy(v, 1) %}
2023-10-29 12:51:00 +00:00
{% block pulltorefresh %}
<div id="pulltorefresh">
<img id="pulltorefresh-img" src="{{SITE_FULL_IMAGES}}/e/marseyunamused.webp">
</div>
{% endblock %}
{% block banner %}
2023-12-04 15:31:03 +00:00
{% if err or '@' not in request.path %}
2023-11-04 21:50:23 +00:00
{% if IS_FISTMAS() and not (hole and hole.bannerurls) %}
2023-10-29 12:51:00 +00:00
{% include 'events/fistmas/banner.html' %}
2023-11-04 21:50:23 +00:00
{% elif IS_HOMOWEEN() and not (hole and hole.bannerurls) %}
2023-10-29 12:51:00 +00:00
{% include 'events/homoween/banner.html' %}
{% else %}
{% set path = "files/assets/images/" ~ SITE_NAME %}
2022-12-13 21:56:12 +00:00
2023-12-04 15:31:03 +00:00
{% if err and SITE_NAME == 'rDrama' %}
{% set src = "banner_error.webp" | asset_siteimg %}
{% elif hole and hole.bannerurls %}
2023-11-04 21:50:23 +00:00
{% set src = hole.random_banner %}
2023-10-29 12:51:00 +00:00
{% set alt = ['/h/', hole, ' banner']|join %}
{% set class = 'site-banner-hole' %}
2024-04-08 06:33:47 +00:00
{% elif central_orgy and os_path.exists(path ~ "/orgy_banners") %}
2023-10-29 12:51:00 +00:00
{% set src = macros.random_image("assets/images/" ~ SITE_NAME ~ "/orgy_banners") %}
2024-04-06 04:31:51 +00:00
{% set href = "/chat/1" %}
2022-12-13 21:56:12 +00:00
{% set expand = false %}
2024-04-17 15:53:49 +00:00
{% elif IS_DKD() %}
2023-10-29 12:51:00 +00:00
{% set src = macros.random_image("assets/events/" ~ IS_EVENT() ~ "/images/banners") %}
2024-04-17 15:53:49 +00:00
{% elif IS_BDAY() %}
{% set src = macros.random_image("assets/events/" ~ IS_EVENT() ~ "/images/banners/" ~ SITE_NAME) %}
2024-04-10 11:07:20 +00:00
{% elif IS_FOURTH() %}
{% set src = SITE_FULL_IMAGES ~ '/i/rDrama/4th-of-july-banner.webp' %}
2023-10-29 12:51:00 +00:00
{% elif SITE_NAME == "rDrama" %}
{% set href = "https://secure.actblue.com/donate/kamalaharris2024" %}
2022-12-13 21:56:12 +00:00
{% set expand = false %}
{% endif %}
2023-03-23 12:38:30 +00:00
2023-10-29 12:51:00 +00:00
{% if SITE_NAME == "WPD" %}
{% if hole %}
{% set href = "/h/" ~ hole %}
{% set expand = false %}
{% else %}
{% set href = "/" %}
{% set expand = false %}
{% endif %}
2023-03-23 12:38:30 +00:00
{% endif %}
2023-05-05 21:45:25 +00:00
<a id="banner-link" href="{{href|default(src)}}" rel="noopener">
2023-10-29 12:51:00 +00:00
{% if src %}
{% set banner_url = src %}
{% else %}
{%- if not v and os_path.exists(path ~ "/cached.webp") -%}
{% set banner_url = 'cached.webp' | asset_siteimg %}
{%- elif SITE_NAME == 'rDrama' and v and v.chud %}
2024-04-10 10:46:46 +00:00
{% set banner_url = '/banners/1802.webp' | asset_siteimg %}
2023-10-29 12:51:00 +00:00
{%- else -%}
2024-04-10 10:57:53 +00:00
{% set banner_url = macros.random_image("assets/images/" ~ SITE_NAME ~ "/banners") %}
2023-10-29 12:51:00 +00:00
{%- endif -%}
{% endif %}
{% macro img_element() %}
<img data-nonce="{{g.nonce}}" data-onclick="{{expand|default('expandImage()')}}" class="{{class|default('site-banner')}}" alt="{{alt|default('site banner')}}" src="{{banner_url}}">
{% endmacro %}
2023-05-05 22:08:12 +00:00
2023-11-04 21:50:23 +00:00
{% if hole and hole.bannerurls %}
2023-10-29 12:51:00 +00:00
{{img_element()}}
{% else %}
<div class="banner-wrapper">
<div style="padding: 0 0 12.2%">
<div>
{{img_element()}}
</div>
2023-05-05 22:08:12 +00:00
</div>
2023-05-02 16:44:39 +00:00
</div>
2023-10-29 12:51:00 +00:00
{% endif %}
</a>
{% endif %}
2022-05-04 23:09:46 +00:00
{% endif %}
2023-10-29 12:51:00 +00:00
{% endblock %}
2022-05-04 23:09:46 +00:00
2023-10-29 12:51:00 +00:00
{% include "header.html" %}
2023-09-28 23:58:09 +00:00
2023-10-29 12:51:00 +00:00
{% block mobileUserBanner %}{% endblock %}
2023-09-28 23:58:09 +00:00
2023-10-29 12:51:00 +00:00
{% if IS_HOMOWEEN() %}
{% block hauntBg %}{% endblock %}
{% endif %}
2023-09-28 23:58:09 +00:00
2023-10-29 12:51:00 +00:00
<div class="container">
<div class="row justify-content-around" id="main-content-row">
<div class="order-first col h-100 {% block customPadding %}{% if request.path.startswith('/@') %}user-gutters{% else %}custom-gutters{% endif %}{% endblock %}" id="main-content-col">
{% block desktopUserBanner %}{% endblock %}
{% block desktopBanner %}{% endblock %}
{% block PseudoSubmitForm %}{% endblock %}
{% block searchText %}{% endblock %}
{% block content %}{% endblock %}
{% block pagenav %}{% endblock %}
</div>
{% block sidebar %}
{% if has_sidebar and (home or p) %}
{% set sidebar = "sidebar_" ~ SITE_NAME ~ ".html" %}
<div id="desktop-sidebar">
{% include sidebar %}
</div>
{% endif %}
{% endblock %}
2022-05-04 23:09:46 +00:00
</div>
</div>
2023-10-29 12:51:00 +00:00
{% block mobilenavbar %}{% include "mobile_navigation_bar.html" %}{% endblock %}
{% block actionsModal %}{% endblock %}
{% block reportCommentModal %}{% endblock %}
{% block GIFtoast %}{% endblock %}
{% block GIFpicker %}{% endblock %}
<div class="toast clipboard" id="toast-success" data-bs-animation="true" data-bs-autohide="true" data-bs-delay="5000">
<div class="toast-body text-center">
<i class="fas fa-check-circle text-success mr-2"></i>Link copied to clipboard
</div>
2022-05-04 23:09:46 +00:00
</div>
<script defer src="{{'js/vendor/lozad.js' | asset}}"></script>
2023-10-29 12:51:00 +00:00
<script defer src="{{'js/vendor/lite-youtube.js' | asset}}"></script>
2023-10-29 12:51:00 +00:00
{% if (v and v.spider) or (p and p.award_count("shit", v)) or (p and p.award_count("fireflies", v)) %}
<script defer src="{{'js/vendor/critters.js' | asset}}"></script>
2023-10-29 12:51:00 +00:00
{% if v and v.spider %}
<script defer src="{{'js/spider.js' | asset}}"></script>
{% endif %}
2023-10-29 12:51:00 +00:00
{% if p and p.award_count("shit", v) %}
<input hidden id="shit_num" value="{{p.award_count('shit', v)}}">
<script defer src="{{'js/bugs.js' | asset}}"></script>
{% endif %}
2023-10-29 12:51:00 +00:00
{% if p and p.award_count("fireflies", v) %}
<input hidden id="fireflies_num" value="{{p.award_count('fireflies', v)}}">
<script defer src="{{'js/fireflies.js' | asset}}"></script>
{% endif %}
{% endif %}
2024-10-16 04:56:41 +00:00
{% if IS_MUSICAL_EVENT() and not IS_LOCALHOST and not (SITE_NAME == 'WPD' and not v) and (not v or v.event_music) and not (hole and hole.name == 'music') and not (u and u.song) and not (IS_HOMOWEEN() and p and p.award_count("haunt", v)) and not (p and p.embed and p.domain == 'x.com') and err != 406 %}
2023-12-01 19:42:42 +00:00
{% set path = "assets/events/" ~ IS_EVENT() ~ "/music" %}
2024-02-23 19:49:26 +00:00
{% set song = SITE_FULL ~ "/" ~ path ~ "/" ~ listdir('files/'~path)|seeded_random(id) ~ '?x=45' %}
2023-12-01 19:42:42 +00:00
<audio id="event-song" hidden preload="none" src="{{song}}" loop></audio>
<script defer src="{{'events/shared/js/music.js' | asset}}"></script>
2023-10-29 12:51:00 +00:00
{% endif %}
[DO NOT MERGE] titlesssssssssss (#468) * titles * testing * self * Revert "self" This reverts commit d6c12d5a5ba125feb44673f55e1fdac75f151cb5. * Revert "testing" This reverts commit 86d800f9fd552196b31f0e0b3891d4fc072a9bc0. * testing on devrama * rewrite the html head * reference error or smth idk * tempalte debug * template debug redux * default2 * rename default2 -> root, page title * fix settings2 * include the set_variables block * root scope variables 2 * test 3 * remove unnecessary set * add pagetitles to all settings2 pages * add pagetitle to casino * remove bloat * remove duplicate site name thingy * page titles 2 * page titles 3 * remove duplicate imports and add page titles everywhere iirc * ok but actually this time * remove unnecessary newlines * fix title lol * > * fsdfsfsfsfsfs * fsfs * template configurations * fix 500 * reduce login template bloat * move files and add status codes where needful * move authfroms to login * remove 2fa bloat * verification code * sign up fixes * readability * fssfsfsfs * move forgot password to login/ * readability * don't emit comments * add page titles where needful * gsgsgs * modals: move to respective pages * testing on devrama * get home garbage out of title * remove insane amount of icon duplication * sign up text * add votes pagetitle * fix blank lines * Revert "fix blank lines" This reverts commit b2c54339970725d00b6fc82bb458c1757909952c. * Fix blank lines on sign_up.html. * title: votes.html more meaningful identifier. * titles: Lottery, Directory, Notifications * head final in submission.html * fix missing comma * > * test * title: /comments * fsfsfsfsf * titles: user_cards * head: only load video and audio meta attributes if they actually exist * titlessssss: /admin/lottery/participants * titlessssssss: extra quote in search.html * titlessssss: userpage voters. * titties: /h/<sub>/{followers,blockers,exilees[sic]} * test banner * Revert "test banner" This reverts commit c3d875d03f3e60d72a60dab7d28bf108554a5826. * make submit.html inherit from default.html Co-authored-by: TLSM <duolsm@outlook.com>
2022-11-21 08:52:22 +00:00
{% endblock %}