|
|
|
@ -2,77 +2,70 @@ |
|
|
|
{% load static %} |
|
|
|
{% load static %} |
|
|
|
{% load i18n %} |
|
|
|
{% load i18n %} |
|
|
|
{% load template_filters %} |
|
|
|
{% load template_filters %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% block page_body %} |
|
|
|
{% block page_body %} |
|
|
|
<div class="m-article cl-photos"> |
|
|
|
<div class="m-article cl-photos"> |
|
|
|
<div class="cl-item"> |
|
|
|
<div class="cl-item"> |
|
|
|
<div class="cl-item-wrap clearfix"> |
|
|
|
<div class="cl-item-wrap clearfix"> |
|
|
|
<div class="cli-pict"> |
|
|
|
<div class="cli-pict"> |
|
|
|
<a href="{{ object.get_permanent_url }}"> |
|
|
|
<a href="{{ object.get_permanent_url }}"> |
|
|
|
{% with obj=object %} |
|
|
|
{% with obj=object %} |
|
|
|
{% include 'client/includes/show_logo.html' %} |
|
|
|
{% include 'client/includes/show_logo.html' %} |
|
|
|
{% endwith %} |
|
|
|
{% endwith %} |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="cli-info"> |
|
|
|
<div class="cli-info"> |
|
|
|
<div class="cli-top clearfix"> |
|
|
|
<div class="cli-top clearfix"> |
|
|
|
<header> |
|
|
|
<header> |
|
|
|
<div class="cli-title"> |
|
|
|
<div class="cli-title"> |
|
|
|
<a href="{{ object.get_permanent_url }}">{{ object.name }}</a> |
|
|
|
<a href="{{ object.get_permanent_url }}">{{ object.name }}</a> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</header> |
|
|
|
</header> |
|
|
|
<div class="cli-descr"> |
|
|
|
<div class="cli-descr"> |
|
|
|
{{ object.get_type }} |
|
|
|
{{ object.get_type }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="cli-bot clearfix"> |
|
|
|
<div class="cli-bot clearfix"> |
|
|
|
{% if object.country %} |
|
|
|
{% if object.country %} |
|
|
|
<div class="cli-place"> |
|
|
|
<div class="cli-place"> |
|
|
|
<a href="#">{{ object.country }}</a>, <a href="#">{{ object.city }}</a> |
|
|
|
<a href="#">{{ object.country }}</a>, <a href="#">{{ object.city }}</a> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="cli-photo-text"> |
|
|
|
<div class="cli-photo-text"> |
|
|
|
{{ object.description|safe }} |
|
|
|
{{ object.description|safe }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div id="cli-pg" class="cli-photo-gallery"> |
|
|
|
|
|
|
|
<ul class="clearfix"> |
|
|
|
<div id="cli-pg" class="cli-photo-gallery"> |
|
|
|
{% for photo in object_list %} |
|
|
|
<ul class="clearfix"> |
|
|
|
<li> |
|
|
|
|
|
|
|
<a class="open-photo" href="#" > |
|
|
|
{% for photo in object_list %} |
|
|
|
<img src="{{ photo.get_client_thumbnail_url }}" data-image-id="{{ photo.id }}"/> |
|
|
|
<li> |
|
|
|
<span class="pg-title">{{ photo.title }}</span> |
|
|
|
<a class="open-photo" href="#" > |
|
|
|
</a> |
|
|
|
<img src="{{ photo.get_client_thumbnail_url }}" data-image-id="{{ photo.id }}"/> |
|
|
|
</li> |
|
|
|
<span class="pg-title">{{ photo.title }}</span> |
|
|
|
{% endfor %} |
|
|
|
</a> |
|
|
|
</ul> |
|
|
|
</li> |
|
|
|
</div> |
|
|
|
{% endfor %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</ul> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{% block paginator %} |
|
|
|
{% block paginator %} |
|
|
|
|
|
|
|
{% with page_obj=page_obj queries=queries %} |
|
|
|
{% with page_obj=page_obj queries=queries %} |
|
|
|
{% include 'includes/paginator.html' %} |
|
|
|
{% include 'includes/paginator.html' %} |
|
|
|
{% endwith %} |
|
|
|
{% endwith %} |
|
|
|
{% endblock %} |
|
|
|
|
|
|
|
|
|
|
|
{% endblock %} |
|
|
|
|
|
|
|
{% endblock %} |
|
|
|
{% endblock %} |
|
|
|
|
|
|
|
|
|
|
|
{% block photogallery %} |
|
|
|
{% block photogallery %} |
|
|
|
{% include 'client/popups/photo.html' %} |
|
|
|
{% include 'client/popups/photo.html' %} |
|
|
|
{% endblock %} |
|
|
|
{% endblock %} |
|
|
|
{% block scripts %} |
|
|
|
{% block scripts %} |
|
|
|
<script src="{% static 'client/js' %}{% if debug %}/{% else %}_min/{% endif %}_modules/page.place.photo{% if debug %}{% else %}.min{% endif %}.js"></script> |
|
|
|
{% if request.GET.debug == '1' %} |
|
|
|
|
|
|
|
<script src="{% static 'client/js/_modules/page.place.photo.js' %}"></script> |
|
|
|
|
|
|
|
{% else %} |
|
|
|
|
|
|
|
<script src="{% static 'client/js_min/_modules/page.place.photo.min.js' %}"></script> |
|
|
|
|
|
|
|
{% endif %} |
|
|
|
<script> |
|
|
|
<script> |
|
|
|
//js module initialization |
|
|
|
|
|
|
|
EXPO.placePhoto.init({ |
|
|
|
EXPO.placePhoto.init({ |
|
|
|
ajaxUrl:'http://hit.expomap.ru/gallery/show/photo/', |
|
|
|
ajaxUrl:'http://hit.expomap.ru/gallery/show/photo/', |
|
|
|
galleryContainerId:'cli-pg', |
|
|
|
galleryContainerId:'cli-pg', |
|
|
|
|