meso.tpl 2.14 KB
Newer Older
1
{% if header %}
Roland Denis's avatar
Roland Denis committed
2
3
4
5
6
7
8
9
10
11
<div class="card">
    <div class="card-header">
        {% if meso['url'] %}
        <a href="{{ meso['url'] }}">{{ meso['name'] }}</a>
        {% else %}
        {{ meso['name'] }}
        {% endif %}
    </div>
    <div class="card-body">
        {% if meso['contactname'] %}
12
13
            <img src="../theme/img/mail.png" alt="Contact" />
            {% if meso['contactaddress'] %}
Roland Denis's avatar
Roland Denis committed
14
15
16
17
18
19
20
            <a href="mailto:{{ meso['contactaddress'] }}">{{ meso['contactname'] }}</a>
            {% else %}
            {{ meso['contactname'] }}
            {% endif %}
            <br />
        {% endif %}
        {% if meso['institutesname'] %}
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
            <img src="../theme/img/employer.png" alt="Institutions" />
            {% for name in meso['institutesname'] -%}
            {{ ' et ' if loop.last }}{{ ', ' if not loop.first and not loop.last }}{{ name }}
            {%- endfor %}
            <br />
        {% endif %}
        {% if meso['financersname'] %}
            <img src="../theme/img/contract.png" alt="Financeurs" />
            {% for name in meso['financersname'] -%}
            {{ ' et ' if loop.last }}{{ ', ' if not loop.first and not loop.last }}{{ name }}
            {%- endfor %}
            <br />
        {% endif %}
        {% if meso['location'] %}
            <img src="../theme/img/position_full.png" alt="Position" />
            {% if meso['gpscoordinates'] %}
            <a href="https://www.openstreetmap.org/#map=16/{{meso['gpscoordinates'][0]}}/{{meso['gpscoordinates'][1]}}">{{ meso['location'] }}</a>
            {% else %}
            {{ meso['location'] }}
            {% endif %}
            <br />
        {% endif %}
        {% if meso['totalcorenumber'] %}
            <img src="../theme/img/cpu.png" alt="Nombre de cœurs">
            {{ meso['totalcorenumber'] }} cœurs
            <br />
        {% endif %}
        {% if meso['totalstorage'] %}
            <img src="../theme/img/floppy.png" alt="Stockage">
            {{ meso['totalstorage'] }} To
Roland Denis's avatar
Roland Denis committed
51
52
53
54
            <br />
        {% endif %}
    </div>
    <div class="card-footer p-0 d-flex align-items-center">
55
56
{% endif %}
{% if footer %}
Roland Denis's avatar
Roland Denis committed
57
58
59
    </div>
    </a>
</div>
60
{% endif %}