diff --git a/files/routes/asset_submissions.py b/files/routes/asset_submissions.py index 750fd94bd..11ea0f9fd 100644 --- a/files/routes/asset_submissions.py +++ b/files/routes/asset_submissions.py @@ -1,4 +1,5 @@ from shutil import move, copyfile +from os import listdir from files.__main__ import app, limiter from files.helpers.const import * @@ -7,6 +8,13 @@ from files.helpers.media import * from files.helpers.wrappers import * from files.routes.static import marsey_list +@app.get('/asset_submissions/marseys') +@auth_required +def asset_submissions_marseys(v): + images = [x for x in listdir("/asset_submissions/marseys") if x.endswith('png')] + return render_template("asset_submissions.html", v=v, images=images) + + @app.get('/asset_submissions/') @limiter.exempt def asset_submissions(path): diff --git a/files/templates/asset_submissions.html b/files/templates/asset_submissions.html new file mode 100644 index 000000000..be916af20 --- /dev/null +++ b/files/templates/asset_submissions.html @@ -0,0 +1,27 @@ +{% extends "default.html" %} +{% block content %} +
+
+	
+
+
+ + + + + + + + + {% for image in images %} + + + + + + {% endfor %} + + +
#NameImage
{{loop.index}}{{image}}
+ +{% endblock %} \ No newline at end of file