diff --git a/files/templates/submission.html b/files/templates/submission.html index 871d60ea6e..c74c3e8af8 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -1,87 +1,105 @@ {% 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]) %} - + @media (max-width: 768px) { + .train1 { + position: fixed; + z-index: 10; + width: 35px; + animation: train 3s linear infinite !important; + } + .train2 { + display: none !important; + } + .train3 { + display: none !important; + } + .train4 { + display: none !important; + } + } + + @media (min-width: 768px) { + .train1 { + position: absolute; + z-index: 10; + width: 100px; + animation: trainrev 5s linear infinite !important; + transform: scaleX(-1); + -webkit-transform: scaleX(-1); + top: 35% + } + .train2 { + position: absolute; + z-index: 10; + width: 100px; + animation: train 5s linear infinite !important; + top: 10% + } + .train3 { + position: absolute; + z-index: 10; + width: 100px; + animation: train 5s linear infinite !important; + top: 60% + } + .train4 { + position: absolute; + z-index: 10; + width: 100px; + animation: trainrev 5s linear infinite !important; + transform: scaleX(-1); + -webkit-transform: scaleX(-1); + top: 85% + } + } + + + {% endif %} -{% if 'rama' not in request.host %} - - -{% if v %} - +{% if p.award_count("train") > 1 %} + {% endif %} +{% if p.award_count("train") > 2 %} + {% 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 %} - -{% 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 %} @@ -99,8 +117,8 @@ -{% if p.url and p.url.lower().endswith('.mp4') %} - +{% if p.url and (p.url.lower().endswith('.mp4') or p.url.lower().endswith('.webm')) %} + {% endif %} @@ -128,7 +146,7 @@ {% if p.author %}{% endif %} -{% if p.url and p.url.lower().endswith('.mp4') %} +{% if p.url and (p.url.lower().endswith('.mp4') or p.url.lower().endswith('.webm')) %} {% endif %} @@ -153,307 +171,201 @@ {% block actionsModal %} -