License is not a copyright. License info ID (#472)
[rnaseq-cwl-training.git] / _includes / lesson_footer.html
index d5c9ad9f45c6b812953937d623997f41afa83ae8..b0eb29912ed1f9bf3df02ab2d7e7c97d700a4a3c 100644 (file)
@@ -1,27 +1,54 @@
+{% comment %}
+  Footer for lesson pages.
+{% endcomment %}
+
+{% include gh_variables.html %}
+
 <footer>
   <div class="row">
-    <div class="col-md-6" align="left">
-      <h4>
-       Copyright &copy; 2016
+    <div class="col-md-6 license" id="license-info" align="left">
        {% if site.carpentry == "swc" %}
-       <a href="{{ site.swc_site }}">Software Carpentry Foundation</a>
+       Licensed under <a href="{{ site.cc_by_human }}">CC-BY 4.0</a> 2018–{{ 'now' | date: "%Y" }}
+       by <a href="{{ site.carpentries_site }}">The Carpentries</a>
+        <br>
+        Licensed under <a href="{{ site.cc_by_human }}">CC-BY 4.0</a> 2016–2018
+       by <a href="{{ site.swc_site }}">Software Carpentry Foundation</a>
        {% elsif site.carpentry == "dc" %}
-       <a href="{{ site.dc_site }}">Data Carpentry</a>
+       Licensed under <a href="{{ site.cc_by_human }}">CC-BY 4.0</a> 2018–{{ 'now' | date: "%Y" }}
+       by <a href="{{ site.carpentries_site }}">The Carpentries</a>
+        <br>
+        Licensed under <a href="{{ site.cc_by_human }}">CC-BY 4.0</a> 2016–2018
+       by <a href="{{ site.dc_site }}">Data Carpentry</a>
        {% elsif site.carpentry == "lc" %}
-       <a href="{{ site.dc_site }}">Library Carpentry</a>
+       Licensed under <a href="{{ site.cc_by_human }}">CC-BY 4.0</a> 2016–{{ 'now' | date: "%Y" }}
+       by <a href="{{ site.lc_site }}">Library Carpentry</a>
+       {% elsif site.carpentry == "cp" %}
+       Licensed under <a href="{{ site.cc_by_human }}">CC-BY 4.0</a> 2018–{{ 'now' | date: "%Y" }}
+       by <a href="{{ site.carpentries_site }}">The Carpentries</a>
        {% endif %}
-      </h4>
     </div>
-    <div class="col-md-6" align="right">
-      <h4>
-       <a href="{{ site.github.repository_url }}/">Source</a>
+    <div class="col-md-6 help-links" align="right">
+       {% if page.source %}
+       {% if page.source == "Rmd" %}
+       <a href="{{repo_url}}/edit/{{ default_branch }}/{{page.path|replace: "_episodes", "_episodes_rmd" | replace: ".md", ".Rmd"}}" data-checker-ignore>Edit on GitHub</a>
+       {% endif %}
+       {% else %}
+       <a href="{{repo_url}}/edit/{{ default_branch }}/{{page.path}}" data-checker-ignore>Edit on GitHub</a>
+       {% endif %}
+       /
+       <a href="{{ repo_url }}/blob/{{ source_branch }}/CONTRIBUTING.md" data-checker-ignore>Contributing</a>
        /
-       <a href="{{ site.github.repository_url }}/blob/gh-pages/CONTRIBUTING.md">Contributing</a>
+       <a href="{{ repo_url }}/">Source</a>
        /
-       <a href="{{ site.github.repository_url }}/blob/gh-pages/CITATION">Cite</a>
+       <a href="{{ repo_url }}/blob/{{ source_branch }}/CITATION" data-checker-ignore>Cite</a>
        /
-       <a href="mailto:{{ site.contact }}">Contact</a>
-      </h4>
+       <a href="mailto:{{ site.email }}">Contact</a>
+    </div>
+  </div>
+  <div class="row">
+    <div class="col-md-12" align="center">
+      Using <a href="https://github.com/carpentries/styles/">The Carpentries style</a>
+      version <a href="https://github.com/carpentries/styles/releases/tag/v9.5.3">9.5.3</a>.
     </div>
   </div>
 </footer>