Skip to content

Commit 8b66ce9

Browse files
committed
Change the content of the notification based on old/new dashboard
1 parent 0ccb3e3 commit 8b66ce9

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

readthedocs/core/context_processors.py

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ def readthedocs_processor(request):
2525
"USE_ORGANIZATIONS": settings.RTD_ALLOW_ORGANIZATIONS,
2626
"SUPPORT_EMAIL": settings.SUPPORT_EMAIL,
2727
"PUBLIC_API_URL": settings.PUBLIC_API_URL,
28+
"RTD_EXT_THEME_ENABLED": settings.RTD_EXT_THEME_ENABLED,
2829
}
2930
return exports
3031

readthedocs/core/notifications.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,14 @@
2929
body=_(
3030
textwrap.dedent(
3131
"""
32+
{% if RTD_EXT_THEME_ENABLED %}
33+
This dashboard is currently in beta,
34+
you can <a href="https://{{ PRODUCTION_DOMAIN }}">return to the legacy dashboard</a> if you encounter any problems.
35+
Feel free to <a href="https://{{ PRODUCTION_DOMAIN }}/support/">report any feedback</a> you may have.
36+
{% else %}
3237
Our new <strong>beta dashboard</strong> is now available for testing.
33-
<a href="https://beta.readthedocs.org/">Give it a try</a> and send us feedback.
38+
<a href="https://beta.{{ PRODUCTION_DOMAIN }}/">Give it a try</a> and send us feedback.
39+
{% endif %}
3440
"""
3541
).strip(),
3642
),

0 commit comments

Comments
 (0)