Skip to content

Commit

Permalink
Change the content of the notification based on old/new dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
humitos committed Feb 28, 2024
1 parent 0ccb3e3 commit 8b66ce9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions readthedocs/core/context_processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def readthedocs_processor(request):
"USE_ORGANIZATIONS": settings.RTD_ALLOW_ORGANIZATIONS,
"SUPPORT_EMAIL": settings.SUPPORT_EMAIL,
"PUBLIC_API_URL": settings.PUBLIC_API_URL,
"RTD_EXT_THEME_ENABLED": settings.RTD_EXT_THEME_ENABLED,
}
return exports

Expand Down
8 changes: 7 additions & 1 deletion readthedocs/core/notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,14 @@
body=_(
textwrap.dedent(
"""
{% if RTD_EXT_THEME_ENABLED %}
This dashboard is currently in beta,
you can <a href="https://{{ PRODUCTION_DOMAIN }}">return to the legacy dashboard</a> if you encounter any problems.
Feel free to <a href="https://{{ PRODUCTION_DOMAIN }}/support/">report any feedback</a> you may have.
{% else %}
Our new <strong>beta dashboard</strong> is now available for testing.
<a href="https://beta.readthedocs.org/">Give it a try</a> and send us feedback.
<a href="https://beta.{{ PRODUCTION_DOMAIN }}/">Give it a try</a> and send us feedback.
{% endif %}
"""
).strip(),
),
Expand Down

0 comments on commit 8b66ce9

Please sign in to comment.