2022-05-04 23:09:46 +00:00
{% extends "default.html" %}
2023-10-29 12:51:00 +00:00
2022-08-05 23:16:44 +00:00
{% block title %}
2023-10-07 17:55:50 +00:00
{% if hole %}
< title > /h/{{hole.name}}< / title >
2022-11-21 08:52:22 +00:00
{% elif request.path == '/' %}
2023-06-29 20:14:24 +00:00
{% if IS_DKD() %}
2023-04-25 14:34:09 +00:00
< title > Kongrama< / title >
2024-08-03 14:58:11 +00:00
{% elif SITE_NAME == 'rDrama' %}
2024-10-03 21:36:18 +00:00
{% if IS_HOMOWEEN() %}
< title > Boo! 👻< / title >
{% else %}
< title > {{TAGLINES|random}}< / title >
{% endif %}
2024-05-03 02:09:47 +00:00
{% else %}
2024-07-09 20:03:54 +00:00
< title > {{SITE_NAME}}{% if TAGLINES %}: {{TAGLINES|random}}{% endif %}< / title >
2023-04-25 14:34:09 +00:00
{% endif %}
2022-08-05 23:16:44 +00:00
{% else %}
{{super()}}
{% endif %}
{% endblock %}
2023-10-29 12:51:00 +00:00
2024-07-31 23:26:45 +00:00
{% block pagetitle %}
{% if hole %}
{{'/h/' ~ hole.name}}
{% else %}
{{SITE_NAME}}
{% endif %}
{% endblock %}
2022-08-05 22:28:22 +00:00
2022-05-04 23:09:46 +00:00
{% block desktopBanner %}
2023-10-29 12:51:00 +00:00
{%- if hole -%}
{%- set search_placeholder = "Search (try 'hole:" ~ hole.name ~ "')" -%}
2024-10-19 09:38:14 +00:00
{%- else -%}
{%- set search_placeholder = "Search" -%}
2023-10-29 12:51:00 +00:00
{%- endif -%}
2024-10-03 21:36:47 +00:00
< div class = "row" style = "overflow:visible; padding-top:5px" >
2023-10-29 12:51:00 +00:00
< div class = "col" >
< form id = "searchform" class = "form-inline d-md-none search flex-nowrap mt-2" action = "/search/posts" method = "get" >
< input autocomplete = "off" class = "form-control form-control-sm w-100" type = "search" placeholder = "{{search_placeholder}}" name = "q" >
< span class = "input-group-append" >
2024-02-19 00:28:15 +00:00
< span class = "input-group-text border-0 bg-transparent" style = "margin-left: -2.5rem" >
2024-08-02 11:25:48 +00:00
< button type = "submit" class = "fas fa-search text-muted" > < / button >
2023-10-29 12:51:00 +00:00
< / span >
2023-02-06 05:10:42 +00:00
< / span >
2023-10-29 12:51:00 +00:00
< / form >
2024-10-06 11:37:24 +00:00
< a class = "btn btn-primary btn-block mt-3 {% if hole and hole.dead_utc %}disabled{% endif %}" href = "{% if hole %}/h/{{hole}}{% endif %}/submit" > < i class = "fas fa-feather-alt mr-2" > < / i > Create Post {% if hole %}in /h/{{hole}}{% endif %}< / a >
2023-10-29 12:51:00 +00:00
2024-10-06 11:37:24 +00:00
{% if hole and hole.dead_utc %}
< button type = "button" class = "btn btn-success btn-block mt-3" data-areyousure = "postToastSwitch(this,'/h/{{hole}}/resurrect')" data-nonce = "{{g.nonce}}" data-onclick = "areyousure(this)" > < img class = "mr-2" height = 40 loading = "lazy" src = "https://i.rdrama.net/e/marseynecromancer.webp" alt = "marseynecromancer" > Resurrect /h/{{hole}} ({{HOLE_COST | commas}} coins or marseybux)< / button >
{% endif %}
2023-10-29 12:51:00 +00:00
{% if hole %}
{% if v %}
{% if hole.stealth %}
< button type = "button" id = "unsubscribe-sub" class = "btn btn-primary btn-block {% if not v.subscribes(hole.name) %}d-none{% endif %}" data-nonce = "{{g.nonce}}" data-onclick = "postToastSwitch(this,'/h/{{hole.name}}/unsubscribe','subscribe-sub','unsubscribe-sub','d-none')" > < i class = "fas fa-eye-slash mr-2" > < / i > Block /h/{{hole.name}}< / button >
< button type = "button" id = "subscribe-sub" class = "btn btn-primary btn-block {% if v.subscribes(hole.name) %}d-none{% endif %}" data-nonce = "{{g.nonce}}" data-onclick = "postToastSwitch(this,'/h/{{hole.name}}/subscribe','subscribe-sub','unsubscribe-sub','d-none')" > < i class = "fas fa-eye mr-2" > < / i > Unblock /h/{{hole.name}}< / button >
{% else %}
2024-01-12 07:31:32 +00:00
< button type = "button" id = "block-hole" class = "btn btn-primary btn-block mt-3 {% if v.blocks(hole.name) %}d-none{% endif %}" data-nonce = "{{g.nonce}}" data-onclick = "postToastSwitch(this,'/h/{{hole.name}}/block','block-hole','unblock-hole','d-none')" > < i class = "fas fa-eye-slash mr-2" > < / i > Block /h/{{hole.name}}< / button >
< button type = "button" id = "unblock-hole" class = "btn btn-primary btn-block mt-3 {% if not v.blocks(hole.name) %}d-none{% endif %}" data-nonce = "{{g.nonce}}" data-onclick = "postToastSwitch(this,'/h/{{hole.name}}/unblock','block-hole','unblock-hole','d-none')" > < i class = "fas fa-eye mr-2" > < / i > Unblock /h/{{hole.name}}< / button >
2023-10-29 12:51:00 +00:00
{% endif %}
2024-01-12 07:31:55 +00:00
< button type = "button" id = "follow-hole" class = "btn btn-primary btn-follow {% if v.follows(hole.name) %}d-none{% endif %}" data-nonce = "{{g.nonce}}" data-onclick = "postToastSwitch(this,'/h/{{hole.name}}/follow','follow-hole','unfollow-hole','d-none')" > < i class = "fas fa-bell mr-2" > < / i > Follow /h/{{hole.name}}< / button >
< button type = "button" id = "unfollow-hole" class = "btn btn-primary btn-follow {% if not v.follows(hole.name) %}d-none{% endif %}" data-nonce = "{{g.nonce}}" data-onclick = "postToastSwitch(this,'/h/{{hole.name}}/unfollow','follow-hole','unfollow-hole','d-none')" > < i class = "fas fa-bell-slash mr-2" > < / i > Unfollow /h/{{hole.name}}< / button >
2022-05-04 23:09:46 +00:00
{% else %}
2023-10-29 12:51:00 +00:00
< a class = "btn btn-primary btn-block" href = "/login?redirect={{request.full_path | urlencode}}" > < i class = "fas fa-eye-slash mr-2" > < / i > Block /h/{{hole.name}}< / a >
< a class = "btn btn-primary btn-block" href = "/login?redirect={{request.full_path | urlencode}}" > < i class = "fas fa-bell mr-2" > < / i > Follow /h/{{hole.name}}< / a >
2022-05-04 23:09:46 +00:00
{% endif %}
2022-08-24 21:11:54 +00:00
{% endif %}
2022-05-04 23:09:46 +00:00
2023-10-29 12:51:00 +00:00
< div class = "d-flex justify-content-between align-items-center pt-3 pb-2 sorting fl-r" >
{% block navbar %}
< div class = "d-flex align-items-center" >
2024-08-02 12:56:38 +00:00
{% if CATEGORIES_ICONS %}
2024-08-02 12:55:04 +00:00
< div class = "dropdown dropdown-actions mr-2" >
< button type = "button" class = "btn btn-secondary dropdown-toggle" id = "dropdownMenuButton2" data-bs-toggle = "dropdown" >
< i class = "fas fa-filter mr-1" > < / i >
Category Filter
< / button >
2024-08-15 13:07:31 +00:00
< div id = "category-filter" class = "dropdown-menu" x-placement = "bottom-start" style = "position: absolute; will-change: transform; top: 0px; left: 0px" >
2024-08-02 12:55:04 +00:00
{% for category, icon in CATEGORIES_ICONS.items() %}
2024-09-03 17:30:04 +00:00
< div class = "custom-control custom-checkbox pl-45 dropdown-item" >
2024-08-10 18:15:36 +00:00
< input autocomplete = "off" type = "checkbox" class = "custom-control-input" id = "category-{{category}}" data-nonce = "{{g.nonce}}" data-onchange = "postToastReload(this, '/toggle_category/{{category}}')" { % if session . get ( category , True ) % } checked { % endif % } >
2024-09-03 17:33:30 +00:00
< label class = "custom-control-label d-flex" for = "category-{{category}}" > {{category}}< / label >
2024-08-10 18:15:36 +00:00
< / div >
2024-08-02 12:55:04 +00:00
{% endfor %}
< / div >
< / div >
{% else %}
{% set color = "primary" if pins else "secondary" %}
< form action = "/toggle_pins/{{hole}}/{{sort}}" method = "post" data-nonce = "{{g.nonce}}" data-onsubmit = "sendFormXHRReload(this)" >
< button type = "submit" class = "btn btn-{{color}} text-{{color}} mx-2" > < i type = "submit" class = "fas fas fa-thumbtack fa-rotate--45 mr-2" > < / i > Pins< / button >
< / form >
{% endif %}
2023-10-29 12:51:00 +00:00
2024-03-03 01:53:02 +00:00
{{- macros.time_filter_buttons() -}}
2024-04-20 18:13:34 +00:00
{{- macros.sorting_buttons(POST_SORTS, True, True) -}}
2023-10-29 12:51:00 +00:00
< / div >
{% endblock %}
< / div >
2024-03-03 20:02:38 +00:00
{% if SITE_NAME == 'WPD' and listing %}
2024-03-03 18:29:38 +00:00
< div class = "d-inline-block" >
2024-03-03 20:02:38 +00:00
{{macros.pagination("pagination-smaller pl-1 pt-3 pb-3")}}
2024-03-03 18:29:38 +00:00
< / div >
{% endif %}
2022-05-04 23:09:46 +00:00
< / div >
< / div >
{% endblock %}
2022-11-21 08:52:22 +00:00
{% block PseudoSubmitForm %}{% endblock %}
2022-05-04 23:09:46 +00:00
{% block content %}
2023-10-29 12:51:00 +00:00
< div class = "row no-gutters {% if listing %}mt-md-3{% elif not listing %}my-md-3{% endif %}" >
< div class = "col-12" >
< div class = "posts" >
{% include "post_listing.html" %}
< / div >
2022-05-04 23:09:46 +00:00
< / div >
< / div >
{% endblock %}
{% block pagenav %}
2023-10-29 12:51:00 +00:00
{% if listing %}
2024-03-03 01:25:02 +00:00
{{macros.pagination()}}
2023-10-29 12:51:00 +00:00
{% endif %}
2022-05-04 23:09:46 +00:00
2023-10-29 12:51:00 +00:00
{% if request.path == '/' and v %}
< script defer src = "{{'js/register_service_worker.js' | asset}}" > < / script >
{% endif %}
2022-05-04 23:09:46 +00:00
2024-10-16 03:45:32 +00:00
{% if v and request.path == '/' and g.browser != 'webview' and time.time() > session.get('tooltip_dismissed',0)+86400*30 %}
2023-10-29 12:51:00 +00:00
< div id = "mobile-prompt-container" class = "fixed-top" >
< div id = "mobile-prompt" data-bs-toggle = "tooltip" data-bs-container = "#mobile-prompt-container" data-bs-placement = "top" data-bs-trigger = "click" data-bs-html = "true" title = "<i class='dismiss-beg fas fa-x'></i>Click me to install the {{SITE_NAME}} mobile app{% if g.browser == 'iphone' %} and be able to enable push notifications{% endif %}" > < / div >
< / div >
2022-05-04 23:09:46 +00:00
2023-10-29 12:51:00 +00:00
< script defer src = "{{'js/mobile_prompt.js' | asset}}" > < / script >
{% endif %}
2022-05-29 02:11:04 +00:00
{% endblock %}