]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
dropdown nav for other docs versions
authorMark Otto <markdotto@gmail.com>
Sun, 2 Jul 2017 22:40:25 +0000 (15:40 -0700)
committerMark Otto <markdotto@gmail.com>
Sun, 2 Jul 2017 22:40:25 +0000 (15:40 -0700)
_config.yml
docs/_includes/nav/main.html

index 6116e559d7bcb28a7c3fb0a2586e9cc6e0da0ab7..713e5fa5e37e3bfa9c1f0aea95a4b05d116fa1de 100644 (file)
@@ -29,6 +29,7 @@ download:
 blog:             http://blog.getbootstrap.com
 expo:             http://expo.getbootstrap.com
 themes:           http://themes.getbootstrap.com
+jobs:             http://jobs.getbootstrap.com
 
 cdn:
   # See https://www.srihash.org for info on how to generate the hashes
index a8bd70ee8a45dae4f14e0b049172e9b2abf213af..92f4ae99ffe9f382056841c4084a69dc94dc6321 100644 (file)
         </li>
       </ul>
       <ul class="nav navbar-nav navbar-right">
+        <li class="dropdown">
+          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
+            {{ site.current_version }} <span class="caret"></span>
+          </a>
+          <ul class="dropdown-menu">
+            <li><a href="http://getbootstrap.com/docs/4.0/">Latest (4.x)</a></li>
+            <li><a href="https://v4-alpha.getbootstrap.com">v4 Alpha 6</a></li>
+            <li class="active"><a href="https://getbootstrap.com/{{ site.current_version }}/">v{{ site.current_version }}</a></li>
+            <li><a href="https://getbootstrap.com/2.3.2/">v2.3.2</a></li>
+          </ul>
+        </li>
         <li><a href="{{ site.themes }}" onclick="ga('send', 'event', 'Navbar', 'Community links', 'Themes')">Themes</a></li>
+        <li><a href="{{ site.jobs }}" onclick="ga('send', 'event', 'Navbar', 'Community links', 'Jobs')">Jobs</a></li>
         <li><a href="{{ site.expo }}" onclick="ga('send', 'event', 'Navbar', 'Community links', 'Expo');">Expo</a></li>
         <li><a href="{{ site.blog }}" onclick="ga('send', 'event', 'Navbar', 'Community links', 'Blog');">Blog</a></li>
       </ul>