diff --git a/files/__main__.py b/files/__main__.py index da7c2681f..7b89a490e 100644 --- a/files/__main__.py +++ b/files/__main__.py @@ -100,7 +100,6 @@ def before_request(): g.db = db_session() g.webview = '; wv) ' in ua - g.inferior_browser = 'iphone' in ua or 'ipad' in ua or 'ipod' in ua or 'mac os' in ua or ' firefox/' in ua @app.teardown_appcontext def teardown_request(error): diff --git a/files/templates/submission.html b/files/templates/submission.html index af0d16940..bfd804887 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -113,264 +113,111 @@ {% endif %} {% endif %} -{% if g.inferior_browser %} - {% if p.award_count("wholesome") %} - -
- :#marseywholesome: -
- - {% if p.award_count("wholesome") > 1 %} - -
+ } + +
+ + :#marseywholesome: - - {% endif %} + + +
- {% if p.award_count("wholesome") > 2 %} - -
+ {% if p.award_count("wholesome") > 1 %} + + :#marseywholesome: - - {% endif %} - - {% if p.award_count("wholesome") > 3 %} - -
- :#marseywholesome: -
- {% endif %} +
+
{% endif %} - {% if SITE_NAME == 'PCM' and p.award_count("toe") %} - -
- Blade's toe -
- - {% if p.award_count("toe") > 1 %} - -
- Blade's toe -
- {% endif %} - - {% if p.award_count("toe") > 2 %} - -
- Blade's toe -
- {% endif %} - - {% if p.award_count("toe") > 3 %} - -
- Blade's toe -
- {% endif %} - {% endif %} -{% else %} - {% if p.award_count("wholesome") %} - -
- - - :#marseywholesome: - + {% if p.award_count("wholesome") > 2 %} + + + :#marseywholesome: - - - {% if p.award_count("wholesome") > 1 %} - - - :#marseywholesome: - - - {% endif %} - - {% if p.award_count("wholesome") > 2 %} - - - :#marseywholesome: - - - {% endif %} - - {% if p.award_count("wholesome") > 3 %} - - - :#marseywholesome: - - - {% endif %} + {% endif %} - {% if SITE_NAME == 'PCM' and p.award_count("toe") %} - -
- - - Blade's toe - + {% if p.award_count("wholesome") > 3 %} + + + :#marseywholesome: - - - {% if p.award_count("toe") > 1 %} - - - Blade's toe - - - {% endif %} - - {% if p.award_count("toe") > 2 %} - - - Blade's toe - - - {% endif %} - - {% if p.award_count("toe") > 3 %} - - - Blade's toe - - - {% endif %} + {% endif %} {% endif %} +{% if SITE_NAME == 'PCM' and p.award_count("toe") %} + +
+ + + Blade's toe + + +
+ + {% if p.award_count("toe") > 1 %} + + + Blade's toe + + + {% endif %} + + {% if p.award_count("toe") > 2 %} + + + Blade's toe + + + {% endif %} + + {% if p.award_count("toe") > 3 %} + + + Blade's toe + + + {% endif %} +{% endif %}