Skip to content

Commit af72adb

Browse files
authored
Merge pull request #243 from marcanuy/patch-1
Remove ifnotequal from static_views.py
2 parents 0670ad4 + 25f4b0b commit af72adb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bakery/static_views.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ def serve(request, path, document_root=None, show_indexes=False, default=''):
9696
<body>
9797
<h1>Index of {{ directory }}</h1>
9898
<ul>
99-
{% ifnotequal directory "/" %}
99+
{% if directory != "/" %}
100100
<li><a href="../">../</a></li>
101-
{% endifnotequal %}
101+
{% endif %}
102102
{% for f in file_list %}
103103
<li><a href="{{ f|urlencode }}">{{ f }}</a></li>
104104
{% endfor %}

0 commit comments

Comments
 (0)