diff --git a/files/templates/submission.html b/files/templates/submission.html index 1256563ed..2935392e1 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -1,87 +1,124 @@ {% 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 v and (v.id == p.author_id or v.admin_level == 6 and v.id in [1,28,995,2513]) %} - + body.classList.toggle("d-none"); + title.classList.toggle("d-none"); + form.classList.toggle("d-none"); + autoExpand(box); + }; + {% endif %} -{% if 'rama' not in request.host %} - + -{% if v %} - +{% if p.award_count("train") %} + + + {% endif %} +{% if p.award_count("train") > 1 %} + {% endif %} -{% 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 %} - +{% if p.award_count("train") > 2 %} + {% 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 %} - +{% if p.award_count("train") > 3 %} + {% endif %} @@ -100,7 +137,7 @@ {% if p.url and p.url.lower().endswith('.mp4') %} - + {% endif %} @@ -155,244 +192,285 @@