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