meso.tpl 1.01 KB
Newer Older
Roland Denis's avatar
Roland Denis committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<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'] %}
            <img src="../theme/img/mail.png" alt="Contact" height="15px"/>
            {% if meso['contactaddress'] is defined %}
            <a href="mailto:{{ meso['contactaddress'] }}">{{ meso['contactname'] }}</a>
            {% else %}
            {{ meso['contactname'] }}
            {% endif %}
            <br />
        {% endif %}
        {% if meso['institutesname'] %}
            <img src="../theme/img/employer.png" alt="Institutions" height="15px" />
            {% for name in meso['institutesname'] %}
            {{ ' et ' if loop.last }}{{ name }}{{ ', ' if not loop.last }}
            {% endfor %}
            <br />
        {% endif %}
    </div>
    <div class="card-footer p-0 d-flex align-items-center">
    </div>
    </a>
</div>