WPD sidebar: update rules, improve styling.

remotes/1693045480750635534/spooky-22
Snakes 2022-06-22 00:49:10 -04:00
parent dedbc02968
commit 70c87140a3
3 changed files with 44 additions and 28 deletions

View File

@ -61,12 +61,16 @@
<li><a href="/daily_chart">Daily Stat Chart</a></li>
</ul>
{% if SITE_NAME == 'PCM' %}
{% if SITE_NAME in ['PCM', 'WPD'] -%}
<h4>Configuration</h4>
<ul>
<li><a href="/admin/sidebar">Edit Sidebar</a></li>
{% if SITE_NAME == 'PCM' -%}
<li><a href="/admin/sidebar">Edit Sidebar</a></li>
{%- elif SITE_NAME == 'WPD' -%}
<li><a href="/create_hole">Create Hole</a></li>
{%- endif %}
</ul>
{% endif %}
{%- endif %}
{% if v.admin_level > 2 %}
<pre></pre>

View File

@ -9,6 +9,8 @@
<img class="mb-4" alt="sidebar image" role="button" data-bs-toggle="modal" data-bs-target="#expandImageModal" onclick="expandDesktopImage('{{image}}')" loading="lazy" src="{{image}}" width=100%>
<p class="text-center text-md mb-4">
<a class="sidebar-link" href="/admins" data-bs-toggle="tooltip" data-bs-placement="top" title="Admins"><i class="fas fa-crown"></i></a>
<a class="sidebar-link" href="/log" data-bs-toggle="tooltip" data-bs-placement="top" title="Moderation Log"><i class="fas fa-scroll-old"></i></a>
<a class="sidebar-link" href="/random_user/" data-bs-toggle="tooltip" data-bs-placement="top" title="Random User"><i class="fas fa-music"></i></a>
<a class="sidebar-link" href="/random_post/" data-bs-toggle="tooltip" data-bs-placement="top" title="Random Post"><i class="fas fa-random"></i></a>
<a class="sidebar-link" href="/comments" data-bs-toggle="tooltip" data-bs-placement="top" title="All Comments"><i class="fas fa-comment-dots"></i></a>
@ -18,35 +20,45 @@
{% if sub.sidebar_html %}
<div class="mb-4">{{sub.sidebar_html|safe}}</div>
{% endif %}
{% if v %}
{% if v.can_create_hole -%}
<a class="btn btn-primary btn-block mb-3" href="/create_hole">CREATE HOLE</a>
{%- endif %}
{% if v.mods(sub.name) %}
<a class="btn btn-primary btn-block mb-3" href="/h/{{sub.name}}/settings">HOLE SETTINGS</a>
{% endif %}
{% if v and v.mods(sub.name) %}
<a class="btn btn-primary btn-block mb-3" href="/h/{{sub.name}}/settings">HOLE SETTINGS</a>
{% endif %}
<a class="btn btn-primary btn-block mb-3" href="/h/{{sub.name}}/mods">HOLE MODS</a>
<a class="btn btn-primary btn-block mb-3" href="/h/{{sub.name}}/exilees">HOLE EXILEES</a>
<a class="btn btn-primary btn-block mb-3" href="/h/{{sub.name}}/followers">HOLE FOLLOWERS</a>
<a class="btn btn-primary btn-block mb-3" href="/h/{{sub.name}}/blockers">HOLE BLOCKERS</a>
{% else %}
<div class="mt-4">
<h3>Rules:</h3><br>
- Don't post anything illegal.<br><br>
- No sexualizing minors even as a “joke”.<br><br>
- No doxing.<br><br>
- Don't be too edgy.<br><br>
- No agendaposting.<br><br>
- Post videos of humans dying only.<br><br>
</div>
{% endif %}
<div id="sidebar--rules">
<h3 id="sidebar--rules--head">Rules</h3>
<ol id="sidebar--rules--list">
<li>Do not post anything illegal under US law.
<ul>
<li>Do not request illegal content.</li>
<li>Do not threaten or advocate violence.</li>
<li>Do not sexualize minors.</li>
</ul>
</li>
<li>No doxing. No witch hunts.</li>
<li>Posts must include videos of people dying.
<ul>
<li>Videos that only include aftermath of a serious accident/incident or current event may be allowed.</li>
<li>No animal death unless theres also a human dying in the video.</li>
</ul>
</li>
<li>Titles should be as descriptive as possible.
<ul>
<li>Additional context, images, or sources are always encouraged and appreciated. No joke titles please.</li>
<li>If there is a child or animal, please add it as a descriptor.</li>
</ul>
</li>
<li>No explicit racism or bigotry.
<ul>
<li>Humor is fine, but comments that are just low effort shock value spam may be removed. Feel free to express your opinions but please try to express them in a reasonable manner.</li>
</ul>
</li>
</ol>
</div>
<pre>
@ -58,7 +70,7 @@

View File

@ -1,6 +1,6 @@
{%-
set CACHE_VER = {
'css/main.css': 342,
'css/main.css': 343,
'css/4chan.css': 61,
'css/classic.css': 61,