[static] Add page displaying seda 2 schema
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 18 Apr 2017 11:56:29 +0200
changeset 279 9a9fd52ed6a1
parent 278 cf896571c7b2
child 283 d359ca9b69b3
[static] Add page displaying seda 2 schema using image provided by the SIAF. Page was already (erroneously) referenced from the template.
cubicweb_sherpa/data/images/seda2_datamodel.png
cubicweb_sherpa/views/__init__.py
cubicweb_sherpa/views/templates.py
cubicweb_sherpa/views/templates/schema_seda.jinja2.html
Binary file cubicweb_sherpa/data/images/seda2_datamodel.png has changed
--- a/cubicweb_sherpa/views/__init__.py	Tue Apr 18 11:49:36 2017 +0200
+++ b/cubicweb_sherpa/views/__init__.py	Tue Apr 18 11:56:29 2017 +0200
@@ -78,6 +78,7 @@
 ProjectView = jinja_static_view('project', u'Sherpa un générateur de profils')
 UtilisationView = jinja_static_view('utilisation', u'Pour commencer')
 SedaView = jinja_static_view('seda', u'Le SEDA')
+Seda2SchemaView = jinja_static_view('schema_seda', u'Schéma du SEDA 2')
 AProposView = jinja_static_view('apropos', u'À propos')
 ContactView = jinja_static_view('contact', 'Contact')
 
--- a/cubicweb_sherpa/views/templates.py	Tue Apr 18 11:49:36 2017 +0200
+++ b/cubicweb_sherpa/views/templates.py	Tue Apr 18 11:56:29 2017 +0200
@@ -118,7 +118,7 @@
             'boxes': boxes,
             'footer': {
                 'resources': [
-                    {'url': url('shema_seda'),
+                    {'url': url('schema_seda'),
                      'label': u'Schéma du SEDA 2.0'},
                     {'url': url('dictionnaire'),
                      'label': 'Dictionnaire des balises'},
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cubicweb_sherpa/views/templates/schema_seda.jinja2.html	Tue Apr 18 11:56:29 2017 +0200
@@ -0,0 +1,6 @@
+<h1>{{ title }}</h1>
+<section>
+  <div>
+    <img class="img-responsive project-image" src="{{ data_url }}images/seda2_datamodel.png"/>
+  </div>
+</section>