src/hdalab/templates/base.html
author rougeronj
Thu, 11 Dec 2014 12:01:04 +0100
changeset 398 b7df96dd742f
parent 387 f52a0abff76b
child 399 44d627c3a9fb
permissions -rw-r--r--
Close ticket #49 - add links to django and renkan admin for authorized users. TODO : improve profile page
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' %}" />
387
f52a0abff76b update header css file name
rougeronj
parents: 374
diff changeset
    17
        <link rel="stylesheet" type="text/css" href="{% static 'hdalab/css/header.css' %}" />
374
ad92df04d9ab update structure and design of the interface
rougeronj
parents: 329
diff changeset
    18
        <link rel="stylesheet" type="text/css" href="{% static 'hdalab/css/footer.css' %}" />
131
9d5d9e6b7fbf Created Home view for Hdalab
veltr
parents:
diff changeset
    19
{% endblock %}
9d5d9e6b7fbf Created Home view for Hdalab
veltr
parents:
diff changeset
    20
9d5d9e6b7fbf Created Home view for Hdalab
veltr
parents:
diff changeset
    21
{% block js_import %}
288
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents: 280
diff changeset
    22
        <script src="{% static 'hdalab/lib/jquery.min.js' %}"></script>
131
9d5d9e6b7fbf Created Home view for Hdalab
veltr
parents:
diff changeset
    23
{% endblock %}
9d5d9e6b7fbf Created Home view for Hdalab
veltr
parents:
diff changeset
    24
    </head>
9d5d9e6b7fbf Created Home view for Hdalab
veltr
parents:
diff changeset
    25
    <body>
9d5d9e6b7fbf Created Home view for Hdalab
veltr
parents:
diff changeset
    26
{% block header %}
374
ad92df04d9ab update structure and design of the interface
rougeronj
parents: 329
diff changeset
    27
		<header id="header">
ad92df04d9ab update structure and design of the interface
rougeronj
parents: 329
diff changeset
    28
			
ad92df04d9ab update structure and design of the interface
rougeronj
parents: 329
diff changeset
    29
			<div class="top">
ad92df04d9ab update structure and design of the interface
rougeronj
parents: 329
diff changeset
    30
				<div id="logo">
ad92df04d9ab update structure and design of the interface
rougeronj
parents: 329
diff changeset
    31
					<div class="row">
ad92df04d9ab update structure and design of the interface
rougeronj
parents: 329
diff changeset
    32
						<h1><a href="#"><img src="{% static 'hdalab/img/logo-hda.png' %}" alt="HdA Lab"></a></h1>
ad92df04d9ab update structure and design of the interface
rougeronj
parents: 329
diff changeset
    33
					</div>
ad92df04d9ab update structure and design of the interface
rougeronj
parents: 329
diff changeset
    34
				</div>
ad92df04d9ab update structure and design of the interface
rougeronj
parents: 329
diff changeset
    35
				<nav>
ad92df04d9ab update structure and design of the interface
rougeronj
parents: 329
diff changeset
    36
					<div class="row">
ad92df04d9ab update structure and design of the interface
rougeronj
parents: 329
diff changeset
    37
						<ul id="menu">
ad92df04d9ab update structure and design of the interface
rougeronj
parents: 329
diff changeset
    38
							<li class="{% block home_actif %}{% endblock %}"><a href="{% url 'home'  %}">Accueil</a></li>
ad92df04d9ab update structure and design of the interface
rougeronj
parents: 329
diff changeset
    39
							<li class="{% block facettes_actif %}{% endblock %}"><a href="{% url 'facettes' %}">Facettes</a></li>
ad92df04d9ab update structure and design of the interface
rougeronj
parents: 329
diff changeset
    40
							<li class="{% block categories_actif %}{% endblock %}"><a href="{% url 'categories' %}">Catégories de Wikipedia</a></li>
ad92df04d9ab update structure and design of the interface
rougeronj
parents: 329
diff changeset
    41
							<li class="{% block thesaurus_actif %}{% endblock %}"><a href="{% url 'thesaurus' %}">Thésaurus</a></li>
ad92df04d9ab update structure and design of the interface
rougeronj
parents: 329
diff changeset
    42
							<li class="{% block renkans_actif %}{% endblock %}"><a href="{% url 'renkan_public_list' %}">Renkan</a></li>
387
f52a0abff76b update header css file name
rougeronj
parents: 374
diff changeset
    43
							<li class="external"><a href="http://www.histoiredesarts.culture.fr/" target="_blank">Histoire des Arts</a></li>
374
ad92df04d9ab update structure and design of the interface
rougeronj
parents: 329
diff changeset
    44
ad92df04d9ab update structure and design of the interface
rougeronj
parents: 329
diff changeset
    45
						</ul>
ad92df04d9ab update structure and design of the interface
rougeronj
parents: 329
diff changeset
    46
						<ul id="menu" class="profile">
ad92df04d9ab update structure and design of the interface
rougeronj
parents: 329
diff changeset
    47
							{% if user.is_authenticated %}
ad92df04d9ab update structure and design of the interface
rougeronj
parents: 329
diff changeset
    48
	                			<li class="{% block profile_actif %}{% endblock %}"><a href="{% url 'profile_home' %}">{{ user.username }}</a></li>
ad92df04d9ab update structure and design of the interface
rougeronj
parents: 329
diff changeset
    49
	                			<li><a href="{% url 'logout' %}?next={% url 'home' %}">{% trans "Log out" %}</a></li>
ad92df04d9ab update structure and design of the interface
rougeronj
parents: 329
diff changeset
    50
	              			{% else %}
387
f52a0abff76b update header css file name
rougeronj
parents: 374
diff changeset
    51
	                			<li class="{% block login_actif %}{% endblock %}"><a href="{% url 'login' %}">{% trans "Log in" %}</a></li>
374
ad92df04d9ab update structure and design of the interface
rougeronj
parents: 329
diff changeset
    52
	              			{% endif %}
ad92df04d9ab update structure and design of the interface
rougeronj
parents: 329
diff changeset
    53
						</ul>
ad92df04d9ab update structure and design of the interface
rougeronj
parents: 329
diff changeset
    54
					</div>
ad92df04d9ab update structure and design of the interface
rougeronj
parents: 329
diff changeset
    55
				</nav>
ad92df04d9ab update structure and design of the interface
rougeronj
parents: 329
diff changeset
    56
			</div>
ad92df04d9ab update structure and design of the interface
rougeronj
parents: 329
diff changeset
    57
			<div id="subhead">
ad92df04d9ab update structure and design of the interface
rougeronj
parents: 329
diff changeset
    58
				{% block subhead %}
ad92df04d9ab update structure and design of the interface
rougeronj
parents: 329
diff changeset
    59
				{% endblock %}
ad92df04d9ab update structure and design of the interface
rougeronj
parents: 329
diff changeset
    60
			</div>
ad92df04d9ab update structure and design of the interface
rougeronj
parents: 329
diff changeset
    61
		</header>
131
9d5d9e6b7fbf Created Home view for Hdalab
veltr
parents:
diff changeset
    62
{% endblock %}
9d5d9e6b7fbf Created Home view for Hdalab
veltr
parents:
diff changeset
    63
374
ad92df04d9ab update structure and design of the interface
rougeronj
parents: 329
diff changeset
    64
<main id="content" class="row">
ad92df04d9ab update structure and design of the interface
rougeronj
parents: 329
diff changeset
    65
	{% block main_content %}
ad92df04d9ab update structure and design of the interface
rougeronj
parents: 329
diff changeset
    66
	{% endblock %}
ad92df04d9ab update structure and design of the interface
rougeronj
parents: 329
diff changeset
    67
</main>
131
9d5d9e6b7fbf Created Home view for Hdalab
veltr
parents:
diff changeset
    68
9d5d9e6b7fbf Created Home view for Hdalab
veltr
parents:
diff changeset
    69
{% block footer %}
374
ad92df04d9ab update structure and design of the interface
rougeronj
parents: 329
diff changeset
    70
		<footer id="footer">
ad92df04d9ab update structure and design of the interface
rougeronj
parents: 329
diff changeset
    71
			<div class="nav">
ad92df04d9ab update structure and design of the interface
rougeronj
parents: 329
diff changeset
    72
				<div class="row">
ad92df04d9ab update structure and design of the interface
rougeronj
parents: 329
diff changeset
    73
					<ul>
387
f52a0abff76b update header css file name
rougeronj
parents: 374
diff changeset
    74
						<li><a href="#">A Propos</a></li>
f52a0abff76b update header css file name
rougeronj
parents: 374
diff changeset
    75
						<li><a href="#">Crédits</a></li>
374
ad92df04d9ab update structure and design of the interface
rougeronj
parents: 329
diff changeset
    76
						<li><a href="#">Mentions légales</a></li>
387
f52a0abff76b update header css file name
rougeronj
parents: 374
diff changeset
    77
						<li><a href="#">Contact</a></li>
374
ad92df04d9ab update structure and design of the interface
rougeronj
parents: 329
diff changeset
    78
					</ul>
ad92df04d9ab update structure and design of the interface
rougeronj
parents: 329
diff changeset
    79
				</div>
ad92df04d9ab update structure and design of the interface
rougeronj
parents: 329
diff changeset
    80
			</div>
ad92df04d9ab update structure and design of the interface
rougeronj
parents: 329
diff changeset
    81
			<img src="{% static 'hdalab/img/footer.png' %}" alt="" style="display:block;margin:0 auto;">
ad92df04d9ab update structure and design of the interface
rougeronj
parents: 329
diff changeset
    82
		</footer>
131
9d5d9e6b7fbf Created Home view for Hdalab
veltr
parents:
diff changeset
    83
{% endblock %}
301
3ec8fb1afed8 correct copy and delete renkan
cavaliet
parents: 293
diff changeset
    84
{% analytics %}
131
9d5d9e6b7fbf Created Home view for Hdalab
veltr
parents:
diff changeset
    85
    </body>
9d5d9e6b7fbf Created Home view for Hdalab
veltr
parents:
diff changeset
    86
</html>