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?
COmg-CO320-modelOrg/_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.
79 lines (69 sloc)
3.74 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
{% comment %} | |
Lesson navigation bar. | |
{% endcomment %} | |
{% include gh_variables.html %} | |
<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 %} Display the logo {% endcomment %} | |
<a href="{{ site.comanage_site }}" class="pull-left"> | |
<img class="navbar-logo" src="{{ relative_root_path }}{% link /assets/img/COmanage-Logo-LG-onWhite.png %}" alt="COmanage logo" /> | |
</a> | |
{% comment %} Always show link to home page. {% endcomment %} | |
<a class="navbar-brand" href="{{ relative_root_path }}{% link index.md %}">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="{{ relative_root_path }}{% link CODE_OF_CONDUCT.md %}">Code of Conduct</a></li> --> | |
{% if site.kind == "lesson" %} | |
{% comment %} Show setup instructions. {% endcomment %} | |
<li><a href="{{ relative_root_path }}{% link setup.md %}">Setup</a></li> | |
{% comment %} Show lesson episodes for lessons. {% endcomment %} | |
<li class="dropdown"> | |
<a href="{{ relative_root_path }}/" 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="{{ relative_root_path }}{{ episode.url }}">{{ episode.title }}</a></li> | |
{% endfor %} | |
<li role="separator" class="divider"></li> | |
<li><a href="{{ relative_root_path }}{% link aio.md %}">All in one page (Beta)</a></li> | |
</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" %} | |
<li class="dropdown"> | |
<a href="{{ relative_root_path }}/" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Extras <span class="caret"></span></a> | |
<ul class="dropdown-menu"> | |
<li><a href="{{ relative_root_path }}{% link reference.md %}">Reference</a></li> | |
{% for extra in site.extras %} | |
<li><a href="{{ relative_root_path }}{{ extra.url }}">{{ extra.title }}</a></li> | |
{% endfor %} | |
</ul> | |
</li> | |
{% endif %} | |
{% comment %} Always show license. {% endcomment %} | |
<li><a href="{{ relative_root_path }}{% link LICENSE.md %}">License</a></li> | |
{% if page.source %} | |
{% if page.source == "Rmd" %} | |
<li><a href="{{repo_url}}/edit/{{ default_branch }}/{{page.path|replace: "_episodes", "_episodes_rmd" | replace: ".md", ".Rmd"}}" data-checker-ignore>Improve this page <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span></a></li> | |
{% endif %} | |
{% else %} | |
<li><a href="{{repo_url}}/edit/{{ default_branch}}/{{page.path}}" data-checker-ignore>Improve this page <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span></a></li> | |
{% endif %} | |
</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..." aria-label="Google site search"> | |
</div> | |
</form> | |
</div> | |
</div> | |
</nav> |