forked from rDrama/rDrama
rename megathread_index to directory
parent
505f6f8301
commit
47008c53c5
|
@ -235,7 +235,7 @@ def log_item(id, v):
|
||||||
@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400)
|
@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400)
|
||||||
@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400, key_func=get_ID)
|
@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400, key_func=get_ID)
|
||||||
@auth_required
|
@auth_required
|
||||||
def static_megathread_index(v):
|
def directory(v):
|
||||||
if SITE_NAME != 'rDrama':
|
if SITE_NAME != 'rDrama':
|
||||||
abort(404)
|
abort(404)
|
||||||
|
|
||||||
|
@ -247,7 +247,7 @@ def static_megathread_index(v):
|
||||||
emojis_original_count = cache.get('emojis_original_count') or ''
|
emojis_original_count = cache.get('emojis_original_count') or ''
|
||||||
emojis_original_size = cache.get('emojis_original_size') or ''
|
emojis_original_size = cache.get('emojis_original_size') or ''
|
||||||
|
|
||||||
return render_template("megathread_index.html", v=v, emojis_hash=emojis_hash, emojis_count=emojis_count, emojis_size=emojis_size, emojis_original_hash=emojis_original_hash, emojis_original_count=emojis_original_count, emojis_original_size=emojis_original_size)
|
return render_template("directory.html", v=v, emojis_hash=emojis_hash, emojis_count=emojis_count, emojis_size=emojis_size, emojis_original_hash=emojis_original_hash, emojis_original_count=emojis_original_count, emojis_original_size=emojis_original_size)
|
||||||
|
|
||||||
@app.get("/api")
|
@app.get("/api")
|
||||||
@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400)
|
@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400)
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
{% block pagetype %}directory{% endblock %}
|
{% block pagetype %}directory{% endblock %}
|
||||||
{# Title (~25char max), Description (~80char max),
|
{# Title (~25char max), Description (~80char max),
|
||||||
Icon (fa-foo-bar), Color (#ff0000), URL (/post/12345/) #}
|
Icon (fa-foo-bar), Color (#ff0000), URL (/post/12345/) #}
|
||||||
{%- set MEGATHREAD_INDEX = [] -%}
|
{%- set DIRECTORY = [] -%}
|
||||||
|
|
||||||
{%- if SITE_NAME == 'rDrama' -%}
|
{%- if SITE_NAME == 'rDrama' -%}
|
||||||
{%- do MEGATHREAD_INDEX.extend([
|
{%- do DIRECTORY.extend([
|
||||||
(
|
(
|
||||||
'Download All Emojis',
|
'Download All Emojis',
|
||||||
'Download a zip containing all emojis.<br>' ~ emojis_count ~ ' emojis - ' ~ emojis_size,
|
'Download a zip containing all emojis.<br>' ~ emojis_count ~ ' emojis - ' ~ emojis_size,
|
||||||
|
@ -108,7 +108,7 @@
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div id="directory--wrapper">
|
<div id="directory--wrapper">
|
||||||
{% for thread in MEGATHREAD_INDEX %}
|
{% for thread in DIRECTORY %}
|
||||||
<a class="directory--link" href="{{thread[4]}}">
|
<a class="directory--link" href="{{thread[4]}}">
|
||||||
<div class="directory--link-content">
|
<div class="directory--link-content">
|
||||||
<i class="directory--link--icon fas {{thread[2]}}" style="color:{{thread[3]}}"></i>
|
<i class="directory--link--icon fas {{thread[2]}}" style="color:{{thread[3]}}"></i>
|
Loading…
Reference in New Issue