{% load i18n %}
{% load static %}

{% load unicms_contexts %}


{% if publications %}
<div class="row d-lg-flex">
    <div class="col-12">
        <!--start card-->
        <div class="card-wrapper card-space">
            <div class="card card-bg no-after">
                <div class="card-body">
                    <ul class="pl-0">
                        {% for pub in publications %}
                        <li class="mb-3" style="list-style: none">
                            <b>
                                <span>
                                    {% for cat in pub.publication.categories|slice:":3" %}
                                    {% if forloop.counter > 1 %}&nbsp;&middot;&nbsp;{% endif %}
                                    <a href="{% call obj=pub method='get_url_list' category_name=cat %}">{{ cat }} </a>
                                    {% endfor %}
                                </span>
                            </b>
                            -
                            <a href="{{ pub.url }}">
                                {{ pub.publication.title }}
                            </a>
                        </li>
                        {% endfor %}
                    </ul>
                </div>

            </div>
        </div>
        <!--end card-->
    </div>
</div>
{% endif %}
