forked from MarseyWorld/MarseyWorld
Create directory page for sidebar megathreads.
The sidebar previously did not prioritize information as well as desired, and the proliferation of megathreads led to a number of icons occupying frontpage visual space despite not often being useful to frontpage use cases. Therefore, they have been moved to a new page. The /directory page is predominantly created with template logic, and it should be within the ability of our semi-technical jannie staff to maintain.master
parent
564f5b38f1
commit
f04dffe1a7
|
@ -169,6 +169,10 @@ def log_item(id, v):
|
||||||
|
|
||||||
return render_template("log.html", v=v, actions=[action], next_exists=False, page=1, action=action, admins=admins, types=types)
|
return render_template("log.html", v=v, actions=[action], next_exists=False, page=1, action=action, admins=admins, types=types)
|
||||||
|
|
||||||
|
@app.get("/directory")
|
||||||
|
@auth_required
|
||||||
|
def static_megathread_index(v):
|
||||||
|
return render_template("megathread_index.html", v=v)
|
||||||
|
|
||||||
@app.get("/api")
|
@app.get("/api")
|
||||||
@auth_required
|
@auth_required
|
||||||
|
|
|
@ -0,0 +1,64 @@
|
||||||
|
{% extends "default.html" %}
|
||||||
|
|
||||||
|
{# Title (~25char max), Description (~80char max),
|
||||||
|
Icon (fa-foo-bar), Color (#ff0000), URL (/post/12345/) #}
|
||||||
|
{%-
|
||||||
|
set MEGATHREAD_INDEX = [
|
||||||
|
(
|
||||||
|
'Bugs / Suggestions',
|
||||||
|
'Something broken? Improvements?',
|
||||||
|
'fa-bug', '#6b8e23',
|
||||||
|
'/post/18459',
|
||||||
|
),
|
||||||
|
(
|
||||||
|
'Submit Marseys',
|
||||||
|
'For original Marseys or other emoji.',
|
||||||
|
'fa-cat', '#ffa500',
|
||||||
|
'/post/16583',
|
||||||
|
),
|
||||||
|
(
|
||||||
|
'Submit Sidebar Art',
|
||||||
|
'Original rDrama-themed works.',
|
||||||
|
'fa-image-landscape', '#87cefa',
|
||||||
|
'/post/75878',
|
||||||
|
),
|
||||||
|
(
|
||||||
|
'Submit Banner Art',
|
||||||
|
'Original chud-repellant works.',
|
||||||
|
'fa-flag-pennant', '#b22222',
|
||||||
|
'/post/35835',
|
||||||
|
),
|
||||||
|
(
|
||||||
|
'Submit Snappy Quotes',
|
||||||
|
'Sentient.',
|
||||||
|
'fa-robot', '#adff2f',
|
||||||
|
'/post/33652',
|
||||||
|
),
|
||||||
|
(
|
||||||
|
'Marsey Commissions',
|
||||||
|
'Request a Marsey to be made.',
|
||||||
|
'fa-coins', '#ffd700',
|
||||||
|
'/post/37677',
|
||||||
|
),
|
||||||
|
(
|
||||||
|
'Gambling Spam',
|
||||||
|
'Goomble without bothering people.',
|
||||||
|
'fa-dice-six', '#c9d1d9',
|
||||||
|
'/post/39413',
|
||||||
|
),
|
||||||
|
]
|
||||||
|
-%}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
<div id="directory--wrapper">
|
||||||
|
{% for thread in MEGATHREAD_INDEX %}
|
||||||
|
<a role="button" class="directory--link" href="{{thread[4]}}">
|
||||||
|
<div class="directory--link-content">
|
||||||
|
<i class="directory--link--icon fas {{thread[2]}}" style="color:{{thread[3]}}"></i>
|
||||||
|
<div class="directory--link--title">{{thread[0]|safe}}</div>
|
||||||
|
<div class="directory--link--description">{{thread[1]|safe}}</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
|
@ -73,24 +73,21 @@ set VISITORS_HERE_FLAVOR = [
|
||||||
<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}}/followers">HOLE FOLLOWERS</a>
|
||||||
<a class="btn btn-primary btn-block mb-3" href="/h/{{sub.name}}/blockers">HOLE BLOCKERS</a>
|
<a class="btn btn-primary btn-block mb-3" href="/h/{{sub.name}}/blockers">HOLE BLOCKERS</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
<a id="sidebar--directory--btn" class="btn btn-primary btn-block mb-3" href="/directory">
|
||||||
|
<span id="sidebar--directory--head">DIRECTORY</span>
|
||||||
|
<span id="sidebar--directory--subhead">Submit Marseys & Art | Info Megathreads</span>
|
||||||
|
</a>
|
||||||
<a class="btn btn-primary btn-block mb-3" href="/holes">BROWSE HOLES</a>
|
<a class="btn btn-primary btn-block mb-3" href="/holes">BROWSE HOLES</a>
|
||||||
{% if v %}
|
{% if v %}
|
||||||
<a class="btn btn-primary btn-block mb-3" href="/create_hole">CREATE HOLE</a>
|
<a class="btn btn-primary btn-block mb-3" href="/create_hole">CREATE HOLE</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<a class="btn btn-primary btn-block mb-3" href="/post/16583">EMOJI MEGATHREAD</a>
|
|
||||||
<a class="btn btn-primary btn-block mb-3" href="/post/18459">BUGS/SUGGESTIONS MEGATHREAD</a>
|
|
||||||
<a class="btn btn-primary btn-block mb-3" href="/post/75878">SIDEBAR ARTWORK MEGATHREAD</a>
|
|
||||||
<a class="btn btn-primary btn-block mb-3" href="/post/33652">SNAPPY QUOTES MEGATHREAD</a>
|
|
||||||
<a class="btn btn-primary btn-block mb-3" href="/post/35835">BANNER ARTWORK MEGATHREAD</a>
|
|
||||||
<a class="btn btn-primary btn-block mb-3" href="/post/37677">EMOJI REQUESTS MEGATHREAD</a>
|
|
||||||
<a class="btn btn-primary btn-block mb-3" href="/post/39413">GAMBLING MEGATHREAD</a>
|
|
||||||
|
|
||||||
<div class="rules mt-5">
|
<div class="rules mt-5">
|
||||||
<h3>Rules:</h3><br>
|
<h3>Rules:</h3><br>
|
||||||
|
|
||||||
<a href="/post/19711/a-short-guide-on-how-to" style="color:red;font-weight:bold">- NO RIGHTWING AGENDAPOSTING.</a><br><br>
|
<a href="/post/19711/a-short-guide-on-how-to" style="color:red;font-weight:bold">- NO RIGHTWING AGENDAPOSTING.</a><br><br>
|
||||||
|
|
||||||
- Don't post anything illegal.<br><br>
|
- Don’t post anything illegal.<br><br>
|
||||||
|
|
||||||
- No sexualizing minors even as a “joke”.<br><br>
|
- No sexualizing minors even as a “joke”.<br><br>
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{%-
|
{%-
|
||||||
set CACHE_VER = {
|
set CACHE_VER = {
|
||||||
'css/main.css': 313,
|
'css/main.css': 314,
|
||||||
|
|
||||||
'css/4chan.css': 60,
|
'css/4chan.css': 60,
|
||||||
'css/classic.css': 59,
|
'css/classic.css': 59,
|
||||||
|
|
Loading…
Reference in New Issue