| author | ymh <ymh.work@gmail.com> |
| Wed, 30 Jul 2014 14:57:51 +0200 | |
| changeset 306 | e091c7ea3f90 |
| parent 279 | 177b508612f4 |
| child 345 | 7bc38c7d6cf9 |
| permissions | -rw-r--r-- |
| 253 | 1 |
{% extends "base.html" %} |
|
279
177b508612f4
add, configure and correct hdalab to installed apps
cavaliet
parents:
271
diff
changeset
|
2 |
{% load static %} |
| 253 | 3 |
|
4 |
{% block title %}{{block.super}} > {{datasheet.title}}{% endblock %} |
|
5 |
||
6 |
{% block css_import %} |
|
7 |
{{block.super}} |
|
|
279
177b508612f4
add, configure and correct hdalab to installed apps
cavaliet
parents:
271
diff
changeset
|
8 |
<link rel="stylesheet" type="text/css" href="{% static 'hdalab/css/notice.css?refresh' %}" /> |
| 253 | 9 |
{% endblock %} |
10 |
||
11 |
{% block js_import %} |
|
12 |
{{block.super}} |
|
|
279
177b508612f4
add, configure and correct hdalab to installed apps
cavaliet
parents:
271
diff
changeset
|
13 |
<script src="{% static 'hdalab/lib/underscore-min.js' %}"></script> |
|
177b508612f4
add, configure and correct hdalab to installed apps
cavaliet
parents:
271
diff
changeset
|
14 |
<script src="{% static 'hdalab/js/notice.js?refresh' %}"></script> |
| 253 | 15 |
{% endblock %} |
16 |
||
17 |
{% block main_content %} |
|
18 |
<div class="main-datasheet"> |
|
| 261 | 19 |
<h2><a href="{{datasheet.url}}" target="_blank">{{datasheet.title}}</a></h2> |
| 253 | 20 |
<h3><a href="{{datasheet.organisation.website}}" target="_blank">{{datasheet.organisation.name}}</a></h3> |
21 |
<img src="http://histoiredesarts.culture.fr/images/cached/images/{{datasheet.hda_id}}.jpg" /> |
|
22 |
<p>{{datasheet.description}}</p> |
|
23 |
<ul> |
|
| 261 | 24 |
<li>Accéder à cette ressource sur <a href="{{datasheet.url}}" target="_blank">{{domain}}</a></li> |
| 253 | 25 |
<li>Plus d'informations sur <a href="http://histoiredesarts.culture.fr/notices/{{datasheet.hda_id}}/" target="_blank">histoiredesarts.culture.fr</a></li> |
26 |
</ul> |
|
27 |
</div> |
|
28 |
||
29 |
<div class="tag-container"> |
|
30 |
<canvas class="tag-canvas"></canvas> |
|
31 |
<div class="tags-main"> |
|
32 |
<h2>Mots-clés</h2> |
|
33 |
<ul class="tags"> |
|
34 |
{% for t in ordered_tags %} |
|
35 |
<li><span class="main-datasheet-tag" data-tag-id="{{t.tag.id}}">{{t.tag.label}}</span></li> |
|
36 |
{% endfor %} |
|
37 |
</ul> |
|
38 |
</div> |
|
39 |
</div> |
|
40 |
||
41 |
<div class="related-datasheets"> |
|
42 |
<h2>Notices liées :</h2> |
|
43 |
<ul class="datasheets"> |
|
44 |
{% for ds in related %} |
|
45 |
<li class="datasheet"> |
|
46 |
<img src="http://histoiredesarts.culture.fr/images/cached/images/{{ds.hda_id}}.jpg" /> |
|
|
279
177b508612f4
add, configure and correct hdalab to installed apps
cavaliet
parents:
271
diff
changeset
|
47 |
<h3><a href="{% url 'notice' ds.hda_id %}">{{ds.title}}</a></h3> |
| 253 | 48 |
<h4>{{ds.organisation_name}}</h4> |
49 |
<ul class="datasheet-tags">{% for t in ds.ordered_tags %}<li data-tag-id="{{t.id}}" class="related-datasheet-tag {% if t.common %} common-tag{% endif %}">{{t.label}}</li>{% endfor %}</ul> |
|
50 |
</li> |
|
51 |
{% endfor %} |
|
52 |
</ul> |
|
53 |
</div> |
|
54 |
||
55 |
{% endblock %} |