diff --git a/files/assets/images/hat-template.png b/files/assets/images/hat-template.png new file mode 100644 index 000000000..7c8d6d5b3 Binary files /dev/null and b/files/assets/images/hat-template.png differ diff --git a/files/routes/asset_submissions.py b/files/routes/asset_submissions.py index 435258191..5750ae0cf 100644 --- a/files/routes/asset_submissions.py +++ b/files/routes/asset_submissions.py @@ -251,6 +251,7 @@ def approve_hat(v, name): if not description_regex.fullmatch(description): return {"error": "Invalid description!"}, 400 + hat.price = int(request.values.get('price')) hat.name = new_name hat.description = description g.db.add(hat) diff --git a/files/templates/default.html b/files/templates/default.html index 9675fa188..43f8eedcc 100644 --- a/files/templates/default.html +++ b/files/templates/default.html @@ -336,7 +336,7 @@ {% block sidebar %} - {% if has_sidebar and (home or sub and p) %} + {% if has_sidebar and (home or p) %} {% include "sidebar_" + SITE_NAME + ".html" %} {% endif %} {% endblock %} diff --git a/files/templates/submit_hats.html b/files/templates/submit_hats.html index ee1f2e93a..9b50efafd 100644 --- a/files/templates/submit_hats.html +++ b/files/templates/submit_hats.html @@ -48,6 +48,10 @@ +
+ Hat Template — 100x130px (do not resize), circle is profile picture, do not include circle in final submission. +
+