MarseyWorld/files/templates/header.html

439 lines
22 KiB
HTML
Raw Normal View History

2022-06-22 06:35:50 +00:00
{%- set search_placeholder = "Search" -%}
2023-10-07 17:55:50 +00:00
{%- if hole -%}
{%- set search_placeholder = "Search (try 'hole:" ~ hole.name ~ "')" -%}
2022-06-22 06:35:50 +00:00
{%- endif -%}
2022-05-04 23:09:46 +00:00
2022-07-28 18:29:47 +00:00
<nav class="shadow-md fixed-top">
<div class="srd">
{{calc_users()}}
{% if SITE_NAME == 'rDrama' %}
2023-07-14 09:23:33 +00:00
{% if not hasattr(g, "loggedin_counter") or not g.loggedin_counter or (range(1,5) | random == 1 and not (v and v.truescore > 1000)) %}
{% include "journoid_banner.html" %}
{% else %}
2023-04-25 14:34:09 +00:00
{% if IS_DKD() %}
{%- set VISITORS_HERE_FLAVOR = [
2023-06-29 20:18:24 +00:00
"big dumb apes hoarding bananas",
"repeatedly dying on Mine Cart Carnage",
"lost in the Lost World",
"getting whacked by Cranky's cane",
"gooning to Candy Kong rule 34",
"idling in Bramble Blast 💃",
"buying Kremcoins with Marseybux",
"explaining why Enguarde is an antisemitic trope",
2023-04-25 14:34:09 +00:00
] -%}
{% elif IS_FISTMAS() %}
2023-01-01 05:33:09 +00:00
{%- set VISITORS_HERE_FLAVOR = [
2023-09-28 23:58:09 +00:00
"Santa enjoyers kissing under a misletoe",
"bringing up family drama at Christmas dinner",
"stroking their candy canes",
2023-06-29 20:18:24 +00:00
"dramanauts jingling each other's balls",
"Santa deniers getting reamed by Rudolph",
"naughty listers getting coal for fistmas",
"plus-sized dramanauts eating Santa's cookies",
"having their chimneys stuffed by Santa",
2023-01-01 05:33:09 +00:00
] -%}
2023-09-28 23:58:09 +00:00
{% elif IS_HOMOWEEN() %}
{%- set VISITORS_HERE_FLAVOR = [
"jack-off-lanterns currently jacking each other off",
"cute twinks currently trick or treating",
"scary skeletons currently spooking",
"headless horsemen currently horsing around",
] -%}
{% else %}
2023-07-22 23:51:33 +00:00
{%- set CUMJAR = '<img loading="lazy" src="' ~ SITE_FULL_IMAGES ~ '/e/marseycumjar3.webp" style="height:1.5em!important">' %}
2023-07-01 23:50:41 +00:00
{%- set VISITORS_HERE_FLAVOR = [
"incels currently stalking roasties",
2023-09-28 23:58:09 +00:00
"gooners currently edging to " ~ CUMJAR,
2023-07-01 23:50:41 +00:00
"fanboys currently obsessing over Carp",
"NEETs currently LDARmaxxing",
"valid women currently dilating",
"negholes currently being pozzed",
"bussies currently on standby",
"gamers currently harassing women",
"Soros shills currently plotting mayocide",
"furries currently yiffing",
"incels currently harassing women",
"chuds currently agendaposting",
"coomers currently gooning",
"bacons currently narwhaling",
"well-behaved rule-following goodthinkers",
"throwing shade right now",
"currently petting Marseys",
"of Dr. Oaken's agents monitoring hate",
"capybara fetishists loudly beating off",
"gamers harassing women",
"hanging out on rDrama with their tulpas",
"furries trading marsuits",
"white knights simping for blownout gussy",
"Carp alts currently online",
"biofoids making everything about them",
"Mossad operatives watching you",
"frantically alt-tabbing before Mom sees",
"days until you die, you can't prevent it",
"cases of rectal prolapse reported today",
] -%}
{% endif %}
2023-06-29 15:56:16 +00:00
{{g.loggedin_counter+g.loggedout_counter}} {{VISITORS_HERE_FLAVOR|random|safe}} ({{g.loggedin_counter}} logged in)
{% endif %}
2023-07-14 09:23:33 +00:00
{% elif hasattr(g, "loggedin_counter") and g.loggedin_counter %}
2023-06-29 15:56:16 +00:00
{{g.loggedin_counter+g.loggedout_counter}} people here now ({{g.loggedin_counter}} logged in)
2023-07-14 09:20:33 +00:00
{% else %}
Don't make the mistakes seen here.
2022-07-17 22:56:34 +00:00
{% endif %}
</div>
2023-07-01 23:20:04 +00:00
<div class="navbar navbar-expand-md navbar-light" id="navbar">
2023-09-15 11:01:04 +00:00
<div class="container-fluid" style="padding:0">
2023-10-07 17:55:50 +00:00
<a href="/" class="navbar-brand mr-auto {% if not has_logo and not hole %}flex-grow-1{% endif %}">
2023-04-25 14:34:09 +00:00
{% if IS_DKD() %}
2023-04-25 15:47:46 +00:00
{% set icon_url = macros.random_image('assets/events/DKD/images/icon') %}
2023-04-25 14:34:09 +00:00
{% elif IS_FISTMAS() %}
2023-04-25 15:47:46 +00:00
{% set icon_url = macros.random_image('assets/events/fistmas/images/icon/' ~ SITE_NAME) %}
2023-09-28 23:58:09 +00:00
{% elif IS_HOMOWEEN() %}
{%- set icons = [
'marseyscalped',
'marseybaphomet',
'marseydemonicgrin',
'marseyjason',
'marseyolantern',
'marseyskeleton',
'marseyzombie',
'marseydracula',
'marseywitch3',
'marseyhannibal'
] -%}
{% set icon_url = "/e/" ~icons|random~ ".webp" %}
{% else %}
{% set icon_url = 'headericon.webp' | asset_siteimg %}
{% if SITE_NAME == 'rDrama' %}
2023-06-29 20:14:24 +00:00
{% set width="40" %}
{% elif SITE_NAME == 'WPD' %}
{% set width="45" %}
{% endif %}
{% endif %}
<img loading="lazy" id="header--icon" alt="header icon"
2023-10-07 17:55:50 +00:00
{%- if hole and hole.marseyurl -%}
src="{{hole.marseyurl}}"
{%- else -%}
src="{{icon_url}}"
{%- if width -%}
width="{{width}}"
{%- endif -%}
{%- endif -%}
>
2022-05-04 23:09:46 +00:00
</a>
2023-01-01 11:36:20 +00:00
2023-10-07 17:55:50 +00:00
{% if hole %}
<a id="hole-name" href="/h/{{hole}}" class="font-weight-bold flex-grow-1 ml-2 mt-1" {% if hole.name|length >= 17 %}style="font-size:max(10px,1.2vw)"{% endif %}>/h/{{hole}}</a>
{% elif has_logo %}
2022-06-13 18:33:25 +00:00
<div id="logo-container" class="flex-grow-1 logo-container">
<a href="/">
2023-09-29 02:56:02 +00:00
{% if IS_EVENT() %}
2023-09-29 02:59:44 +00:00
{% set logo_url = SITE_FULL_IMAGES ~ '/assets/events/' ~ IS_EVENT() ~ '/images/logo/' ~ SITE_NAME ~ '.webp' %}
{% else %}
2023-04-25 14:34:09 +00:00
{% set logo_url = 'logo.webp' | asset_siteimg %}
{% endif %}
2023-04-25 14:34:09 +00:00
<img loading="lazy" class="ml-1" id="logo-{{SITE_NAME}}" alt="logo" src="{{logo_url}}" width="70">
</a>
2022-06-13 18:33:25 +00:00
</div>
2022-05-04 23:09:46 +00:00
{% endif %}
2023-01-01 11:36:20 +00:00
{% if not request.path.startswith('/search/') %}
<div class="flex-grow-1 d-fl {% if not v %}pad{% endif %}">
<form class="form-inline search d-mob-none flex-nowrap mx-0 mx-lg-auto mb-0" {% if err %}style="margin-right:40rem!important"{% endif %} action="{% if request.path.startswith('/search') %}{{request.path}}{% else %}/search/posts/{% endif %}" method="get">
2022-12-25 02:10:56 +00:00
<input autocomplete="off" class="form-control w-100" type="search" placeholder="{{search_placeholder}}" name="q" value="{{request.values.get('q', '')}}">
<span class="input-group-append">
2023-09-15 11:01:04 +00:00
<span class="input-group-text border-0 bg-transparent" style="margin-left: -2.5rem">
2022-12-25 02:10:56 +00:00
<i class="fa fa-search"></i>
</span>
2022-05-04 23:09:46 +00:00
</span>
2023-06-30 15:24:07 +00:00
<input hidden type="submit">
</form>
</div>
2023-03-10 21:03:16 +00:00
{% endif %}
{% if not (v and v.patron) and not (v and v.admin_level) %}
{% if v %}
2023-10-02 06:04:05 +00:00
<a href="/donate" type="button" class="mobile-nav-icon d-md-none donate-link" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Donate">
2023-07-30 23:50:05 +00:00
<i class="fas fa-dollar-sign align-middle text-gray-500 black"></i>
</a>
{% else %}
2023-10-02 06:04:05 +00:00
<a href="/donate" type="button" class="btn btn-primary mobile-nav-icon d-md-none donate-link mr-3" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Donate">Donate</a>
{% endif %}
2023-03-11 21:32:29 +00:00
{% endif %}
2023-02-19 21:26:08 +00:00
{% if g.browser == 'webview' %}
2023-10-02 06:04:05 +00:00
<a href="" type="button" class="mobile-nav-icon d-md-none" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Refresh">
2023-07-30 23:50:05 +00:00
<i class="fas fa-arrow-rotate-right align-middle text-gray-500 black"></i>
</a>
{% endif %}
2022-05-04 23:09:46 +00:00
{% if v %}
{% if v.notifications_count %}
2023-07-30 23:50:05 +00:00
<a class="mobile-nav-icon d-md-none" href="/notifications{% if v.notifications_do %}/{{v.notifications_do}}{% endif %}" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Notifications">
<i class="notif-{{v.notifications_do}}-bell fas fa-bell align-middle" style="color: {{v.notifications_color}}"></i>
<span class="notif-count notif-{{v.notifications_do}} ml-1" style="padding-left: 4.5px;{% if v.notifications_do %}background:{{v.notifications_color}}{% endif %}">
{{v.notifications_count}}
</span>
</a>
2022-05-04 23:09:46 +00:00
{% else %}
2023-07-30 23:50:05 +00:00
<a class="mobile-nav-icon d-md-none" href="/notifications" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Notifications">
<i class="fas fa-bell align-middle text-gray-500 black"></i>
</a>
2022-05-04 23:09:46 +00:00
{% endif %}
{% endif %}
2023-01-01 11:36:20 +00:00
{% if not err %}
{% if v and v.admin_level >= PERMS['ADMIN_HOME_VISIBLE'] %}
2023-07-30 23:50:05 +00:00
<a class="mobile-nav-icon d-md-none" href="/admin" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Admin Tools">
<i class="fas fa-crown align-middle text-gray-500 black"></i>
</a>
{% endif %}
2022-08-24 21:58:39 +00:00
{% if v %}
2023-07-30 23:50:05 +00:00
<a class="mobile-nav-icon d-md-none" href="/submit" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Create Post">
<i class="fas fa-feather-alt align-middle text-gray-500 black"></i>
</a>
2022-08-24 21:58:39 +00:00
{% else %}
2023-07-30 23:50:05 +00:00
<a class="mobile-nav-icon d-md-none" href="/login?redirect={{request.full_path | urlencode}}" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Create Post">
<i class="fas fa-feather-alt align-middle text-gray-500 black"></i>
</a>
2022-08-24 21:58:39 +00:00
{% endif %}
2023-07-30 23:50:05 +00:00
<a class="mobile-nav-icon d-md-none" href="/random_user" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Random User with a Profile Anthem">
2023-07-30 23:05:49 +00:00
<i class="fas fa-music align-middle text-gray-500 black"></i>
</a>
2022-10-11 13:19:55 +00:00
{% if v and FEATURES['GAMBLING'] %}
<a class="mobile-nav-icon d-md-none" href="/leaderboard" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Leaderboard">
<i class="fas fa-trophy align-middle text-gray-500 black"></i>
2022-07-03 18:33:31 +00:00
</a>
{% endif %}
2023-10-01 13:09:42 +00:00
<button type="button" class="navbar-toggler" data-bs-toggle="collapse" data-bs-target="#navbarResponsive">
2023-10-02 06:04:05 +00:00
<span class="navbar-toggler-icon {% if v and v.notifications_count %}position-relative{% endif %}"><i class="fas fa-bars align-middle text-gray-500 black"></i>
</span>
</button>
2022-05-04 23:09:46 +00:00
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto d-none d-md-flex mr-3">
2022-05-04 23:09:46 +00:00
2023-03-10 21:17:35 +00:00
{% if not (v and v.patron) %}
<li id="header--donate--item" class="nav-item d-flex align-items-center justify-content-center mx-1 mr-2">
<a class="btn btn-primary" href="/donate">Donate</a>
</li>
2023-03-10 21:17:35 +00:00
{% endif %}
2022-05-04 23:09:46 +00:00
2023-03-10 21:17:35 +00:00
{% if v %}
2022-05-04 23:09:46 +00:00
{% if v.notifications_count %}
2023-10-29 00:07:53 +00:00
<li class="nav-item d-flex align-items-center text-center justify-content-center mx-1" id="header--notifications--item">
<a class="nav-link position-relative" href="/notifications{% if v.notifications_do %}/{{v.notifications_do}}{% endif %}" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Notifications"><i class="notif-{{v.notifications_do}}-bell fas fa-bell" style="color: {{v.notifications_color}}"></i><span class="notif-{{v.notifications_do}} notif-count ml-1" style="padding-left: 4.5px;{% if v.notifications_do %}background:{{v.notifications_color}}{% endif %}">{{v.notifications_count}}</span></a>
</li>
2022-05-04 23:09:46 +00:00
{% else %}
2023-10-29 00:07:53 +00:00
<li class="nav-item d-flex align-items-center text-center justify-content-center mx-1" id="header--notifications--item">
<a class="nav-link" href="/notifications" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Notifications"><i class="fas fa-bell"></i></a>
</li>
{% endif %}
2022-05-04 23:09:46 +00:00
{% if v.admin_level >= PERMS['ADMIN_HOME_VISIBLE'] %}
2023-10-29 00:07:53 +00:00
<li class="nav-item d-flex align-items-center justify-content-center text-center mx-1" id="header--admintools--item">
<a class="nav-link" href="/admin" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Admin Tools"><i class="fas fa-crown"></i></a>
</li>
2022-05-04 23:09:46 +00:00
{% endif %}
<li class="nav-item d-flex align-items-center justify-content-center text-center mx-1" id="header--createpost--item">
<a class="nav-link" href="/submit" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Create Post"><i class="fas fa-feather-alt"></i></a>
2022-08-24 21:58:39 +00:00
</li>
2023-09-17 20:58:08 +00:00
{%- if FEATURES['CHAT'] -%}
2023-09-24 22:12:42 +00:00
<li class="nav-item d-none d-lg-flex align-items-center justify-content-center text-center mx-1" id="header--chat--item">
2023-10-13 15:56:12 +00:00
<a class="nav-link position-relative" href="/chat" style="margin-top: {% if get_running_orgy(v) %}-4px{% else %}-1.6px{% endif %} !important">
{% if get_running_orgy(v) %}
2023-09-25 03:43:48 +00:00
<img src="{{SITE_FULL_IMAGES}}/i/orgy.webp" width="30">
{% else %}
<i class="fas fa-messages" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Chat"></i>
{% endif %}
2023-10-13 15:56:12 +00:00
<b id="chat-count-header-bar" class="text-lg {% if get_running_orgy(v) or g.loggedin_chat > 40 %}text-danger{% elif g.loggedin_chat > 20 %}text-yellow{% endif %}" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Users in chat right now">
2023-09-24 22:12:42 +00:00
{{g.loggedin_chat}}
</b>
</a>
</li>
2023-09-17 20:58:08 +00:00
{%- endif -%}
2022-05-04 23:09:46 +00:00
<li class="nav-item d-flex align-items-center justify-content-center text-center mx-1" id="header--randomuser--item">
2023-06-30 17:36:26 +00:00
<a class="nav-link" href="/random_user" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Random User with a Profile Anthem"><i class="fas fa-music"></i></a>
2022-09-13 19:44:06 +00:00
</li>
2023-01-01 11:36:20 +00:00
<li class="nav-item d-none d-lg-flex align-items-center justify-content-center text-center mx-1" id="header--allcomments--item">
2022-09-13 19:44:06 +00:00
<a class="nav-link" href="/comments" data-bs-toggle="tooltip" data-bs-placement="bottom" title="All Comments"><i class="fas fa-comment-dots"></i></a>
2022-05-04 23:09:46 +00:00
</li>
<li class="nav-item d-none d-lg-flex align-items-center justify-content-center text-center mx-1" id="header--leaderboard--item">
2022-09-13 19:44:06 +00:00
<a class="nav-link" href="/leaderboard" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Leaderboard"><i class="fas fa-trophy"></i></a>
</li>
2022-10-11 13:19:55 +00:00
{% if FEATURES['GAMBLING'] %}
<li class="nav-item d-flex align-items-center justify-content-center text-center mx-1" id="header--casino--item">
<a class="nav-link" href="/casino" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Casino"><i class="fas fa-cards"></i></a>
2022-07-12 00:40:30 +00:00
</li>
2022-07-03 18:33:31 +00:00
{% endif %}
2022-07-19 23:59:39 +00:00
{% if FEATURES['AWARDS'] -%}
<li class="nav-item d-none d-lg-flex align-items-center justify-content-center text-center mx-1" id="header--shop--item">
<a class="nav-link" href="/shop/awards" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Shop"><i class="fas fa-store"></i></a>
2022-09-13 19:44:06 +00:00
</li>
2022-07-19 23:59:39 +00:00
{%- endif %}
2022-09-02 17:54:01 +00:00
<li id="sidebar-btn" class="nav-item d-flex align-items-center justify-content-center text-center mx-1">
<a class="nav-link" href="/sidebar" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Sidebar"><i class="fas fa-bars"></i></a>
</li>
2022-05-04 23:09:46 +00:00
<li class="nav-item d-flex align-items-center justify-content-center text-center">
<div class="dropdown" id="header--dropdown">
2023-01-20 07:10:54 +00:00
<a href="{{v.url}}" class="nav-link bg-transparent py-0 pr-0" id="dropdownMenuLink" data-bs-toggle="dropdown">
2022-05-04 23:09:46 +00:00
<div class="d-flex">
<div class="profile-pic-35-wrapper">
2022-10-29 21:42:30 +00:00
<img loading="lazy" src="{{v.profile_url}}" class="profile-pic-35">
2022-12-24 22:21:49 +00:00
{% if v.hat_active(v)[0] -%}
2023-06-29 20:14:30 +00:00
<img id="profile-pic-35-hat" class="profile-pic-35-hat hat" loading="lazy" src="{{v.hat_active(v)[0]}}?x=6">
{% elif request.path == '/shop/hats' %}
<img id="profile-pic-35-hat" class="profile-pic-35-hat hat d-none" loading="lazy">
{%- endif %}
2022-06-13 17:46:40 +00:00
</div>
<div class="text-left pl-2" id="header--username--outerdiv">
2023-10-05 19:40:44 +00:00
<div style="color: #{{v.name_color}}" class="text-small font-weight-bold"><span id="header--username" {% if v.patron %}class="patron" style="background-color:#{{v.name_color}}"{% endif %} {% if v.pride_username(v) %}pride_username{% endif %}>{{v.user_name}}</span></div>
2023-01-27 17:55:25 +00:00
<div class="header--currency"><img loading="lazy" alt="coins" class="mr-1 ml-1" data-bs-toggle="tooltip" data-bs-placement="bottom" src="{{'coins.webp' | asset_siteimg}}" title="Coins"><span id="user-coins-amount">{{v.coins}}</span>{% if not FEATURES['MARSEYBUX'] %} Coin{{macros.plural(v.coins)}}{% endif %}</div>
{% if FEATURES['MARSEYBUX'] %}
2023-06-29 20:14:30 +00:00
<div class="header--currency"><img loading="lazy" alt="marseybux" class="mr-1 ml-1" data-bs-toggle="tooltip" data-bs-placement="bottom" src="{{SITE_FULL_IMAGES}}/i/marseybux.webp?x=6" title="Marseybux"><span id="user-bux-amount">{{v.marseybux}}</span></div>
2022-05-09 12:13:38 +00:00
{% endif %}
2022-05-04 23:09:46 +00:00
</div>
</div>
</a>
<div class="dropdown-menu dropdown-menu-right dropdown-menu-lg-left shadow fade px-0" id="header--dropdown-menu">
2022-09-13 10:31:26 +00:00
<div class="px-2">
<a class="dropdown-item" href="{{v.url}}"><i class="fas fa-user-circle fa-fw mr-3"></i>My profile</a>
<a class="dropdown-item" href="/settings/personal"><i class="fas fa-cog fa-fw mr-3"></i>Settings</a>
<input hidden id="VAPID_PUBLIC_KEY" value="{{VAPID_PUBLIC_KEY}}">
<button id="enable-push-nav-item" type="button" class="dropdown-item" data-nonce="{{g.nonce}}" data-onclick="enablePushNotifications()"><i class="fas fa-bell fa-fw mr-3"></i>Enable push notifications</button>
{% if g.browser != 'webview' %}
<a class="dropdown-item" href="/app"><i class="fas fa-mobile fa-fw mr-3"></i>Mobile app</a>
{% endif %}
<a class="dropdown-item donate-link" rel="nofollow noopener" href="/donate"><i class="fas fa-dollar-sign fa-fw mr-3"></i>Donate</a>
<a class="dropdown-item" href="/post/{{CHANGELOG_THREAD}}"><i class="fas fa-clipboard fa-fw mr-3"></i>Changelog</a>
2022-05-04 23:09:46 +00:00
<a class="dropdown-item" rel="nofollow noopener" href="https://fsdfsd.net/rDrama/rDrama"><i class="fab fa-git-alt fa-fw mr-3"></i>Source code</a>
2022-09-08 15:38:27 +00:00
2023-08-22 22:44:12 +00:00
<a class="dropdown-item" rel="nofollow noopener" href="/post/{{BUG_THREAD}}"><i class="fas fa-bug fa-fw mr-3"></i>Bugs/Suggestions</a>
2022-09-13 10:31:26 +00:00
2022-12-25 03:28:57 +00:00
{% if TELEGRAM_ID %}
<a rel="nofollow noopener" class="dropdown-item" href="https://t.me/s/{{TELEGRAM_ID}}"><i class="fab fa-telegram fa-fw mr-3"></i>Telegram Channel</a>
2022-10-18 17:25:28 +00:00
{% endif %}
2022-09-13 10:31:26 +00:00
{% if SITE_NAME == 'rDrama' %}
<a class="dropdown-item" href="/archives"><i class="fas fa-book fa-fw mr-3"></i>Archives</a>
2022-10-30 18:43:06 +00:00
{% endif %}
<a class="dropdown-item" href="/contact"><i class="fas fa-file-signature fa-fw mr-3"></i>Contact us</a>
<button type="button" class="dropdown-item" data-nonce="{{g.nonce}}" data-onclick="postToastReload(this, '/logout')"><i class="fas fa-sign-out fa-fw mr-3"></i>Log out</button>
2022-05-04 23:09:46 +00:00
</div>
</div>
</li>
{% else %}
<li class="nav-item d-flex align-items-center justify-content-center mx-1 mr-2">
<a class="btn btn-primary" href="/contact">Contact us</a>
</li>
<li class="nav-item d-flex align-items-center justify-content-center mx-1">
<a class="btn btn-primary" href="/login?redirect={{request.full_path | urlencode}}">Sign in</a>
</li>
<li class="nav-item d-flex align-items-center justify-content-center mx-1">
<a class="btn btn-primary" href="/signup?redirect={{request.full_path | urlencode}}">Sign up</a>
</li>
2022-05-04 23:09:46 +00:00
{% endif %}
</ul>
<ul style="overflow:auto" class="navbar-nav ml-auto d-flex d-md-none mt-3">
<li class="nav-item pb-3">
<form id="searchform" class="form-inline search flex-nowrap mx-1 mx-lg-auto mb-0" action="/search/posts" method="get">
2022-12-25 02:10:56 +00:00
<input autocomplete="off" class="form-control form-control-sm w-100" type="search" placeholder="{{search_placeholder}}" name="q">
2022-05-04 23:09:46 +00:00
<span class="input-group-append">
2023-01-01 09:42:23 +00:00
<span class="input-group-text border-0 bg-transparent" style="margin-left: -2.5rem" data-nonce="{{g.nonce}}" onclick_submit>
2022-12-25 02:10:56 +00:00
<i class="fa fa-search"></i>
2022-05-04 23:09:46 +00:00
</span>
</span>
</form>
</li>
{% if v %}
<li class="nav-item">
<a class="nav-link" href="{{v.url}}"><i class="fas fa-user-circle fa-fw mr-3"></i>@{{v.username}}</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/settings/personal"><i class="fas fa-cog fa-fw mr-3"></i>Settings</a>
2022-05-04 23:09:46 +00:00
</li>
2022-09-13 10:31:26 +00:00
2023-07-01 01:05:37 +00:00
{% if g.browser != 'webview' %}
<a class="nav-item nav-link" href="/app" id="mobile-app-nav-item"><i class="fas fa-mobile fa-fw mr-3"></i>Mobile app</a>
{% endif %}
2023-06-29 19:09:33 +00:00
{% if g.browser == 'iphone' %}
<a id="enable-push-nav-item-iphone" class="nav-item nav-link d-none" href="/app"><i class="fas fa-bell fa-fw mr-3"></i>Enable push notifications</a>
{% endif %}
2023-06-29 19:12:29 +00:00
<button id="enable-push-nav-item-mobile" type="button" class="nav-item nav-link" data-nonce="{{g.nonce}}" data-onclick="enablePushNotifications()"><i class="fas fa-bell fa-fw mr-3"></i>Enable push notifications</button>
<a class="nav-item nav-link donate-link" rel="nofollow noopener" href="/donate"><i class="fas fa-dollar-sign fa-fw mr-3"></i>Donate</a>
<a class="nav-item nav-link" href="/post/{{CHANGELOG_THREAD}}"><i class="fas fa-clipboard fa-fw mr-3"></i>Changelog</a>
2022-09-08 15:38:27 +00:00
<a class="nav-item nav-link" rel="nofollow noopener" href="https://fsdfsd.net/rDrama/rDrama"><i class="fab fa-git-alt fa-fw mr-3"></i>Source code</a>
2022-09-08 15:38:27 +00:00
2023-08-22 22:44:12 +00:00
<a class="nav-item nav-link" rel="nofollow noopener" href="/post/{{BUG_THREAD}}"><i class="fas fa-bug fa-fw mr-3"></i>Bugs/Suggestions</a>
2022-05-04 23:09:46 +00:00
2022-12-25 03:28:57 +00:00
{% if TELEGRAM_ID %}
<a rel="nofollow noopener" class="nav-item nav-link" href="https://t.me/s/{{TELEGRAM_ID}}"><i class="fab fa-telegram fa-fw mr-3"></i>Telegram Channel</a>
2022-10-18 17:25:28 +00:00
{% endif %}
2022-09-08 15:38:27 +00:00
2022-10-30 18:43:06 +00:00
{% if SITE_NAME == 'rDrama' %}
<a class="nav-item nav-link" href="/archives"><i class="fas fa-book fa-fw mr-3"></i>Archives</a>
{% endif %}
2023-01-01 11:36:20 +00:00
2022-05-04 23:09:46 +00:00
<a class="nav-item nav-link" href="/contact"><i class="fas fa-file-signature fa-fw mr-3"></i>Contact us</a>
<button type="button" class="nav-item border-top border-bottom mt-2 pt-2 nav-link" data-nonce="{{g.nonce}}" data-onclick="postToastReload(this, '/logout')"><i class="fas fa-sign-out fa-fw mr-3 text-danger"></i>Log out</button>
2022-05-04 23:09:46 +00:00
{% else %}
2022-10-30 18:43:06 +00:00
<li class="nav-item d-flex align-items-center justify-content-center pb-3">
2022-05-04 23:09:46 +00:00
<a class="btn btn-primary btn-block" href="/contact">Contact us</a>
</li>
<li class="nav-item d-flex align-items-center justify-content-center pb-3">
2022-11-19 21:33:59 +00:00
<a class="btn btn-primary btn-block" href="/login?redirect={{request.full_path | urlencode}}">Sign in</a>
2022-05-04 23:09:46 +00:00
</li>
<li class="nav-item d-flex align-items-center justify-content-center">
2022-11-19 21:33:59 +00:00
<a class="btn btn-primary btn-block" href="/signup?redirect={{request.full_path | urlencode}}">Sign up</a>
2022-05-04 23:09:46 +00:00
</li>
{% endif %}
2023-06-22 14:29:45 +00:00
<li class="mt-3">
2023-09-24 22:12:42 +00:00
{% if request.path == '/chat' %}
2023-01-24 10:13:05 +00:00
<h5 class="ml-3">Users Online</h5>
2023-06-22 14:29:45 +00:00
<div id="online3" class="col text-left d-lg-none bg-white mb-6 pb-6" style="max-width:300px"></div>
2023-06-30 15:37:18 +00:00
<br><br><br><br>
2023-01-21 10:36:21 +00:00
{% elif has_sidebar %}
{% include "sidebar_" ~ SITE_NAME ~ ".html" %}
2022-06-28 06:17:21 +00:00
{% endif %}
2022-05-04 23:09:46 +00:00
</li>
</ul>
</div>
{% endif %}
2022-05-04 23:09:46 +00:00
</div>
</div>
</nav>
{% if v and not err %}
[DO NOT MERGE] import detanglation (#442) * move Base definition to files.classes.__init__.py * fix ImportError * move userpage listing to users.py * don't import the app from classes * consts: set default values to avoid crashes consts: warn if the secret key is the default config value * card view: sneed (user db schema) * cloudflare: use DEFAULT_CONFIG_VALUE * const: set default values * decouple media.py from __main__ * pass database to avoid imports * import cleanup and import request not in const, but in the requests mega import * move asset_submissions site check to __init__ * asset submissions feature flag * flag * g.is_tor * don't import request where it's not needed * i think this is fine * mail: move to own routes and helper * wrappers * required wrappers move * unfuck wrappers a bit * move snappy quotes and marseys to stateful consts * marsify * :pepodrool: * fix missing import * import cache * ...and settings.py * and static.py * static needs cache * route * lmao all of the jinja shit was in feeds.py amazing * classes should only import what they need from flask * import Response * hdjbjdhbhjf * ... * dfdfdfdf * make get a non-required import * isort imports (mostly) * but actually * configs * reload config on import * fgfgfgfg * config * config * initialize snappy and test * cookie of doom debug * edfjnkf * xikscdfd * debug config * set session cookie domain, i think this fixes the can't login bug * sdfbgnhvfdsghbnjfbdvvfghnn * hrsfxgf * dump the entire config on a request * kyskyskyskyskyskyskyskyskys * duifhdskfjdfd * dfdfdfdfdfdfdfdfdfdfdfdf * dfdfdfdf * imoprt all of the consts beacuse fuck it * 😭 * dfdfdfdfdfdfsdasdf * print the entire session * rffdfdfjkfksj * fgbhffh * not the secret keys * minor bug fixes * be helpful in the warning * gfgfgfg * move warning lower * isort main imports (i hope this doesn't fuck something up) * test * session cookie domain redux * dfdfdfd * try only importing Flask * formkeys fix * y * :pepodrool: * route helper * remove before flight * dfdfdfdfdf * isort classes * isort helpers * move check_for_alts to routehelpers and also sort imports and get rid of unused ones * that previous commit but actkally * readd the cache in a dozen places they were implicitly imported * use g.is_tor instead of request.headers. bla bla bla * upgrade streamers to their own route file * get rid of unused imports in __main__ * fgfgf * don't pull in the entire ORM where we don't need it * features * explicit imports for the get helper * explicit imports for the get helper redux * testing allroutes * remove unused import * decouple flask from classes * syntax fix also remember these have side fx for some reason (why?) * move side effects out of the class * posts * testing on devrama * settings * reloading * settingssdsdsds * streamer features * site settings * testing settings on devrama * import * fix modlog * remove debug stuff * revert commit 67275b21ab6e2f2520819e84d10bfc1c746a15b6 * archiveorg to _archiveorg * skhudkfkjfd * fix cron for PCM * fix bugs that snekky wants me to * Fix call to realbody passing db, standardize kwarg * test * import check_for_alts from the right place * cloudflare * testing on devrama * fix cron i think * shadow properly * tasks * Remove print which will surely be annoying in prod. * v and create new session * use files.classes * make errors import little and fix rare 500 in /allow_nsfw * Revert "use files.classes" This reverts commit 98c10b876cf86ce058b7fb955cf1ec0bfb9996c6. * pass v to media functions rather than using g * fix * dfdfdfdfd * cleanup, py type checking is dumb so don't use it where it causes issues * Fix some merge bugs, add DEFAULT_RATELIMIT to main. * Fix imports on sqlalchemy expressions. * `from random import random` is an error. * Fix replies db param. * errors: fix missing import * fix rare 500: only send to GIFT_NOTIF_ID if it exists, and send them the right text * Fix signup formkey. * fix 2 500s * propagate db to submissions * fix replies * dfdfdfdf * Fix verifiedcolor. * is_manual * can't use getters outside of an app context * don't attempt to do gumroad on sites where it's not enabled * don't attempt to do gumraod on sites's where it's unnecessary * Revert "don't attempt to do gumroad on sites where it's not enabled" This reverts commit 6f8a6331878655492dfaf1907b27f8be513c14d3. * fix 500 * validate media type Co-authored-by: TLSM <duolsm@outlook.com>
2022-11-15 09:19:08 +00:00
<div id="formkey" class="d-none">{{v|formkey}}</div>
2022-05-04 23:09:46 +00:00
{% endif %}
2023-03-19 16:28:19 +00:00
<link rel="preload" as="image" href="{{SITE_FULL_IMAGES}}/i/l.webp">