aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDougal Matthews2014-10-29 20:54:20 +0000
committerDougal Matthews2014-11-25 12:43:42 +0000
commit18712a5cbcbb25d935b93baac589cacfe1cbb754 (patch)
tree7569c5eaf1796a441facc194880cd1ae170a5b3b
parentd6b203f013890cc25f5454696805bc85c1ca2482 (diff)
downloaddjango-rest-framework-18712a5cbcbb25d935b93baac589cacfe1cbb754.tar.bz2
Fix the Navigation style
-rw-r--r--docs/theme/base.html7
1 files changed, 2 insertions, 5 deletions
diff --git a/docs/theme/base.html b/docs/theme/base.html
index 943a60e4..e5ad4377 100644
--- a/docs/theme/base.html
+++ b/docs/theme/base.html
@@ -188,15 +188,12 @@ a.fusion-poweredby {
<div id="table-of-contents">
<ul class="nav nav-list side-nav well sidebar-nav-fixed">
{% for toc_item in toc %}
- <li class="main {% if toc_item.active %}active{% endif %}"><a href="{{ toc_item.url }}">{{ toc_item.title }}</a></li>
- {% for toc_item in toc_item.children %}
- <li><a href="{{ toc_item.url }}">{{ toc_item.title }}</a></li>
- {% endfor %}
+ <li class="{% if loop.first %}main{% endif %} {% if toc_item.active %}main{% endif %}"><a href="{{ toc_item.url }}">{{ toc_item.title }}</a></li>
{% endfor %}
<div class="promo">
{{ ad_block }}
</div>
-</ul>
+ </ul>
</div>
</div>