You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
123 lines
4.3 KiB
123 lines
4.3 KiB
{% load static %}
|
|
{% load i18n %}
|
|
{% load template_filters %}
|
|
|
|
<ul class="cat-list cl-exhibitions">
|
|
|
|
{# START FOR #}
|
|
{% for result in query %}
|
|
<li class="cl-item {% if result.object.canceled %}canceled{% endif %}">
|
|
<div class="cl-item-wrap clearfix">
|
|
<a target="_blank" href="{{ result.object.get_permanent_url }}">
|
|
|
|
{% if result.object.canceled %}
|
|
<div class="cancel"></div>
|
|
{% elif result.object.expohit %}
|
|
<div class="hit"></div>
|
|
{% endif %}
|
|
|
|
<div class="cli-pict">
|
|
{% with obj=result.object %}
|
|
{% include 'client/includes/show_logo.html' %}
|
|
{% endwith %}
|
|
</div>
|
|
</a>
|
|
|
|
<div class="cli-info">
|
|
<div class="cli-top clearfix">
|
|
|
|
{% if result.object.quality_label.ufi.is_set %}
|
|
<div class="cli-approved">
|
|
<img src="{% static 'client/img/approved-logo.png' %}" alt="" title="Approved Event" />
|
|
</div>
|
|
{% endif %}
|
|
|
|
<header>
|
|
<div class="cli-title"><a target="_blank" href="{{ result.object.get_permanent_url }}">{{ result.object.name|safe }}</a></div>
|
|
</header>
|
|
<div class="cli-descr">
|
|
{{ result.object.main_title|safe }}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="cli-bot clearfix">
|
|
<div class="cli-date">
|
|
|
|
{% with obj=result.object %}
|
|
{% include 'client/includes/show_date_block.html' %}
|
|
{% endwith %}
|
|
|
|
</div>
|
|
|
|
{% if result.object.country %}
|
|
<div class="cli-place">
|
|
<a href="{{ result.object.catalog }}country/{{ result.object.country.url }}/">{{ result.object.country }}</a>, <a href="{{ result.object.catalog }}city/{{ result.object.city.url }}/">{{ result.object.city }}</a>
|
|
|
|
{% if result.object.place %}
|
|
, <a href="{{ result.object.place.get_permanent_url }}">{{ result.object.place }}</a>
|
|
{% endif %}
|
|
|
|
</div>
|
|
{% endif %}
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="cli-buttons clearfix">
|
|
<div class="cli-m-buttons">
|
|
{% include 'client/includes/exposition/services.html' with obj=result.object %}
|
|
{% include 'client/includes/calendar_button.html' with obj=result.object %}
|
|
</div>
|
|
<div class="cli-s-buttons">
|
|
{% include 'client/buttons/booking_button.html' with object=result.object %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<footer class="clearfix">
|
|
<div class="cli-stats">
|
|
|
|
{% if result.object.visitors %}
|
|
<span class="visitors" title="Посетители">{{ result.object.visitors }}</span>
|
|
{% endif %}
|
|
|
|
{% if result.object.members %}
|
|
<span class="participants" title="Участники">{{ result.object.members }}</span>
|
|
{% endif %}
|
|
|
|
</div>
|
|
<div class="cli-tags">
|
|
{% include 'client/includes/exposition/tags.html' with obj=result.object %}
|
|
</div>
|
|
</footer>
|
|
</li>
|
|
|
|
{% if forloop.counter == 5 or objects|length < 5 %}
|
|
{% include 'client/includes/banners/catalog_inner_2.html' %}
|
|
{% endif %}
|
|
|
|
{% if forloop.counter == 10 %}
|
|
{% include 'client/includes/banners/catalog_inner.html' %}
|
|
{%endif %}
|
|
|
|
{% endfor %}
|
|
{# END FOR #}
|
|
|
|
</ul>
|
|
|
|
|
|
{% block scripts %}
|
|
|
|
{% if request.GET.debug == '1' %}
|
|
<script src="{% static 'client/js/_modules/block.exposition.list.js' %}"></script>
|
|
{% else %}
|
|
<script src="{% static 'client/js_min/_modules/block.exposition.list.min.js' %}"></script>
|
|
{% endif %}
|
|
|
|
<script>
|
|
EXPO.exposition.list.init({
|
|
addCalendarText:"{% trans 'В расписание' %}",
|
|
removeCalendarText:"{% trans 'Из расписания' %}"
|
|
});
|
|
</script>
|
|
{% endblock %}
|
|
|