diff --git a/files/__main__.py b/files/__main__.py index df1558a8b..40d009216 100644 --- a/files/__main__.py +++ b/files/__main__.py @@ -102,8 +102,8 @@ def before_request(): 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/' in ua: g.seal = True - else: g.seal = False + if 'iphone' in ua or 'ipad' in ua or 'ipod' in ua or 'mac os' in ua or ' firefox/' in ua: g.inferior_browser = True + else: g.inferior_browser = False @app.teardown_appcontext diff --git a/files/helpers/const.py b/files/helpers/const.py index 350384c42..5c738b2a9 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -555,6 +555,35 @@ AWARDS = { }, } +if SITE == 'PCM': + PCM_AWARDS = { + "croag": { + "kind": "croag", + "title": "Croag", + "description": "Summons Croag on the post.", + "icon": "fas fa-head-side", + "color": "text-gold", + "price": 300 + }, + "toe": { + "kind": "toe", + "title": "Toe Hype", + "description": "Summons Blade's toe on the post.", + "icon": "fas fa-socks", + "color": "text-gold", + "price": 300 + }, + "crab": { + "kind": "crab", + "title": "crab", + "description": "Rave time!", + "icon": "fas fa-glass-cheers", + "color": "text-gold", + "price": 300 + } + } + AWARDS = {**PCM_AWARDS, **AWARDS} + AWARDS2 = deepcopy(AWARDS) for k, val in AWARDS.items(): if val['description'] == '???': AWARDS2.pop(k) diff --git a/files/templates/authforms.html b/files/templates/authforms.html index 063a4ff82..6708f1ee2 100644 --- a/files/templates/authforms.html +++ b/files/templates/authforms.html @@ -15,7 +15,7 @@ {% if v %} - + {% if v.agendaposter %} - + {% endif %} diff --git a/files/templates/default.html b/files/templates/default.html index df1d53a65..3867cbae9 100644 --- a/files/templates/default.html +++ b/files/templates/default.html @@ -2,12 +2,12 @@
- + {% if v %} - + {% if v.agendaposter %} - + {% endif %} {% if sub and sub.css and not request.path.endswith('settings') %} diff --git a/files/templates/home.html b/files/templates/home.html index 2cfd60677..f5f7c15f1 100644 --- a/files/templates/home.html +++ b/files/templates/home.html @@ -171,7 +171,7 @@ {% endif %} -{% if PUSHER_ID and v %} +{% if PUSHER_ID != '3435tdfsdudebussylmaoxxt43' and v %}