meso.tpl 2.38 KB
Newer Older
1
{% if header %}
2
3
4
5
6
<div class="meso">
    <div class="card">
        <div class="card-header">
            {% if meso['url'] %}
            <a href="{{ meso['url'] }}">{{ meso['name'] }}</a>
Roland Denis's avatar
Roland Denis committed
7
            {% else %}
8
            {{ meso['name'] }}
Roland Denis's avatar
Roland Denis committed
9
            {% endif %}
10
11
12
13
14
15
16
17
18
19
        </div>
        <div class="card-body">
            {% if meso['contactname'] %}
                <img src="../theme/img/mail.png" alt="Contact" />
                {% if meso['contactaddress'] %}
                <a href="mailto:{{ meso['contactaddress'] }}">{{ meso['contactname'] }}</a>
                {% else %}
                {{ meso['contactname'] }}
                {% endif %}
                <br />
20
            {% endif %}
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
51
52
53
54
55
            {% if meso['institutesname'] %}
                <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
                <br />
            {% endif %}
        </div>
        <div class="card-footer p-0 d-flex align-items-center">
56
57
{% endif %}
{% if footer %}
58
59
        </div>
        </a>
Roland Denis's avatar
Roland Denis committed
60
61
    </div>
</div>
62
{% endif %}