8000 Better display doc home based on debug setting · python-doc-tw/pydoc_autobuild@65ce332 · GitHub
[go: up one dir, main page]

Skip to content

Commit 65ce332

Browse files
committed
Better display doc home based on debug setting
1 parent 8528ba5 commit 65ce332

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

templates/_includes/nav.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@
1414
<!-- Collect the nav links, forms, and other content for toggling -->
1515
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
1616
<ul class="nav navbar-nav">
17-
{% if debug %}
18-
<li><a href="{% url 'doc_home' %}" target="_blank">Doc Home</a></li>
19-
{% endif %}
17+
<li><a href="{% if debug %}{% url 'doc_home' %}{% else %}/3/{% endif %}" target="_blank">Doc Home</a></li>
2018
</ul>
2119
<!-- Right Navbar -->
2220
<ul class="nav navbar-nav navbar-right">

0 commit comments

Comments
 (0)
0