File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ from django .conf import settings
2+
3+ def server_mode (request ):
4+ return {'server_mode' : settings .SERVER_MODE }
5+
Original file line number Diff line number Diff line change 100100 BASE_DIR + "/templates"
101101)
102102
103+ TEMPLATE_CONTEXT_PROCESSORS = (
104+ 'django.core.context_processors.auth' ,
105+ 'django.core.context_processors.debug' ,
106+ 'django.core.context_processors.i18n' ,
107+ 'ietf.context_processors.server_mode' ,
108+ )
109+
103110INSTALLED_APPS = (
104111 'django.contrib.auth' ,
105112 'django.contrib.contenttypes' ,
Original file line number Diff line number Diff line change 44"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
55{% endblock %}
66< html xmlns ="http://www.w3.org/1999/xhtml " lang ="en-US " xml:lang ="en-US ">
7- < head > < title > {% block title %}IETF Data{% endblock %} - WCF</ title >
8- < link rel ="icon " href ="http://tools.ietf.org/images/django-ietf.png " />
7+ < head > < title > {% block title %}IETF Data{% endblock %}{% ifnotequal server_mode "production" %} - {{ server_mode|upper }} MODE{% endifnotequal %}</ title >
8+ {% ifnotequal server_mode "production" %}
9+ < link rel ="icon " href ="/images/ietf-dev-icon.bmp " />
10+ {% else %}
11+ < link rel ="icon " href ="/images/ietf-icon.bmp " />
12+ {% endifnotequal %}
913 {% block head %}{% endblock %}
1014 < style type ="text/css "> <!- -
1115 {% block css %}{% endblock %}
You can’t perform that action at this time.
0 commit comments