Skip to content

Commit b80dec5

Browse files
committed
Removed ctx nav element from HTML if empty
Refs #152
1 parent 7178278 commit b80dec5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

trac-env/templates/django_theme.html

+3-2
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,19 @@
3434
# if resourcepath_template:
3535
# include resourcepath_template ignore missing
3636
# endif
37+
38+
# if chrome.ctxtnav:
3739
<div id="ctxtnav" class="nav">
3840
<h2>${_("Context Navigation")}</h2>
39-
# if chrome.ctxtnav:
4041
<ul>
4142
# for elm in chrome.ctxtnav:
4243
<li ${{'class': {'first': loop.first, 'last': loop.last}}|htmlattr}>${
4344
elm}</li>
4445
# endfor
4546
</ul>
46-
# endif
4747
<hr />
4848
</div>
49+
# endif
4950

5051
${jmacros.warnings(chrome.warnings)}
5152

0 commit comments

Comments
 (0)