src/hdalab/templates/base.html
author cavaliet
Wed, 16 Jul 2014 15:15:50 +0200
changeset 293 b33caeba7faa
parent 288 0bb9c29cd41d
child 301 3ec8fb1afed8
permissions -rw-r--r--
profile page first step
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
170
cb3e869ab252 Add google analytics
ymh <ymh.work@gmail.com>
parents: 135
diff changeset
     1
{% load analytics %}
293
b33caeba7faa profile page first step
cavaliet
parents: 288
diff changeset
     2
{% load i18n %}
279
177b508612f4 add, configure and correct hdalab to installed apps
cavaliet
parents: 272
diff changeset
     3
{% load static %}
135
dd6578e36a57 translate interface
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
     4
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
dd6578e36a57 translate interface
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
     5
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
dd6578e36a57 translate interface
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
     6
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{{LANGUAGE_CODE}}" lang="{{LANGUAGE_CODE}}">
131
9d5d9e6b7fbf Created Home view for Hdalab
veltr
parents:
diff changeset
     7
    <head>
9d5d9e6b7fbf Created Home view for Hdalab
veltr
parents:
diff changeset
     8
        <meta charset="utf-8" />
135
dd6578e36a57 translate interface
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
     9
        <meta http-equiv="Content-type" content="text/html;charset=UTF-8" />        
131
9d5d9e6b7fbf Created Home view for Hdalab
veltr
parents:
diff changeset
    10
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
135
dd6578e36a57 translate interface
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    11
        <meta http-equiv="content-language" content="{{LANGUAGE_CODE}}" />
279
177b508612f4 add, configure and correct hdalab to installed apps
cavaliet
parents: 272
diff changeset
    12
        <link rel="SHORTCUT ICON" href="{% static 'hdalab/img/favicon.ico' %}" />        
131
9d5d9e6b7fbf Created Home view for Hdalab
veltr
parents:
diff changeset
    13
        <title>{% block title %}HdA Lab{% endblock %}</title>
9d5d9e6b7fbf Created Home view for Hdalab
veltr
parents:
diff changeset
    14
9d5d9e6b7fbf Created Home view for Hdalab
veltr
parents:
diff changeset
    15
{% block css_import %}
279
177b508612f4 add, configure and correct hdalab to installed apps
cavaliet
parents: 272
diff changeset
    16
        <link rel="stylesheet" type="text/css" href="{% static 'hdalab/css/common.css' %}" />
131
9d5d9e6b7fbf Created Home view for Hdalab
veltr
parents:
diff changeset
    17
{% endblock %}
9d5d9e6b7fbf Created Home view for Hdalab
veltr
parents:
diff changeset
    18
9d5d9e6b7fbf Created Home view for Hdalab
veltr
parents:
diff changeset
    19
{% block js_import %}
288
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents: 280
diff changeset
    20
        <script src="{% static 'hdalab/lib/jquery.min.js' %}"></script>
131
9d5d9e6b7fbf Created Home view for Hdalab
veltr
parents:
diff changeset
    21
{% endblock %}
9d5d9e6b7fbf Created Home view for Hdalab
veltr
parents:
diff changeset
    22
        
9d5d9e6b7fbf Created Home view for Hdalab
veltr
parents:
diff changeset
    23
    </head>
9d5d9e6b7fbf Created Home view for Hdalab
veltr
parents:
diff changeset
    24
    <body>
9d5d9e6b7fbf Created Home view for Hdalab
veltr
parents:
diff changeset
    25
9d5d9e6b7fbf Created Home view for Hdalab
veltr
parents:
diff changeset
    26
{% block header %}
132
e6483309fa52 style changes and minor corrections
veltr
parents: 131
diff changeset
    27
        <div id="header">
131
9d5d9e6b7fbf Created Home view for Hdalab
veltr
parents:
diff changeset
    28
            <ul id="nav">
279
177b508612f4 add, configure and correct hdalab to installed apps
cavaliet
parents: 272
diff changeset
    29
                <li><a class="{% block home_actif %}{% endblock %}" href="{% url 'home'  %}">Accueil</a></li>
252
a46461f8a74f Separated Thesaurus and WP Categories
veltr
parents: 250
diff changeset
    30
                <li>&mdash;</li>
a46461f8a74f Separated Thesaurus and WP Categories
veltr
parents: 250
diff changeset
    31
                <li>Navigation par&nbsp;:</li>
279
177b508612f4 add, configure and correct hdalab to installed apps
cavaliet
parents: 272
diff changeset
    32
                <li><a class="{% block facettes_actif %}{% endblock %}" href="{% url 'facettes' %}">Facettes</a></li>
177b508612f4 add, configure and correct hdalab to installed apps
cavaliet
parents: 272
diff changeset
    33
                <li><a class="{% block categories_actif %}{% endblock %}" href="{% url 'categories' %}">Catégories de Wikipedia</a></li>
177b508612f4 add, configure and correct hdalab to installed apps
cavaliet
parents: 272
diff changeset
    34
                <li><a class="{% block thesaurus_actif %}{% endblock %}" href="{% url 'thesaurus' %}">Thésaurus</a></li>
293
b33caeba7faa profile page first step
cavaliet
parents: 288
diff changeset
    35
                <li>&mdash;</li>
b33caeba7faa profile page first step
cavaliet
parents: 288
diff changeset
    36
              {% if user.is_authenticated %}
b33caeba7faa profile page first step
cavaliet
parents: 288
diff changeset
    37
                <li><a href="{% url 'profile_home' %}">{{ user.username }}</a></li>
b33caeba7faa profile page first step
cavaliet
parents: 288
diff changeset
    38
                <li><a href="{% url 'logout' %}?next={% url 'home' %}">{% trans "Log out" %}</a></li>
b33caeba7faa profile page first step
cavaliet
parents: 288
diff changeset
    39
              {% else %}
b33caeba7faa profile page first step
cavaliet
parents: 288
diff changeset
    40
                <li class="hello-user"><a href="{% url 'login' %}">{% trans "Log in" %}</a></li>
b33caeba7faa profile page first step
cavaliet
parents: 288
diff changeset
    41
              {% endif %}
131
9d5d9e6b7fbf Created Home view for Hdalab
veltr
parents:
diff changeset
    42
            </ul>
207
44ddbffbfea5 Added Wikipedia categories to home
veltr
parents: 205
diff changeset
    43
            <h1>
279
177b508612f4 add, configure and correct hdalab to installed apps
cavaliet
parents: 272
diff changeset
    44
                <a href="{% url 'home' %}">HdA Lab</a>
207
44ddbffbfea5 Added Wikipedia categories to home
veltr
parents: 205
diff changeset
    45
            </h1>
132
e6483309fa52 style changes and minor corrections
veltr
parents: 131
diff changeset
    46
        </div>
e6483309fa52 style changes and minor corrections
veltr
parents: 131
diff changeset
    47
        <div id="container">
131
9d5d9e6b7fbf Created Home view for Hdalab
veltr
parents:
diff changeset
    48
{% endblock %}
9d5d9e6b7fbf Created Home view for Hdalab
veltr
parents:
diff changeset
    49
9d5d9e6b7fbf Created Home view for Hdalab
veltr
parents:
diff changeset
    50
{% block main_content %}
9d5d9e6b7fbf Created Home view for Hdalab
veltr
parents:
diff changeset
    51
9d5d9e6b7fbf Created Home view for Hdalab
veltr
parents:
diff changeset
    52
{% endblock %}
9d5d9e6b7fbf Created Home view for Hdalab
veltr
parents:
diff changeset
    53
9d5d9e6b7fbf Created Home view for Hdalab
veltr
parents:
diff changeset
    54
{% block footer %}
9d5d9e6b7fbf Created Home view for Hdalab
veltr
parents:
diff changeset
    55
        </div>
132
e6483309fa52 style changes and minor corrections
veltr
parents: 131
diff changeset
    56
        <div id="footer">
e6483309fa52 style changes and minor corrections
veltr
parents: 131
diff changeset
    57
            <ul id="footer-contents">
e6483309fa52 style changes and minor corrections
veltr
parents: 131
diff changeset
    58
                <li>
e6483309fa52 style changes and minor corrections
veltr
parents: 131
diff changeset
    59
                    <p>Une expérimentation de l'Institut de Recherche et d'Innovation et du Ministère de la Culture et de la Communication</p>
e6483309fa52 style changes and minor corrections
veltr
parents: 131
diff changeset
    60
                </li>
e6483309fa52 style changes and minor corrections
veltr
parents: 131
diff changeset
    61
                <li>
e6483309fa52 style changes and minor corrections
veltr
parents: 131
diff changeset
    62
                    <a href="http://culture.gouv.fr/" target="_blank">
279
177b508612f4 add, configure and correct hdalab to installed apps
cavaliet
parents: 272
diff changeset
    63
                        <img src="{% static 'hdalab/img/logo_mcc_blanc.png' %}" />
132
e6483309fa52 style changes and minor corrections
veltr
parents: 131
diff changeset
    64
                    </a>
e6483309fa52 style changes and minor corrections
veltr
parents: 131
diff changeset
    65
                </li>
e6483309fa52 style changes and minor corrections
veltr
parents: 131
diff changeset
    66
                <li>
e6483309fa52 style changes and minor corrections
veltr
parents: 131
diff changeset
    67
                    <a href="http://www.iri-research.org/" target="_blank">
279
177b508612f4 add, configure and correct hdalab to installed apps
cavaliet
parents: 272
diff changeset
    68
                        <img src="{% static 'hdalab/img/logo_iri_blanc.png' %}" />
132
e6483309fa52 style changes and minor corrections
veltr
parents: 131
diff changeset
    69
                    </a>
e6483309fa52 style changes and minor corrections
veltr
parents: 131
diff changeset
    70
                </li>
e6483309fa52 style changes and minor corrections
veltr
parents: 131
diff changeset
    71
            </ul>
e6483309fa52 style changes and minor corrections
veltr
parents: 131
diff changeset
    72
        </div>
131
9d5d9e6b7fbf Created Home view for Hdalab
veltr
parents:
diff changeset
    73
{% endblock %}
170
cb3e869ab252 Add google analytics
ymh <ymh.work@gmail.com>
parents: 135
diff changeset
    74
    {% analytics %}
131
9d5d9e6b7fbf Created Home view for Hdalab
veltr
parents:
diff changeset
    75
    </body>
9d5d9e6b7fbf Created Home view for Hdalab
veltr
parents:
diff changeset
    76
</html>