Add a more granular setting for enabling extra debugging on the agenda page. Commit ready for merge.

- Legacy-Id: 18801
This commit is contained in:
Robert Sparks 2021-01-25 19:08:25 +00:00
parent 09809b874e
commit ce0f749293
2 changed files with 4 additions and 2 deletions

View file

@ -34,6 +34,8 @@ import debug
DEBUG = True
debug.debug = DEBUG
DEBUG_AGENDA = False
# Valid values:
# 'production', 'test', 'development'
# Override this in settings_local.py if it's not the desired setting:

View file

@ -327,7 +327,7 @@
<li id="timezone">
<select style="width: 12em;" id="timezone_select"></select>
</li>
{% if settings.DEBUG %}
{% if settings.DEBUG and settings.DEBUG_AGENDA %}
<li><hr/></li>
<li><span id="current-time"></span></li>
{% endif %}
@ -496,7 +496,7 @@
<script src="{% static 'ietf/js/agenda/timezone.js' %}"></script>
<script>
{% if settings.DEBUG %}
{% if settings.DEBUG and settings.DEBUG_AGENDA %}
speedup = +$.urlParam('speedup');
if (speedup < 1) {
speedup = 1;