meso.tpl 3.74 KB
Newer Older
1
{% if header %}
2
3
4
<div class="meso">
    <div class="card">
        <div class="card-header">
5
            <h4>
6
7
            {% if meso['url'] %}
            <a href="{{ meso['url'] }}">{{ meso['name'] }}</a>
Roland Denis's avatar
Roland Denis committed
8
            {% else %}
9
            {{ meso['name'] }}
Roland Denis's avatar
Roland Denis committed
10
            {% endif %}
11
12
13
14
15
16
17
18
            {% if meso['gpscoordinates'] %}
            <div>
                <a href="https://www.openstreetmap.org/?mlat={{meso['gpscoordinates'][0]}}&mlon={{meso['gpscoordinates'][1]}}&zoom=16">
                <img src="../theme/img/position_full.png" alt="Position" title="Position" />
                </a>
            </div>
            {% endif %}
            </h4>
19
20
21
            <div class="plus-minus plus" onclick="$(this).closest('.card-header').find('.collapse').collapse('toggle'); $(this).toggleClass('plus minus')"></div>
            <p>
              {{ meso['shortdescription'] }}
22
            </p>
23
24
25
            <p class="collapse">
              {{ meso['fulldescription'] }}
            </p>
26

27
28
        </div>
        <div class="card-body">
29
            <div class="plus-minus plus" onclick="$(this).closest('.card-body').find('.collapse').collapse('toggle'); $(this).toggleClass('plus minus')"></div>
30
            {% if meso['contactname'] %}
31
                <p><img src="../theme/img/mail.png" alt="Contact" title="Contact" />
32
33
34
35
36
                {% if meso['contactaddress'] %}
                <a href="mailto:{{ meso['contactaddress'] }}">{{ meso['contactname'] }}</a>
                {% else %}
                {{ meso['contactname'] }}
                {% endif %}
Roland Denis's avatar
Roland Denis committed
37
                </p>
38
            {% endif %}
39
            {% if meso['institutesname'] %}
40
                <p><img src="../theme/img/employer.png" alt="Institutions" title="Institutions" />
41
                {{ meso['institutesname'] | join_names }}
Roland Denis's avatar
Roland Denis committed
42
                </p>
43
44
            {% endif %}
            {% if meso['financersname'] %}
45
                <p><img src="../theme/img/piggy_bank.png" alt="Financeurs" title="Financeurs" />
46
                {{ meso['financersname'] | join_names }}
Roland Denis's avatar
Roland Denis committed
47
                </p>
48
            {% endif %}
49
            {% if meso['accesspolicy'] %}
50
                <p><img src="../theme/img/contract.png" alt="Conditions d'accès" title="Conditions d'accès" />
51
                {{ meso['accesspolicy'] | join_sentences }}
Roland Denis's avatar
Roland Denis committed
52
                </p>
53
            {% endif %}
54
55
56
57
58
59
            {% if meso['servicename'] %}
                <p><img src="../theme/img/services.png" alt="Services proposés" title="Services proposés" />
                {{ meso['servicename'] | join_sentences }}
                </p>
            {% endif %}

60
        </div>
61
        <div class="card-body row">
62
            {% if meso['mesocorenumber'] %}
Roland Denis's avatar
Roland Denis committed
63
                <p class="col-sm"><img src="../theme/img/cpu.png" alt="Nombre de cœurs" title="Nombre de cœurs" />
64
                {{ meso['mesocorenumber'] }} cœurs
Roland Denis's avatar
Roland Denis committed
65
                </p>
66
            {% endif %}
67
            {% if meso['mesoramsize'] %}
Roland Denis's avatar
Roland Denis committed
68
                <p class="col-sm"><img src="../theme/img/memory.png" alt="Mémoire" title="Mémoire" />
69
                {{ meso['mesoramsize'] | format_storage(3) }}
Roland Denis's avatar
Roland Denis committed
70
71
                </p>
            {% endif %}
72
            {% if meso['mesogpunumber'] %}
Roland Denis's avatar
Roland Denis committed
73
                <p class="col-sm"><img src="../theme/img/gpu.png" alt="Nombre de GPUs" title="Nombre de GPUs"/>
74
                {{ meso['mesogpunumber'] }}
Roland Denis's avatar
Roland Denis committed
75
76
                </p>
            {% endif %}
77
            {% if meso['mesostoragesize'] %}
78
                <p class="col-sm"><img src="../theme/img/storage.png" alt="Stockage" title="Stockage"/>
79
                {{ meso['mesostoragesize'] | format_storage(4) }}
Roland Denis's avatar
Roland Denis committed
80
                </p>
81
82
            {% endif %}
        </div>
83
84
        <div>
{% endif %}
85
{% if footer %}
86
87
        </div>
        <div class="card-footer">
88
        </div>
Roland Denis's avatar
Roland Denis committed
89
90
    </div>
</div>
91
{% endif %}