changeset 1:1b6f12b8a54b

license in footer
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 22 Apr 2016 14:18:42 +0200
parents 901e8961f46e
children eedc7e9fea4e
files Sphinx/source/_templates/layout.html Sphinx/source/conf.py
diffstat 2 files changed, 31 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/Sphinx/source/_templates/layout.html	Fri Apr 22 12:57:38 2016 +0200
+++ b/Sphinx/source/_templates/layout.html	Fri Apr 22 14:18:42 2016 +0200
@@ -4,15 +4,35 @@
 {# Custom CSS overrides #}
 {% set bootswatch_css_custom = ['_static/orthanc.css'] %}
 
+
 {% block footer %}
-    {{ super() }}
-    <!-- Google Analytics -->
-    <script>
-      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
-      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
-      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
-      })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
-      ga('create', 'UA-33455438-2', 'orthanc-server.com');
-      ga('send', 'pageview');
-    </script>
+<footer class="footer">
+  <div class="container">
+    <p class="pull-right">
+      <a href="#">Back to top</a>
+      {% if theme_source_link_position == "footer" %}
+      <br/>
+      {% include "sourcelink.html" %}
+      {% endif %}
+    </p>
+    <p>
+
+      &copy; Copyright 2015-2016, University Hospital of Liège and Osimis, Belgium<br/>
+      The Orthanc Book is licensed under
+      <a href="http://creativecommons.org/licenses/by-sa/4.0/" target="_blank">Creative 
+        Commons CC-BY-SA 4.0</a>.<br/>
+      {% trans sphinx_version=sphinx_version|e %}Created using <a href="http://sphinx-doc.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %}<br/>
+    </p>
+  </div>
+</footer>
+
+<!-- Google Analytics -->
+<script>
+  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+  ga('create', 'UA-33455438-2', 'orthanc-server.com');
+  ga('send', 'pageview');
+</script>
 {% endblock %}
--- a/Sphinx/source/conf.py	Fri Apr 22 12:57:38 2016 +0200
+++ b/Sphinx/source/conf.py	Fri Apr 22 14:18:42 2016 +0200
@@ -49,7 +49,7 @@
 
 # General information about the project.
 project = u'Orthanc Book'
-copyright = u'2015-2016, University Hospital of Liège and Osimis, Belgium'
+copyright = u''  # Copyright is set in "_templates/layout.html"
 author = u''
 
 # The version info for the project you're documenting, acts as replacement for