Skip to content

Commit

Permalink
Removed ctx nav element from HTML if empty
Browse files Browse the repository at this point in the history
Refs #152
  • Loading branch information
bmispelon authored and felixxm committed Jan 26, 2024
1 parent 8e7a874 commit 001db73
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions trac-env/templates/django_theme.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,19 @@
# if resourcepath_template:
# include resourcepath_template ignore missing
# endif

# if chrome.ctxtnav:
<div id="ctxtnav" class="nav">
<h2>${_("Context Navigation")}</h2>
# if chrome.ctxtnav:
<ul>
# for elm in chrome.ctxtnav:
<li ${{'class': {'first': loop.first, 'last': loop.last}}|htmlattr}>${
elm}</li>
# endfor
</ul>
# endif
<hr />
</div>
# endif

${jmacros.warnings(chrome.warnings)}

Expand Down

0 comments on commit 001db73

Please sign in to comment.