grid_item.html 727 Bytes
Newer Older
1
2
{% load static i18n thumbnail bootstrap4 %}
<div class="grid-item {{ class_name }}">
3
4
5
6
7
8
9
10
11
12
    {% if url %}
        <a class="d-flex" href="{{ url }}" {{ anchor_attrs|safe }}>
    {% endif %}
    <div class="image">
        <img alt="{{ title }}" src="{{ image_url }}"/>
    </div>
    <div class="name">
        <span>{{ title }}</span>
    </div>
    {% if ribbon %}
13
14
15
16
17
        <div class="ribbon-wrapper">
            <div class="ribbon">
                {{ ribbon }}
            </div>
        </div>
18
19
20
21
22
23
24
25
    {% endif %}
    <div class="overlay d-flex justify-content-center flex-column text-center">
        <h5 class="px-2">{{ title }}</h5>
        {{ meta_text|safe }}
    </div>
    {% if url %}
        </a>
    {% endif %}
26
</div>