2016-08-07 18:01:56 +02:00
|
|
|
<header class="md-header">
|
2016-09-11 19:00:53 +02:00
|
|
|
<nav class="md-header-nav md-grid">
|
2016-08-07 18:01:56 +02:00
|
|
|
<div class="md-flex">
|
|
|
|
<div class="md-flex__cell md-flex__cell--shrink">
|
2016-09-04 17:11:58 +02:00
|
|
|
<label class="md-icon md-icon--menu md-header-nav__icon" for="drawer"></label>
|
2016-01-28 23:27:15 +01:00
|
|
|
</div>
|
2016-09-11 19:00:53 +02:00
|
|
|
<div class="md-flex__cell md-flex__cell--stretch">
|
|
|
|
<span class="md-flex__ellipsis md-header-nav__title">
|
2016-08-07 18:01:56 +02:00
|
|
|
{{ page_title | default(site_name, true) }}
|
|
|
|
</span>
|
2016-01-28 23:27:15 +01:00
|
|
|
</div>
|
2016-09-23 11:56:25 +02:00
|
|
|
<div class="md-flex__cell md-flex__cell--shrink">
|
2016-09-04 17:11:58 +02:00
|
|
|
<label class="md-icon md-icon--search md-header-nav__icon" for="search"></label>
|
2016-09-23 11:56:25 +02:00
|
|
|
{% include "partials/search.html" %}
|
2016-09-11 19:58:22 +02:00
|
|
|
</div>
|
|
|
|
{% if "github." in repo_url %}
|
|
|
|
{% set platform = "md-source--github" %}
|
|
|
|
{% elif "gitlab." in repo_url %}
|
|
|
|
{% set platform = "md-source--gitlab" %}
|
|
|
|
{% elif "bitbucket." in repo_url %}
|
|
|
|
{% set platform = "md-source--bitbucket" %}
|
|
|
|
{% else %}
|
|
|
|
{% set platform = "" %}
|
|
|
|
{% endif %}
|
2016-09-11 19:00:53 +02:00
|
|
|
<div class="md-flex__cell md-flex__cell--shrink">
|
2016-09-11 19:58:22 +02:00
|
|
|
<a href="{{ repo_url }}" title="Go to repository" class="md-source {{ platform }}">
|
|
|
|
<div class="md-source__repository">{{ repo_name }}</div>
|
2016-09-23 11:56:25 +02:00
|
|
|
<ul class="md-source__facts">
|
|
|
|
<li class="md-source__fact">v0.2.4</li>
|
|
|
|
</ul>
|
2016-09-08 19:43:23 +02:00
|
|
|
</a>
|
|
|
|
</div>
|
2016-01-28 23:27:15 +01:00
|
|
|
</div>
|
2016-08-07 18:01:56 +02:00
|
|
|
</nav>
|
2016-09-23 11:56:25 +02:00
|
|
|
</header>
|