Skip to content

Commit b60865b

Browse files
committed
Took care of ietf-tools#841 by moving <span> correctly outside <a> altogether.
It used to be unbalanced: <a><span></a></span>, but now <span><a></a></span> - Legacy-Id: 6614
1 parent 0ff1e5d commit b60865b

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

django/template/loaders/app_directories.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,8 @@
1717
fs_encoding = sys.getfilesystemencoding() or sys.getdefaultencoding()
1818
app_template_dirs = []
1919
for app in settings.INSTALLED_APPS:
20-
try:
21-
mod = import_module(app)
22-
except ImportError, e:
23-
raise ImproperlyConfigured('ImportError %s: %s' % (app, e.args[0]))
20+
mod = import_module(app)
21+
2422
template_dir = os.path.join(os.path.dirname(mod.__file__), 'templates')
2523
if os.path.isdir(template_dir):
2624
app_template_dirs.append(template_dir.decode(fs_encoding))

ietf/templates/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
</head>
5555
<body class="yui-skin-sam" {% block bodyAttrs %}{%endblock%}>
5656
<div style="background-color:{% if server_mode %}{% ifnotequal server_mode "production" %}#c00000{% else %}#313163{% endifnotequal %}{%else %}#313163{%endif%};color:white;font-size:150%;height:35px;" class="noprint">
57-
<a href="/" style="text-decoration:none;color:white"><img src="/images/ietflogo-blue-small.png" width="60" height="34" style="vertical-align:middle;padding-left:8px;" alt=""/><span style="padding-left:15px;font-weight:bold;letter-spacing:0.1em;">datatracker.ietf.org</a> {% if server_mode %}{% ifnotequal server_mode "production" %} - {{ server_mode|upper}} MODE{% endifnotequal %}{% endif %}</span>
57+
<span style="padding-left:15px;font-weight:bold;letter-spacing:0.1em;"><a href="/" style="text-decoration:none;color:white"><img src="/images/ietflogo-blue-small.png" width="60" height="34" style="vertical-align:middle;padding-left:8px;" alt=""/>datatracker.ietf.org</a> {% if server_mode %}{% ifnotequal server_mode "production" %} - {{ server_mode|upper}} MODE{% endifnotequal %}{% endif %}</span>
5858
</div>
5959

6060
{% if user %}

0 commit comments

Comments
 (0)