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