Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
2017-04-17_hpc-intro/_includes/navbar.html
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
76 lines (69 sloc)
3.59 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<nav class="navbar navbar-default"> | |
<div class="container-fluid"> | |
<div class="navbar-header"> | |
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false"> | |
<span class="sr-only">Toggle navigation</span> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> | |
</button> | |
{% comment %} Select what logo to display. {% endcomment %} | |
{% if page.carpentry == "swc" %} | |
<a href="{{ site.swc_site }}" class="pull-left"> | |
<img class="navbar-logo" src="{{ site.github.url }}/assets/img/swc-icon-blue.svg" alt="Software Carpentry logo" /> | |
</a> | |
{% elsif page.carpentry == "dc" %} | |
<a href="{{ site.dc_site }}" class="pull-left"> | |
<img class="navbar-logo" src="{{ site.github.url }}/assets/img/dc-icon-black.svg" alt="Data Carpentry logo" /> | |
</a> | |
{% elsif site.carpentry == "swc" %} | |
<a href="{{ site.swc_site }}" class="pull-left"> | |
<img class="navbar-logo" src="{{ site.github.url }}/assets/img/swc-icon-blue.svg" alt="Software Carpentry logo" /> | |
</a> | |
{% elsif site.carpentry == "dc" %} | |
<a href="{{ site.dc_site }}" class="pull-left"> | |
<img class="navbar-logo" src="{{ site.github.url }}/assets/img/dc-icon-black.svg" alt="Data Carpentry logo" /> | |
</a> | |
{% endif %} | |
{% comment %} Always show link to home page. {% endcomment %} | |
<a class="navbar-brand" href="{{ site.github.url }}/">Home</a> | |
</div> | |
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> | |
<ul class="nav navbar-nav"> | |
{% comment %} Always show code of conduct. {% endcomment %} | |
<li><a href="{{ site.github.url }}/conduct/">Code of Conduct</a></li> | |
{% comment %} Show setup instructions, reference guide, and lesson episodes for lessons. {% endcomment %} | |
{% if site.kind == "lesson" %} | |
<li><a href="{{ site.github.url }}/setup/">Setup</a></li> | |
<li><a href="{{ site.github.url }}/reference/">Reference</a></li> | |
<li class="dropdown"> | |
<a href="{{ site.github.url }}/" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Episodes <span class="caret"></span></a> | |
<ul class="dropdown-menu"> | |
{% for episode in site.episodes %} | |
<li><a href="{{ site.github.url }}{{ episode.url }}">{{ episode.title }}</a></li> | |
{% endfor %} | |
</ul> | |
</li> | |
{% endif %} | |
{% comment %} Show extras for lessons or if this is the main workshop-template repo (where they contain documentation). {% endcomment %} | |
{% if site.kind == "lesson" or site.github.repository_name == "workshop-template" %} | |
<li class="dropdown"> | |
<a href="{{ site.github.url }}/" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Extras <span class="caret"></span></a> | |
<ul class="dropdown-menu"> | |
{% for extra in site.extras %} | |
<li><a href="{{ site.github.url }}{{ extra.url }}">{{ extra.title }}</a></li> | |
{% endfor %} | |
</ul> | |
</li> | |
{% endif %} | |
{% comment %} Always show license. {% endcomment %} | |
<li><a href="{{ site.github.url }}/license/">License</a></li> | |
</ul> | |
<form class="navbar-form navbar-right" role="search" id="search" onsubmit="google_search(); return false;"> | |
<div class="form-group"> | |
<input type="text" id="google-search" placeholder="Search..."> | |
</div> | |
</form> | |
</div> | |
</div> | |
</nav> |