diff options
| author | Dougal Matthews | 2014-10-29 22:29:41 +0000 |
|---|---|---|
| committer | Dougal Matthews | 2014-11-25 12:43:42 +0000 |
| commit | 5d479c20d8b9a376057517a4d53d58ff891f5483 (patch) | |
| tree | 515ecba6ced0f24998f0b6458937a9e3c8522993 /docs/theme/nav.html | |
| parent | b443f81481815423d0f953ca41052b4993dfb12f (diff) | |
| download | django-rest-framework-5d479c20d8b9a376057517a4d53d58ff891f5483.tar.bz2 | |
Move nav to it's own template based on the MkDocs theme
Diffstat (limited to 'docs/theme/nav.html')
| -rw-r--r-- | docs/theme/nav.html | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/docs/theme/nav.html b/docs/theme/nav.html new file mode 100644 index 00000000..a7a72d68 --- /dev/null +++ b/docs/theme/nav.html @@ -0,0 +1,45 @@ + + <div class="navbar navbar-inverse navbar-fixed-top"> + <div class="navbar-inner"> + <div class="container-fluid"> + <a class="repo-link btn btn-primary btn-small" href="https://github.com/tomchristie/django-rest-framework/tree/master">GitHub</a> + <a class="repo-link btn btn-inverse btn-small " href="tutorial/quickstart">Next <i class="icon-arrow-right icon-white"></i></a> + <a class="repo-link btn btn-inverse btn-small disabled" href="#"><i class="icon-arrow-left icon-white"></i> Previous</a> + <a class="repo-link btn btn-inverse btn-small" href="#searchModal" data-toggle="modal"><i class="icon-search icon-white"></i> Search</a> + <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + </a> + <a class="brand" href="http://www.django-rest-framework.org">Django REST framework</a> + <div class="nav-collapse collapse"> + {% if include_nav %} + <!-- Main navigation --> + <ul class="nav navbar-nav"> + {% for nav_item in nav %} + {% if nav_item.children %} + <li class="dropdown{% if nav_item.active %} active{% endif %}"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ nav_item.title }} <b class="caret"></b></a> + <ul class="dropdown-menu"> + {% for nav_item in nav_item.children %} + <li {% if nav_item.active %}class="active"{% endif %}> + <a href="{{ nav_item.url }}">{{ nav_item.title }}</a> + </li> + {% endfor %} + </ul> + </li> + {% else %} + <li {% if nav_item.active %}class="active"{% endif %}> + <a href="{{ nav_item.url }}">{{ nav_item.title }}</a> + </li> + {% endif %} + + {% endfor %} + + </ul> + {% endif %} + </div><!--/.nav-collapse --> + + </div> + </div> + </div> |
