|
|
|
@ -1,12 +1,8 @@ |
|
|
|
{% load static %} |
|
|
|
{% load static %} |
|
|
|
{% load i18n %} |
|
|
|
{% load i18n %} |
|
|
|
{% load template_filters %} |
|
|
|
{% load template_filters %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<ul class="cat-list cl-exhibitions"> |
|
|
|
<ul class="cat-list cl-exhibitions"> |
|
|
|
|
|
|
|
|
|
|
|
{% for result in query %} |
|
|
|
{% for result in query %} |
|
|
|
|
|
|
|
|
|
|
|
<li class="cl-item {% if result.object.canceled %}canceled{% endif %}"> |
|
|
|
<li class="cl-item {% if result.object.canceled %}canceled{% endif %}"> |
|
|
|
<div class="cl-item-wrap clearfix"> |
|
|
|
<div class="cl-item-wrap clearfix"> |
|
|
|
<a href="{{ result.object.get_permanent_url }}"> |
|
|
|
<a href="{{ result.object.get_permanent_url }}"> |
|
|
|
@ -34,13 +30,10 @@ |
|
|
|
<div class="cli-title"><a href="{{ result.object.get_permanent_url }}">{{ result.object.name|safe }}</a></div> |
|
|
|
<div class="cli-title"><a href="{{ result.object.get_permanent_url }}">{{ result.object.name|safe }}</a></div> |
|
|
|
</header> |
|
|
|
</header> |
|
|
|
<div class="cli-descr"> |
|
|
|
<div class="cli-descr"> |
|
|
|
|
|
|
|
|
|
|
|
{{ result.object.main_title|safe }} |
|
|
|
{{ result.object.main_title|safe }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="cli-bot clearfix"> |
|
|
|
<div class="cli-bot clearfix"> |
|
|
|
|
|
|
|
|
|
|
|
<div class="cli-date"> |
|
|
|
<div class="cli-date"> |
|
|
|
{% with obj=result.object %} |
|
|
|
{% with obj=result.object %} |
|
|
|
{% include 'client/includes/show_date_block.html' %} |
|
|
|
{% include 'client/includes/show_date_block.html' %} |
|
|
|
@ -49,7 +42,6 @@ |
|
|
|
{% if result.object.country %} |
|
|
|
{% if result.object.country %} |
|
|
|
<div class="cli-place"> |
|
|
|
<div class="cli-place"> |
|
|
|
<a href="#">{{ result.object.country }}</a>, <a href="#">{{ result.object.city }}</a>, |
|
|
|
<a href="#">{{ result.object.country }}</a>, <a href="#">{{ result.object.city }}</a>, |
|
|
|
|
|
|
|
|
|
|
|
{% if result.object.place %} |
|
|
|
{% if result.object.place %} |
|
|
|
<a href="{{ result.object.place.get_permanent_url }}">{{ result.object.place }}</a> |
|
|
|
<a href="{{ result.object.place.get_permanent_url }}">{{ result.object.place }}</a> |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
@ -57,12 +49,10 @@ |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="cli-buttons clearfix"> |
|
|
|
<div class="cli-buttons clearfix"> |
|
|
|
<div class="cli-m-buttons"> |
|
|
|
<div class="cli-m-buttons"> |
|
|
|
{% include 'client/includes/exposition/services.html' with obj=result.object %} |
|
|
|
{% include 'client/includes/exposition/services.html' with obj=result.object %} |
|
|
|
{% include 'client/includes/calendar_button.html' with obj=result.object %} |
|
|
|
{% include 'client/includes/calendar_button.html' with obj=result.object %} |
|
|
|
|
|
|
|
|
|
|
|
<div class="{% if request.user.is_authenticated%}note-wrap{% else %}note-wrap-disabled{% endif %}"> |
|
|
|
<div class="{% if request.user.is_authenticated%}note-wrap{% else %}note-wrap-disabled{% endif %}"> |
|
|
|
{% with note=result.object|note_by_user:request.user %} |
|
|
|
{% with note=result.object|note_by_user:request.user %} |
|
|
|
<a class="button green icon-note {% if note %}active{% endif %} note-button" href="/expo/add-note/{{ result.object.url }}/">{% trans 'заметка' %}</a> |
|
|
|
<a class="button green icon-note {% if note %}active{% endif %} note-button" href="/expo/add-note/{{ result.object.url }}/">{% trans 'заметка' %}</a> |
|
|
|
@ -74,13 +64,11 @@ |
|
|
|
{% endwith %} |
|
|
|
{% endwith %} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="cli-s-buttons"> |
|
|
|
<div class="cli-s-buttons"> |
|
|
|
{% include 'client/buttons/booking_button.html' with object=result.object %} |
|
|
|
{% include 'client/buttons/booking_button.html' with object=result.object %} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<footer class="clearfix"> |
|
|
|
<footer class="clearfix"> |
|
|
|
<div class="cli-stats"> |
|
|
|
<div class="cli-stats"> |
|
|
|
{% if result.object.visitors %} |
|
|
|
{% if result.object.visitors %} |
|
|
|
@ -97,9 +85,12 @@ |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
{% endfor %} |
|
|
|
{% endfor %} |
|
|
|
</ul> |
|
|
|
</ul> |
|
|
|
|
|
|
|
|
|
|
|
{% block scripts %} |
|
|
|
{% block scripts %} |
|
|
|
<script src="{% static 'client/js' %}{% if debug %}/{% else %}_min/{% endif %}_modules/block.exposition.list{% if debug %}{% else %}.min{% endif %}.js"></script> |
|
|
|
{% 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> |
|
|
|
<script> |
|
|
|
EXPO.exposition.list.init({ |
|
|
|
EXPO.exposition.list.init({ |
|
|
|
note:{ |
|
|
|
note:{ |
|
|
|
|