diff --git a/files/templates/submission.html b/files/templates/submission.html index c74c3e8af8..871d60ea6e 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -1,105 +1,87 @@ {% extends "default.html" %} - {% set ups=p.upvotes %} {% set downs=p.downvotes %} {% set score=ups-downs %} {% if v %} - {% set voted=p.voted if p.voted else 0 %} +{% set voted=p.voted if p.voted else 0 %} {% else %} - {% set voted=-2 %} +{% set voted=-2 %} {% endif %} {% block title %} -{% if p.award_count("train") %} - - - + body.classList.toggle("hidden"); + title.classList.toggle("hidden"); + form.classList.toggle("hidden"); + autoExpand(box); + }; + {% endif %} -{% if p.award_count("train") > 1 %} - +{% if 'rama' not in request.host %} + + +{% if v %} + {% endif %} -{% if p.award_count("train") > 2 %} - {% endif %} -{% if p.award_count("train") > 3 %} - +{% if p.award_count("shit") %} + +{% set minbugs = 10*p.award_count("shit") if p.award_count("shit") < 3 else 20 %} +{% set maxbugs = 20*p.award_count("shit") if p.award_count("shit") < 3 else 40 %} + +{% endif %} + + +{% if p.award_count("fireflies") %} + +{% set minbugs = 10*p.award_count("fireflies") if p.award_count("fireflies") < 3 else 20 %} +{% set maxbugs = 20*p.award_count("fireflies") if p.award_count("fireflies") < 3 else 40 %} + {% endif %} @@ -117,8 +99,8 @@ -{% if p.url and (p.url.lower().endswith('.mp4') or p.url.lower().endswith('.webm')) %} - +{% if p.url and p.url.lower().endswith('.mp4') %} + {% endif %} @@ -146,7 +128,7 @@ {% if p.author %}{% endif %} -{% if p.url and (p.url.lower().endswith('.mp4') or p.url.lower().endswith('.webm')) %} +{% if p.url and p.url.lower().endswith('.mp4') %} {% endif %} @@ -171,201 +153,307 @@ {% block actionsModal %} -