src/hdalab/templates/base.html
changeset 279 177b508612f4
parent 272 1c774f7a0341
child 280 56d84b0c267f
--- a/src/hdalab/templates/base.html	Thu Jun 19 12:47:41 2014 +0200
+++ b/src/hdalab/templates/base.html	Fri Jun 20 13:10:39 2014 +0200
@@ -1,4 +1,5 @@
 {% load analytics %}
+{% load static %}
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{{LANGUAGE_CODE}}" lang="{{LANGUAGE_CODE}}">
@@ -7,15 +8,15 @@
         <meta http-equiv="Content-type" content="text/html;charset=UTF-8" />        
         <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
         <meta http-equiv="content-language" content="{{LANGUAGE_CODE}}" />
-        <link rel="SHORTCUT ICON" href="{{STATIC_URL}}hdalab/img/favicon.ico" />        
+        <link rel="SHORTCUT ICON" href="{% static 'hdalab/img/favicon.ico' %}" />        
         <title>{% block title %}HdA Lab{% endblock %}</title>
 
 {% block css_import %}
-        <link rel="stylesheet" type="text/css" href="{{STATIC_URL}}hdalab/css/common.css" />
+        <link rel="stylesheet" type="text/css" href="{% static 'hdalab/css/common.css' %}" />
 {% endblock %}
 
 {% block js_import %}
-        <script src="{{STATIC_URL}}hdalab/lib/jquery-1.7.1.min.js"></script>
+        <script src="{% static 'hdalab/lib/jquery-1.7.1.min.js' %}"></script>
 {% endblock %}
         
     </head>
@@ -24,15 +25,15 @@
 {% block header %}
         <div id="header">
             <ul id="nav">
-                <li><a class="{% block home_actif %}{% endblock %}" href="{% url home %}">Accueil</a></li>
+                <li><a class="{% block home_actif %}{% endblock %}" href="{% url 'home'  %}">Accueil</a></li>
                 <li>&mdash;</li>
                 <li>Navigation par&nbsp;:</li>
-                <li><a class="{% block facettes_actif %}{% endblock %}" href="{% url facettes %}">Facettes</a></li>
-                <li><a class="{% block categories_actif %}{% endblock %}" href="{% url categories %}">Catégories de Wikipedia</a></li>
-                <li><a class="{% block thesaurus_actif %}{% endblock %}" href="{% url thesaurus %}">Thésaurus</a></li>
+                <li><a class="{% block facettes_actif %}{% endblock %}" href="{% url 'facettes' %}">Facettes</a></li>
+                <li><a class="{% block categories_actif %}{% endblock %}" href="{% url 'categories' %}">Catégories de Wikipedia</a></li>
+                <li><a class="{% block thesaurus_actif %}{% endblock %}" href="{% url 'thesaurus' %}">Thésaurus</a></li>
             </ul>
             <h1>
-                <a href="{% url home %}">HdA Lab</a>
+                <a href="{% url 'home' %}">HdA Lab</a>
             </h1>
         </div>
         <div id="container">
@@ -51,12 +52,12 @@
                 </li>
                 <li>
                     <a href="http://culture.gouv.fr/" target="_blank">
-                        <img src="{{STATIC_URL}}hdalab/img/logo_mcc_blanc.png" />
+                        <img src="{% static 'hdalab/img/logo_mcc_blanc.png' %}" />
                     </a>
                 </li>
                 <li>
                     <a href="http://www.iri-research.org/" target="_blank">
-                        <img src="{{STATIC_URL}}hdalab/img/logo_iri_blanc.png" />
+                        <img src="{% static 'hdalab/img/logo_iri_blanc.png' %}" />
                     </a>
                 </li>
             </ul>