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.
80 lines
2.1 KiB
80 lines
2.1 KiB
{% extends 'base_catalog.html' %}
|
|
{% load static %}
|
|
{% load i18n %}
|
|
{% load template_filters %}
|
|
{% block page_body %}
|
|
<div class="m-article cl-photos">
|
|
<div class="cl-item">
|
|
<div class="cl-item-wrap clearfix">
|
|
<div class="cli-pict">
|
|
<a href="{{ object.get_permanent_url }}">
|
|
{% with obj=object %}
|
|
{% include 'client/includes/show_logo.html' %}
|
|
{% endwith %}
|
|
</a>
|
|
</div>
|
|
<div class="cli-info">
|
|
<div class="cli-top clearfix">
|
|
<header>
|
|
<div class="cli-title">
|
|
<a href="{{ object.get_permanent_url }}">{{ object.name }}</a>
|
|
</div>
|
|
</header>
|
|
<div class="cli-descr">
|
|
{{ object.get_type }}
|
|
</div>
|
|
</div>
|
|
<div class="cli-bot clearfix">
|
|
{% if object.country %}
|
|
<div class="cli-place">
|
|
<a href="#">{{ object.country }}</a>, <a href="#">{{ object.city }}</a>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="cli-photo-text">
|
|
{{ object.description|safe }}
|
|
</div>
|
|
<div id="cli-pg" class="cli-photo-gallery">
|
|
<ul class="clearfix">
|
|
{% for photo in object_list %}
|
|
<li>
|
|
<a class="open-photo" href="#" >
|
|
<img src="{{ photo.get_client_thumbnail_url }}" data-image-id="{{ photo.id }}"/>
|
|
<span class="pg-title">{{ photo.title }}</span>
|
|
</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
{% block paginator %}
|
|
{% with page_obj=page_obj queries=queries %}
|
|
{% include 'includes/paginator.html' %}
|
|
{% endwith %}
|
|
{% endblock %}
|
|
{% endblock %}
|
|
{% block photogallery %}
|
|
{% include 'client/popups/photo.html' %}
|
|
{% endblock %}
|
|
{% block scripts %}
|
|
{% 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>
|
|
EXPO.placePhoto.init({
|
|
ajaxUrl:'http://hit.expomap.ru/gallery/show/photo/',
|
|
galleryContainerId:'cli-pg',
|
|
nextButtonId:'pgpc-next',
|
|
prevButtonId:'pgpc-prev',
|
|
closeModalButtonId:'pg-close',
|
|
modalId:'pw-gallery',
|
|
modalContainerId:'popup-gallery-id',
|
|
modalTrigger:'open-photo'
|
|
});
|
|
</script>
|
|
{% endblock %}
|
|
|