diff --git a/files/__main__.py b/files/__main__.py
index 93ea7aca9..dae947edf 100644
--- a/files/__main__.py
+++ b/files/__main__.py
@@ -94,9 +94,15 @@ def before_request():
g.timestamp = int(time.time())
- if '; wv) ' in request.headers.get("User-Agent",""): g.webview = True
+ ua = request.headers.get("User-Agent","").lower()
+
+ if '; wv) ' in ua: g.webview = True
else: g.webview = False
+ if 'iphone' in ua or 'ipad' in ua or 'ipod' in ua or 'mac os' in ua or ' firefox/': g.seal = True
+ else: g.seal = False
+
+
@app.teardown_appcontext
def teardown_request(error):
if hasattr(g, 'db') and g.db:
diff --git a/files/templates/submission.html b/files/templates/submission.html
index aa6ccb720..ab3b0ba10 100644
--- a/files/templates/submission.html
+++ b/files/templates/submission.html
@@ -21,57 +21,136 @@
{% endif %}
-{% if p.award_count("wholesome") %}
-
-
-
-{% endif %}
+ {% endif %}
-{% if p.award_count("wholesome") > 1 %}
-
-
-
+ {% if p.award_count("wholesome") > 2 %}
+
+
+
+
-
-{% endif %}
+ {% endif %}
-{% if p.award_count("wholesome") > 2 %}
-
-
-
+ {% if p.award_count("wholesome") > 3 %}
+
+
+
+
-
-{% endif %}
-
-{% if p.award_count("wholesome") > 3 %}
-
-
-
-
-
+ {% endif %}
{% endif %}
{% if p.award_count("train") %}