625407e172bfe66ffe6f444214b191b6d09dcf63
[rnaseq-cwl-training.git] / _includes / episode_navbar.html
1 {% comment %}
2 Barra de navegación para un episodio.
3 =======
4 For some reason, the relative_root_path seems out of scope in this file, so we
5 need to re-assign it here
6 {% endcomment %}
7
8 {% include base_path.html %}
9
10 {% include manual_episode_order.html %}
11 {% comment %}
12     'previous_episode' and 'next_episodes' are defined in 'manual_episode_order.html'.
13     These replace 'page.previous' and 'page.next' objects, correspondingly.
14 {% endcomment %}
15
16 <div class="row">
17   <div class="col-xs-1">
18     <h3 class="text-left">
19       {% if previous_episode %}
20       <a href="{{ relative_root_path }}{{ previous_episode.url }}"><span class="glyphicon glyphicon-menu-left" aria-hidden="true"></span><span class="sr-only">previous episode</span></a>
21       {% else %}
22       <a href="{{ relative_root_path }}/"><span class="glyphicon glyphicon-menu-up" aria-hidden="true"></span><span class="sr-only">lesson home</span></a>
23       {% endif %}
24     </h3>
25   </div>
26   <div class="col-xs-10">
27     {% if include.episode_navbar_title %}
28     <h3 class="maintitle"><a href="{{ relative_root_path }}/">{{ site.title }}</a></h3>
29     {% endif %}
30   </div>
31   <div class="col-xs-1">
32     <h3 class="text-right">
33       {% if next_episode %}
34       <a href="{{ relative_root_path }}{{ next_episode.url }}"><span class="glyphicon glyphicon-menu-right" aria-hidden="true"></span><span class="sr-only">siguiente episodio</span></a>
35       {% else %}
36       <a href="{{ relative_root_path }}/"><span class="glyphicon glyphicon-menu-up" aria-hidden="true"></span><span class="sr-only">case de lección</span></a>
37       {% endif %}
38     </h3>
39   </div>
40 </div>