diff --git a/files/routes/static.py b/files/routes/static.py index 22012a32e..93f3fc3a7 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -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) +@app.get("/directory") +@auth_required +def static_megathread_index(v): + return render_template("megathread_index.html", v=v) @app.get("/api") @auth_required diff --git a/files/templates/megathread_index.html b/files/templates/megathread_index.html new file mode 100644 index 000000000..e81aac805 --- /dev/null +++ b/files/templates/megathread_index.html @@ -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 %} +