This commit is contained in:
parent
651b2dd52a
commit
ebe941c8a5
@ -407,8 +407,10 @@ def jinja2_filter(app):
|
|||||||
|
|
||||||
@app.context_processor
|
@app.context_processor
|
||||||
def inject_stage_and_region():
|
def inject_stage_and_region():
|
||||||
|
now = arrow.now()
|
||||||
return dict(
|
return dict(
|
||||||
YEAR=arrow.now().year,
|
YEAR=now.year,
|
||||||
|
NOW=now,
|
||||||
URL=URL,
|
URL=URL,
|
||||||
SENTRY_DSN=SENTRY_FRONT_END_DSN,
|
SENTRY_DSN=SENTRY_FRONT_END_DSN,
|
||||||
VERSION=SHA1,
|
VERSION=SHA1,
|
||||||
|
@ -86,7 +86,7 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="page">
|
<div class="page">
|
||||||
{% if current_user.is_authenticated and current_user.should_show_upgrade_button() %}
|
{% if NOW.timestamp < 1701475201 and current_user.is_authenticated and current_user.should_show_upgrade_button() %}
|
||||||
|
|
||||||
<div class="alert alert-success text-center mb-0" role="alert">
|
<div class="alert alert-success text-center mb-0" role="alert">
|
||||||
Black Friday: $20 for the first year instead of $30. Available until December 1st.
|
Black Friday: $20 for the first year instead of $30. Available until December 1st.
|
||||||
|
@ -57,6 +57,8 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block default_content %}
|
{% block default_content %}
|
||||||
|
|
||||||
|
{% if NOW.timestamp < 1701475201 %}
|
||||||
|
|
||||||
<div class="alert alert-info">
|
<div class="alert alert-info">
|
||||||
Black Friday Deal: 33% off on the yearly plan for the <b>first</b> year ($20 instead of $30).
|
Black Friday Deal: 33% off on the yearly plan for the <b>first</b> year ($20 instead of $30).
|
||||||
<br>
|
<br>
|
||||||
@ -70,6 +72,7 @@
|
|||||||
<br>
|
<br>
|
||||||
Available until December 1, 2023.
|
Available until December 1, 2023.
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
<div class="pb-8">
|
<div class="pb-8">
|
||||||
<div class="text-center mx-md-auto mb-8 mt-6">
|
<div class="text-center mx-md-auto mb-8 mt-6">
|
||||||
<h1>Upgrade to unlock premium features</h1>
|
<h1>Upgrade to unlock premium features</h1>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user