Correction template
[auf_savoirs_en_partage_django.git] / auf_savoirs_en_partage / templates / savoirs / informations.html
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%">
17 <tr><th width="150px">Type</th><td>{{ details.type|title }}</td></tr>
18 {% ifequal details.type "lodel" %}
19 {% ifequal details.acces "html" %}
20 <tr><th>URL</th><td><a href="{{ details.url }}">
21 {{ details.url }}</a></td></tr>
22 {% endifequal %}
23 {% endifequal %}
24 {% ifequal details.type "oai" %}
25 {% ifequal details.acces "generic" %}
26 <tr><th>URL</th><td><a href="{{ details.url }}">
27 {{ details.url }}</a></td></tr>
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 %}
37 {% endifequal %}
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>
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 %}