Correction template
[auf_savoirs_en_partage_django.git] / auf_savoirs_en_partage / templates / savoirs / informations.html
CommitLineData
2d10d74b
CR
1{% extends "container_base.html" %}
2
3{% block contenu %}
4<h4>Sources de données</h4>
5
6 <div class="zone-texte"><!--
7 @page { margin: 2cm }
8 P { margin-bottom: 0.21cm }
9-->
10
11{% for site, details in r.items %}
12<p style="margin-top: 15px; margin-bottom: 0px;">
13<span style="color: #bf153e;">
14 <strong>{{ site }}</strong>
15</span>
16<table width="100%">
736a2567 17 <tr><th width="150px">Type</th><td>{{ details.type|title }}</td></tr>
2d10d74b
CR
18 {% ifequal details.type "lodel" %}
19 {% ifequal details.acces "html" %}
e4d16192
CR
20 <tr><th>URL</th><td><a href="{{ details.url }}">
21 {{ details.url }}</a></td></tr>
2d10d74b
CR
22 {% endifequal %}
23 {% endifequal %}
24 {% ifequal details.type "oai" %}
25 {% ifequal details.acces "generic" %}
736a2567
CR
26 <tr><th>URL</th><td><a href="{{ details.url }}">
27 {{ details.url }}</a></td></tr>
2d10d74b
CR
28 {% endifequal %}
29 {% endifequal %}
30 {% ifequal details.type "pmb" %}
31 {% ifequal details.acces "export" %}
32 <tr><th>URL</th><td><a href="http://{{ details.host }}{{ details.base_url }}">
33 http://{{ details.host }}{{ details.base_url }}</a></td></tr>
34 <tr><th>Utilisateur</th><td>{{ details.username }}</td></tr>
35 <tr><th>Base de données</th><td>{{ details.db }}</td></tr>
36 {% endifequal %}
92c7413b 37 {% endifequal %}
736a2567
CR
38 <tr><th>Dernier moissonage</th>
39 {% if details.logs %}
40 <td>{{ details.logs.date }}, {{ details.logs.count }} articles.</td>
41 {% else %}
42 <td>Nouvelle source, moissonage sous peu.</td>
43 {% endif %}
44 </tr>
2d10d74b
CR
45</table>
46</p>
47{% empty %}
48<p style="margin-bottom: 0cm;">
49<span style="color: #bf153e;">
50 <strong>
51 <em>Une erreur s'est produite.</em>
52 </strong>
53</span>
54</p>
55{% endfor %}
56
57</div>
58{% endblock %}