master
Aevann1 2022-01-14 05:50:47 +02:00
parent f02032cbdc
commit c0158be0da
3 changed files with 46 additions and 46 deletions

View File

@ -72,4 +72,8 @@
<button class="btn btn-primary mt-3" onclick="post_toast('/admin/purge_cache');">PURGE CACHE</button>
{% endif %}
<script>
navigator.setAppBadge(24)
</script>
{% endblock %}

View File

@ -273,14 +273,8 @@
</div>
{% if request.path in ('/', '/logged_out', '/logged_out/') %}
{% if request.host == 'pcmemes.net' %}
{% set template = "sidebar_PCM.html" %}
{% else %}
{% set template = "sidebar_" + SITE_NAME + ".html" %}
{% endif %}
{% block sidebar %}
{% include template %}
{% include "sidebar_" + SITE_NAME + ".html" %}
{% endblock %}
{% endif %}
</div>

View File

@ -146,7 +146,7 @@
{% endif %}
</ul>
<ul class="navbar-nav ml-auto d-flex d-md-none mt-3">
<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-0 mx-lg-auto" action="/search/posts/" method="get">
<input autocomplete="off" class="form-control form-control-sm w-100" type="search" placeholder="Search" aria-label="Search" name="q">
@ -176,10 +176,6 @@
<a class="nav-item nav-link" rel="nofollow noopener noreferrer" href="https://github.com/Aevann1/Drama"><i class="fab fa-github fa-fw mr-3"></i>Source code</a>
{% if request.host in ['rdrama.net', 'pcmemes.net'] %}
<a class="nav-item nav-link" rel="nofollow noopener noreferrer" href="/report_bugs"><i class="fas fa-bug fa-fw mr-3"></i>Bugs/Suggestions</a>
{% endif %}
{% if request.host != 'pcmemes.net' %}
<a class="nav-item nav-link" href="/discord"><i class="fab fa-discord fa-fw mr-3"></i>Discord</a>
{% endif %}
@ -201,6 +197,9 @@
<a class="btn btn-outline-purple btn-block" href="/signup?redirect={{request.path | urlencode}}">Sign up</a>
</li>
{% endif %}
<li class="mt-3">
{% include "sidebar_" + SITE_NAME + ".html" %}
</li>
</ul>
</div>
{% endif %}
@ -218,6 +217,9 @@
padding: 2px 5px;
font-weight: 700;
}
li > .sidebar {
display: block !important;
}
</style>
{% if v and not error %}