[PATCH 1 of 2 sherpa] [templates] Use relative URLs when target is an internal anchor

Sylvain Thenault sylvain.thenault at logilab.fr
Fri Mar 3 16:26:34 CET 2017


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1488554463 -3600
#      Fri Mar 03 16:21:03 2017 +0100
# Node ID 80eb000ff2eaa5856835dfdf28eb535c3f9a1a31
# Parent  3c3f5adeb0c683d8d6f65a7547bafe167ab9ff56
[templates] Use relative URLs when target is an internal anchor

diff --git a/cubicweb_sherpa/views/templates/index.jinja2.html b/cubicweb_sherpa/views/templates/index.jinja2.html
--- a/cubicweb_sherpa/views/templates/index.jinja2.html
+++ b/cubicweb_sherpa/views/templates/index.jinja2.html
@@ -6,20 +6,20 @@
     <p>
 SHERPA est un outil qui permet de créer des profils d'archivage conformes au standard d'échange (SEDA) en mode collaboratif.
     </p>
     <div id="anchors-wrapper">
       <div class="col-md-3">
-        <a href="{{base_url}}#commencer" class="btn btn-default">Commencer <br /><span class="anchor-part">tout de suite</span></a>
+        <a href="#commencer" class="btn btn-default">Commencer <br /><span class="anchor-part">tout de suite</span></a>
       </div>
       <div class="col-md-3">
-        <a href="{{base_url}}#project" class="btn btn-default">Savoir <br /><span class="anchor-part">ce qu'est un profil</span></a>
+        <a href="#project" class="btn btn-default">Savoir <br /><span class="anchor-part">ce qu'est un profil</span></a>
       </div>
       <div class="col-md-3">
-        <a href="{{base_url}}#seda" class="btn btn-default">En savoir plus <br /><span class="anchor-part">sur la norme SEDA</span></a>
+        <a href="#seda" class="btn btn-default">En savoir plus <br /><span class="anchor-part">sur la norme SEDA</span></a>
       </div>
       <div class="col-md-3">
-        <a href="{{base_url}}#utilisation" class="btn btn-default">Découvrir <br /><span class="anchor-part">quelques clés du SHERPA</span></a>
+        <a href="#utilisation" class="btn btn-default">Découvrir <br /><span class="anchor-part">quelques clés du SHERPA</span></a>
       </div>
     </div>
   </section>
 
 


More information about the saem-devel mailing list