| author | ymh <ymh.work@gmail.com> |
| Fri, 19 Jul 2024 09:38:03 +0200 | |
| changeset 704 | b5835dca2624 |
| parent 620 | f45d7494332e |
| 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}} |
|
|
620
f45d7494332e
upgrade renkan, correct tagcloud, migrate to lodash
ymh <ymh.work@gmail.com>
parents:
599
diff
changeset
|
13 |
<script src="{% static 'hdalab/lib/lodash.min.js' %}"></script> |
|
279
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> |
| 345 | 21 |
<img src="http://histoiredesarts.culture.fr/images/gf/{{datasheet.hda_id}}.jpg" /> |
| 253 | 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"> |
|
| 599 | 46 |
{% if ds.hda_id %} |
| 345 | 47 |
<img src="http://histoiredesarts.culture.fr/images/pf/{{ds.hda_id}}.jpg" /> |
|
279
177b508612f4
add, configure and correct hdalab to installed apps
cavaliet
parents:
271
diff
changeset
|
48 |
<h3><a href="{% url 'notice' ds.hda_id %}">{{ds.title}}</a></h3> |
| 599 | 49 |
{% else %} |
50 |
<h3>{{ds.title}}</h3> |
|
51 |
{% endif %} |
|
| 253 | 52 |
<h4>{{ds.organisation_name}}</h4> |
53 |
<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> |
|
54 |
</li> |
|
55 |
{% endfor %} |
|
56 |
</ul> |
|
57 |
</div> |
|
|
620
f45d7494332e
upgrade renkan, correct tagcloud, migrate to lodash
ymh <ymh.work@gmail.com>
parents:
599
diff
changeset
|
58 |
|
|
f45d7494332e
upgrade renkan, correct tagcloud, migrate to lodash
ymh <ymh.work@gmail.com>
parents:
599
diff
changeset
|
59 |
{% endblock %} |