Divide navigation box links in two groups
authorJuliette Belin <juliette.belin@logilab.fr>
Thu, 02 Feb 2017 15:51:23 +0100
changeset 60 a6fa6749d820
parent 59 1921d9575abe
child 61 43b191bd84aa
Divide navigation box links in two groups
data/cubes.sherpa.css
views/templates.py
views/templates/maintemplate.jinja2
--- a/data/cubes.sherpa.css	Fri Feb 03 13:48:31 2017 +0100
+++ b/data/cubes.sherpa.css	Thu Feb 02 15:51:23 2017 +0100
@@ -31,6 +31,10 @@
   text-decoration: none;
 }
 
+hr {
+  border-top: 1px solid #dedede;
+}
+
 /* nav bar */
 
 .nav .open > a,
--- a/views/templates.py	Fri Feb 03 13:48:31 2017 +0100
+++ b/views/templates.py	Thu Feb 02 15:51:23 2017 +0100
@@ -133,16 +133,18 @@
                      'label': _('Documentation technique')},
                 ],
                 'goTo_links': [
-                    {'url': self._cw.build_url('#'),
+                    {'url': self._cw.build_url('SEDAArchiveUnit'),
                      'label': _("Unites d'archive")},
                     {'url': self._cw.build_url('SEDAArchiveTransfer'),
-                     'label': _('Profils SEDA')},
+                     'label': _('Profils SEDA')}
+                ],
+                'navigation_Link':[
+                    {'url': self._cw.build_url('project'),
+                    'label': _('Le projet Sherpa')},
+                    {'url': self._cw.build_url('utilisation'),
+                     'label': _("Mode d'emploi")},
                     {'url': self._cw.build_url('seda'),
                       'label': _("Le SEDA")},
-                    {'url': self._cw.build_url('utilisation'),
-                     'label': _("Mode d'emploi")},
-                    {'url': self._cw.build_url('project'),
-                    'label': _('Le projet Sherpa')},
                 ]
             },
             'left_boxes': left_boxes_html,
--- a/views/templates/maintemplate.jinja2	Fri Feb 03 13:48:31 2017 +0100
+++ b/views/templates/maintemplate.jinja2	Thu Feb 02 15:51:23 2017 +0100
@@ -61,9 +61,16 @@
         </div>
         <div class="panel-body">
           <ul class="list-unstyled">
+            {% for page in side_box.navigation_Link %}
+            <li class="facetvalue"><a href='{{ page.url }}'> {{ page.label }}</a></li>
+            {% endfor %}
+            <hr />
             {% for page in side_box.goTo_links %}
             <li class="facetvalue"><a href='{{ page.url }}'> {{ page.label }}</a></li>
             {% endfor %}
+
+
+
           </ul>
         </div>
       </div>