meso.tpl 3.14 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
19
20
21
22
            {% 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>
            <p>
{% endif %}
{% if footer %}
            </p>
23
24
        </div>
        <div class="card-body">
25
            <div class="plus-minus plus" onclick="$(this).closest('.card-body').find('.collapse').collapse('toggle'); $(this).toggleClass('plus minus')"></div>
26
            {% if meso['contactname'] %}
27
                <p><img src="../theme/img/mail.png" alt="Contact" title="Contact" />
28
29
30
31
32
                {% if meso['contactaddress'] %}
                <a href="mailto:{{ meso['contactaddress'] }}">{{ meso['contactname'] }}</a>
                {% else %}
                {{ meso['contactname'] }}
                {% endif %}
Roland Denis's avatar
Roland Denis committed
33
                </p>
34
            {% endif %}
35
            {% if meso['institutesname'] %}
36
                <p><img src="../theme/img/employer.png" alt="Institutions" title="Institutions" />
37
                {{ meso['institutesname'] | join_names }}
Roland Denis's avatar
Roland Denis committed
38
                </p>
39
40
            {% endif %}
            {% if meso['financersname'] %}
41
                <p class="collapse"><img src="../theme/img/piggy_bank.png" alt="Financeurs" title="Financeurs" />
42
                {{ meso['financersname'] | join_names }}
Roland Denis's avatar
Roland Denis committed
43
                </p>
44
            {% endif %}
45
46
            {% if meso['accesspolicy'] %}
                <p class="collapse"><img src="../theme/img/contract.png" alt="Conditions d'accès" title="Conditions d'accès" />
47
                {{ meso['accesspolicy'] | join_sentences }}
Roland Denis's avatar
Roland Denis committed
48
                </p>
49
            {% endif %}
50
51
        </div>
        <div class="card-footer row">
52
            {% if meso['totalcorenumber'] %}
Roland Denis's avatar
Roland Denis committed
53
                <p class="col-sm"><img src="../theme/img/cpu.png" alt="Nombre de cœurs" title="Nombre de cœurs" />
54
                {{ meso['totalcorenumber'] }} cœurs
Roland Denis's avatar
Roland Denis committed
55
                </p>
56
            {% endif %}
Roland Denis's avatar
Roland Denis committed
57
58
            {% if meso['totalram'] %}
                <p class="col-sm"><img src="../theme/img/memory.png" alt="Mémoire" title="Mémoire" />
59
                {{ meso['totalram'] | format_storage(3) }}
Roland Denis's avatar
Roland Denis committed
60
61
62
63
64
65
66
                </p>
            {% endif %}
            {% if meso['totalgpunumber'] %}
                <p class="col-sm"><img src="../theme/img/gpu.png" alt="Nombre de GPUs" title="Nombre de GPUs"/>
                {{ meso['totalgpunumber'] }}
                </p>
            {% endif %}
67
            {% if meso['totalstorage'] %}
Roland Denis's avatar
Roland Denis committed
68
                <p class="col-sm"><img src="../theme/img/floppy.png" alt="Stockage" title="Stockage"/>
69
                {{ meso['totalstorage'] | format_storage(4) }}
Roland Denis's avatar
Roland Denis committed
70
                </p>
71
72
            {% endif %}
        </div>
Roland Denis's avatar
Roland Denis committed
73
74
    </div>
</div>
75
{% endif %}