фикс блоков в шаблоне

stage8
Slava Kyrachevsky 9 years ago
parent 0a363e7af3
commit 8a8b6defa9
  1. 902
      templates/client/exposition/exposition_detail.html

@ -30,535 +30,527 @@
{% block paginator %}{% endblock %} {% block paginator %}{% endblock %}
{% block content_list %} {% block content_list %}
{% block page_body %} <div class="m-article event-page">
<div class="m-article event-page"> <div class="item-wrap event clearfix">
<div class="item-wrap event clearfix"> <aside>
<aside> {% if exposition.expohit %}
{% if exposition.expohit %} <div class="hit"></div>
<div class="hit"></div> {% endif %}
{% endif %}
{% if exposition.canceled %} {% if exposition.canceled %}
<div class="cancel"></div> <div class="cancel"></div>
{% endif %} {% endif %}
<div class="i-pict"> <div class="i-pict">
{% with obj=exposition %} {% with obj=exposition %}
{% include 'client/includes/show_logo.html' %} {% include 'client/includes/show_logo.html' %}
{% endwith %} {% endwith %}
</div> </div>
<div class="i-discount"> <div class="i-discount">
{% if exposition.discount %} {% if exposition.discount %}
<a class="discount-button" href="#">{% trans 'Скидка' %} -{{ exposition.discount }}%</a> <a class="discount-button" href="#">{% trans 'Скидка' %} -{{ exposition.discount }}%</a>
<div class="dsc-text">{{ exposition.discount_description|safe|linebreaks }}</div> <div class="dsc-text">{{ exposition.discount_description|safe|linebreaks }}</div>
{% endif %} {% endif %}
</div> </div>
</aside> </aside>
<div class="i-info"> <div class="i-info">
<header> <header>
<h1 class="i-title"> <h1 class="i-title">
{% if exposition.main_title %} {% if exposition.main_title %}
{{ exposition.name|safe }} - {{ exposition.main_title|lowfirst|safe }} {{ exposition.name|safe }} - {{ exposition.main_title|lowfirst|safe }}
{% else %} {% else %}
{{ exposition.name|safe }} {{ exposition.name|safe }}
{% endif %} {% endif %}
</h1> </h1>
</header> </header>
<div class="i-date">
{% with obj=exposition %}
{% include 'client/includes/show_date_block.html' %}
{% endwith %}
{% if not request.GET.debug == '1' %} <div class="i-date">
{% include "client/includes/sharing_block.html" %} {% with obj=exposition %}
{% endif %} {% include 'client/includes/show_date_block.html' %}
</div> {% endwith %}
{% if exposition.place %} {% if not request.GET.debug == '1' %}
<div class="i-address"> {% include "client/includes/sharing_block.html" %}
<header> {% endif %}
<div class="address"> </div>
{{ exposition.place.country }}, {{ exposition.place.city }},
{% if exposition.place.web_page %}
<a href="{{ exposition.place.get_permanent_url }}" class="place_link">{{ exposition.place.name }}</a>
{% else %}
{{ exposition.place.name }}
{% endif %}
</div>
{# <div class="show-map"><a class="toggle-map" href="#">{% trans 'Раскрыть карту' %}</a></div>#}
</header>
<div class="show-map"><a class="toggle-map" href="#">{% trans 'Раскрыть карту' %}</a></div> {% if exposition.place %}
<div class="i-address">
<header>
<div class="address">
{{ exposition.place.country }}, {{ exposition.place.city }},
{% if exposition.place.web_page %}
<a href="{{ exposition.place.get_permanent_url }}" class="place_link">{{ exposition.place.name }}</a>
{% else %}
{{ exposition.place.name }}
{% endif %}
</div>
{# <div class="show-map"><a class="toggle-map" href="#">{% trans 'Раскрыть карту' %}</a></div>#}
</header>
<div class="i-map"> <div class="show-map"><a class="toggle-map" href="#">{% trans 'Раскрыть карту' %}</a></div>
<div class="close-map">
<a class="toggle-map" href="#">{% trans 'Скрыть карту' %}</a>
</div>
<div class="map-canvas" id="map-canvas" data-coords="{{ exposition.place.address.lat|coord_format }},{{ exposition.place.address.lng|coord_format }}" ></div> <div class="i-map">
<div class="close-map">
<a class="toggle-map" href="#">{% trans 'Скрыть карту' %}</a>
</div> </div>
<div class="map-canvas" id="map-canvas" data-coords="{{ exposition.place.address.lat|coord_format }},{{ exposition.place.address.lng|coord_format }}" ></div>
</div> </div>
{% else %} </div>
<div class="i-address"> {% else %}
<header> <div class="i-address">
<div class="address"> <header>
{{ exposition.country.name }}, {{ exposition.city.name }}{% if exposition.place_alt %} , {{ exposition.place_alt }}{% endif %} <div class="address">
</div> {{ exposition.country.name }}, {{ exposition.city.name }}{% if exposition.place_alt %} , {{ exposition.place_alt }}{% endif %}
</header> </div>
</div> </header>
{% endif %} </div>
</div> {% endif %}
</div> </div>
</div>
<hr /> <hr />
<div class="i-buttons clearfix"> <div class="i-buttons clearfix">
<div class="ib-main"> <div class="ib-main">
{% with event=exposition user=user %} {% with event=exposition user=user %}
{% include 'client/includes/visit_button.html' %} {% include 'client/includes/visit_button.html' %}
{% endwith %} {% endwith %}
{% include 'client/includes/calendar_button.html' with obj=exposition %} {% include 'client/includes/calendar_button.html' with obj=exposition %}
{% if request.user.is_admin %} {% if request.user.is_admin %}
<a target="_blank" class="button green " href="/admin/exposition/{{ object.url }}/">{% trans 'изменить' %}</a> <a target="_blank" class="button green " href="/admin/exposition/{{ object.url }}/">{% trans 'изменить' %}</a>
{% endif %} {% endif %}
</div> </div>
<div class="event_org"> <div class="event_org">
<a href="#pw-event-news-subscribe" class="button pw-open new_subribe_btn green"><i class="fa fa-at"></i>&nbsp;{% trans 'Подписаться на новости' %}</a> <a href="#pw-event-news-subscribe" class="button pw-open new_subribe_btn green"><i class="fa fa-at"></i>&nbsp;{% trans 'Подписаться на новости' %}</a>
</div>
</div> </div>
</div>
<hr /> <hr />
<div class="i-divs clearfix"> <div class="i-divs clearfix">
<div class="i-subj"> <div class="i-subj">
<ul> <ul>
{% with themes=exposition.themes %} {% with themes=exposition.themes %}
{% for theme in themes %} {% for theme in themes %}
<li><a href="{{ object.catalog }}theme/{{ theme.url }}/">{{ theme.name }} ({{ theme.expositions_number }})</a></li> <li><a href="{{ object.catalog }}theme/{{ theme.url }}/">{{ theme.name }} ({{ theme.expositions_number }})</a></li>
{% endfor %}
{% endwith %}
</ul>
</div>
<div class="i-tags grey">
{% with tags=exposition.tags %}
{% for tag in tags %}
<a href="{{ object.catalog }}tag/{{ tag.url }}/">{{ tag.name }}</a>{% if forloop.counter != tags|length %},{% endif %}
{% endfor %} {% endfor %}
{% endwith %} {% endwith %}
</div> </ul>
</div>
<div class="i-tags grey">
{% with tags=exposition.tags %}
{% for tag in tags %}
<a href="{{ object.catalog }}tag/{{ tag.url }}/">{{ tag.name }}</a>{% if forloop.counter != tags|length %},{% endif %}
{% endfor %}
{% endwith %}
</div> </div>
</div>
<div class="exposition_main_image" {% if exposition.main_image %}data-background="{% thumbnail exposition.main_image '937x244' crop='center' %}"{% endif %}> <div class="exposition_main_image" {% if exposition.main_image %}data-background="{% thumbnail exposition.main_image '937x244' crop='center' %}"{% endif %}>
<div class="buttons"> <div class="buttons">
<a href="{% url 'expo_service' object.url 'tickets' %}" class="orange">{% trans 'Посетителю' %}</a> <a href="{% url 'expo_service' object.url 'tickets' %}" class="orange">{% trans 'Посетителю' %}</a>
<a href="{% url 'expo_price' object.url %}" class="green">{% trans 'Экспоненту' %}</a> <a href="{% url 'expo_price' object.url %}" class="green">{% trans 'Экспоненту' %}</a>
{% if object.paid_new_id and object.paid_new.public %} {% if object.paid_new_id and object.paid_new.public %}
<a href="{{ object.paid_new.official.get_click_link }}" class="pink">{% trans 'Официальный сайт' %}</a> <a href="{{ object.paid_new.official.get_click_link }}" class="pink">{% trans 'Официальный сайт' %}</a>
{% endif %} {% endif %}
</div>
</div> </div>
</div>
{# Описание выставки #} {# Описание выставки #}
<div class="expo_description"> <div class="expo_description">
<h2>{% trans 'О выставке' %} {{ exposition.name|safe }}</h2> <h2>{% trans 'О выставке' %} {{ exposition.name|safe }}</h2>
<aside class="right_grey_block" id="expo_statistics"> <aside class="right_grey_block" id="expo_statistics">
{% if object.members and object.visitors %} {% if object.members and object.visitors %}
<h4>{% trans 'Масштаб выставки:' %}</h4> <h4>{% trans 'Масштаб выставки:' %}</h4>
<div class="exposition_members"> <div class="exposition_members">
<div class="members"> <div class="members">
<h5>{% trans 'Участники:' %}</h5> <h5>{% trans 'Участники:' %}</h5>
<span>{% if object.members %}{{ object.members }}{% else %}нет данных{% endif %}</span> <span>{% if object.members %}{{ object.members }}{% else %}нет данных{% endif %}</span>
</div> </div>
<div class="visitors"> <div class="visitors">
<h5>{% trans 'Посетители:' %}</h5> <h5>{% trans 'Посетители:' %}</h5>
<span>{% if object.visitors %}{{ object.visitors }}{% else %}нет данных{% endif %}</span> <span>{% if object.visitors %}{{ object.visitors }}{% else %}нет данных{% endif %}</span>
</div> </div>
</div>
{% endif %}
<div class="logos">
{% if exposition.quality_label.ufi.is_set %}
<div class="img_wrapper">
<img src="{% static 'client/img/approved-logo.png' %}" alt="" title="Approved Event" />
</div> </div>
{% endif %} {% endif %}
<div class="logos"> {% if exposition.quality_label.exporating.is_set %}
{% if exposition.quality_label.ufi.is_set %} <div class="img_wrapper">
<div class="img_wrapper"> <img src="{% static 'client/img/exporating_logo.png' %}" alt="" title="Approved Event" />
<img src="{% static 'client/img/approved-logo.png' %}" alt="" title="Approved Event" /> </div>
</div> {% endif %}
{% endif %}
{% if exposition.quality_label.exporating.is_set %} {% if exposition.quality_label.rsva.is_set %}
<div class="img_wrapper"> <div class="img_wrapper">
<img src="{% static 'client/img/exporating_logo.png' %}" alt="" title="Approved Event" /> <img src="{% static 'client/img/rsva.jpg' %}" alt="" title="Approved Event" />
</div> </div>
{% endif %} {% endif %}
</div>
</aside>
<aside class="right_grey_block" id="recommended_expositions">
<h4>{% trans 'Также рекомендуем:' %}</h4>
<div class="recommended_expositions">
{% for item in recommend_expos %}
<div class="recommended">
<a href="{{ item.get_absolute_url }}" target="_blank">{{ item.name }}</a>
<p>{{ item.city }}, {{ item.data_begin|date:'d' }}{% if item.data_end %}-{{ item.data_end|date:'d' }}{% endif %} сентября {{ item.data_begin|date:'Y' }}</p>
</div>
{% endfor %}
</div>
</aside>
{% if exposition.quality_label.rsva.is_set %} {% if exposition.description %}
<div class="img_wrapper"> <div class="expo_description_detail">
<img src="{% static 'client/img/rsva.jpg' %}" alt="" title="Approved Event" /> {{ exposition.description|safe }}
</div> </div>
{% endif %} {% elif default_description %}
</div> <div class="expo_description_detail">
</aside> {{ default_description|safe }}
</div>
<aside class="right_grey_block" id="recommended_expositions"> {% else %}
<h4>{% trans 'Также рекомендуем:' %}</h4> {% include "client/includes/exposition/default_description.html" with expo=exposition className="expo_description_detail" %}
<div class="recommended_expositions"> {% endif %}
{% for item in recommend_expos %} </div>
<div class="recommended">
<a href="{{ item.get_absolute_url }}" target="_blank">{{ item.name }}</a>
<p>{{ item.city }}, {{ item.data_begin|date:'d' }}{% if item.data_end %}-{{ item.data_end|date:'d' }}{% endif %} сентября {{ item.data_begin|date:'Y' }}</p>
</div>
{% endfor %}
</div>
</aside>
{% if exposition.description %} {% include 'client/includes/banners/expo_detail.html' %}
<div class="expo_description_detail">
{{ exposition.description|safe }}
</div>
{% elif default_description %}
<div class="expo_description_detail">
{{ default_description|safe }}
</div>
{% else %}
{% include "client/includes/exposition/default_description.html" with expo=exposition className="expo_description_detail" %}
{% endif %}
</div>
{% include 'client/includes/banners/expo_detail.html' %} <hr>
<hr> {# Дополнительная информация #}
<div id="additional" class="i-event-additional clearfix">
<div class="sect-title">{% trans 'Дополнительная информация' %}</div>
{# Дополнительная информация #} <ul class="e-docs">
<div id="additional" class="i-event-additional clearfix"> {% if exposition.business_program.exists %}
<div class="sect-title">{% trans 'Дополнительная информация' %}</div> <li><a href="{{ exposition.get_permanent_url }}program/">{% trans 'Деловая программа' %}</a></li>
{% endif %}
<ul class="e-docs"> <li><a href="{{ exposition.get_permanent_url }}price/">{% trans 'Условия участия' %}</a></li>
{% if exposition.business_program.exists %}
<li><a href="{{ exposition.get_permanent_url }}program/">{% trans 'Деловая программа' %}</a></li>
{% endif %}
<li><a href="{{ exposition.get_permanent_url }}price/">{% trans 'Условия участия' %}</a></li> {% if exposition.statistic_exists %}
<li><a href="{{ exposition.get_permanent_url }}statistic/">{% trans 'Статистика' %}</a></li>
{% endif %}
<li><a href="http://www.booking.com/searchresults.html?aid={{ book_aid }}&city={{ exposition.city.id }}&do_availability_check=on&label=expo_search&lang={{ request.LANGUAGE_CODE }}&checkin_monthday={{ exposition.data_begin|date:'j' }}&checkin_year_month={{ exposition.data_begin|date:'Y' }}-{{ exposition.data_begin|date:'n' }}&checkout_monthday={{ exposition.data_end|date:'j' }}&checkout_year_month={{ exposition.data_end|date:'Y' }}-{{ exposition.data_end|date:'n' }}" class="find_hotel" target="_blank">{% trans 'Найти отель' %}</a></li>
<li><a href="http://www.rentalcars.com/SearchResults.do?enabler=&country={{ exposition.country }}&doYear={{ exposition.data_begin|date:'Y' }}&city={{ exposition.city }}&driverage=on&doFiltering=true&dropCity={{ exposition.city }}&driversAge=30&filterTo=49&fromLocChoose=true&dropLocationName={{ exposition.city }}+(Все+места)+&dropCountryCode=&doMinute=0&countryCode=&puYear={{ exposition.data_end|date:'Y' }}&locationName={{ exposition.city }}+(Все+места)+&puMinute=0&doDay={{ exposition.data_begin|date:'d' }}&searchType=allareasgeosearch&filterFrom=0&puMonth={{ exposition.data_end|date:'m' }}&dropLocation=-1&doHour=10&dropCountry={{ exposition.country }}&puDay={{ exposition.data_end|date:'d' }}&puHour=10&location=-1&doMonth={{ exposition.data_begin|date:'m' }}&filterName=CarCategorisationSupplierFilter&affiliateCode=expomap790&preflang=ru" class="car_rent" target="_blank">{% trans 'Арендовать авто' %}</a></li>
<li><a href="https://www.interpreters.travel/ru/new_partner_search?partner_id=44&search[city_name]={{ exposition.city.name }}" class="translator" target="_blank">{% trans 'Услуги переводчика' %}</a></li>
</ul>
<dl class="add-info">
{% if exposition.organiser.all.exists %}
<dt>{% trans 'Организатор' %}:</dt>
<dd>
{% with organisers=exposition.organiser.all %}
{% for organiser in organisers %}
{{ organiser.name }}<br />
{% endfor %}
{% endwith %}
</dd>
{% else %}
{% if exposition.org %}
{% for item in exposition.org_split %}
<dt>{% if forloop.counter == 1 %}{% trans 'Организатор' %}:{% endif %}</dt>
{% if exposition.statistic_exists %} <dd>
<li><a href="{{ exposition.get_permanent_url }}statistic/">{% trans 'Статистика' %}</a></li> {{ item }}
{% endif %} </dd>
<li><a href="http://www.booking.com/searchresults.html?aid={{ book_aid }}&city={{ exposition.city.id }}&do_availability_check=on&label=expo_search&lang={{ request.LANGUAGE_CODE }}&checkin_monthday={{ exposition.data_begin|date:'j' }}&checkin_year_month={{ exposition.data_begin|date:'Y' }}-{{ exposition.data_begin|date:'n' }}&checkout_monthday={{ exposition.data_end|date:'j' }}&checkout_year_month={{ exposition.data_end|date:'Y' }}-{{ exposition.data_end|date:'n' }}" class="find_hotel" target="_blank">{% trans 'Найти отель' %}</a></li> {% endfor %}
<li><a href="http://www.rentalcars.com/SearchResults.do?enabler=&country={{ exposition.country }}&doYear={{ exposition.data_begin|date:'Y' }}&city={{ exposition.city }}&driverage=on&doFiltering=true&dropCity={{ exposition.city }}&driversAge=30&filterTo=49&fromLocChoose=true&dropLocationName={{ exposition.city }}+(Все+места)+&dropCountryCode=&doMinute=0&countryCode=&puYear={{ exposition.data_end|date:'Y' }}&locationName={{ exposition.city }}+(Все+места)+&puMinute=0&doDay={{ exposition.data_begin|date:'d' }}&searchType=allareasgeosearch&filterFrom=0&puMonth={{ exposition.data_end|date:'m' }}&dropLocation=-1&doHour=10&dropCountry={{ exposition.country }}&puDay={{ exposition.data_end|date:'d' }}&puHour=10&location=-1&doMonth={{ exposition.data_begin|date:'m' }}&filterName=CarCategorisationSupplierFilter&affiliateCode=expomap790&preflang=ru" class="car_rent" target="_blank">{% trans 'Арендовать авто' %}</a></li>
<li><a href="https://www.interpreters.travel/ru/new_partner_search?partner_id=44&search[city_name]={{ exposition.city.name }}" class="translator" target="_blank">{% trans 'Услуги переводчика' %}</a></li>
</ul>
<dl class="add-info"> {% endif %}
{% if exposition.organiser.all.exists %} {% endif %}
<dt>{% trans 'Организатор' %}:</dt>
<dd>
{% with organisers=exposition.organiser.all %}
{% for organiser in organisers %}
{{ organiser.name }}<br />
{% endfor %}
{% endwith %}
</dd>
{% else %}
{% if exposition.org %}
{% for item in exposition.org_split %}
<dt>{% if forloop.counter == 1 %}{% trans 'Организатор' %}:{% endif %}</dt>
<dd> {% if exposition.web_page %}
{{ item }} <dt>{% trans 'Веб-сайт' %}:</dt>
</dd> <dd>
{% endfor %} <a target="_blank" href="#" data-type="href" data-hash="1qwer" data-url="{{ exposition.web_page|base64_encode }}" class="link-encode">{{ exposition.web_page }}</a>
</dd>
{% endif %}
{% endif %} {% if exposition.get_audience %}
{% endif %} <dt>{% trans 'Аудитория' %}:</dt>
<dd>{{ exposition.get_audience }}</dd>
{% endif %}
{% if exposition.web_page %} {% if exposition.get_periodic %}
<dt>{% trans 'Веб-сайт' %}:</dt> <dt>{% trans 'Периодичность' %}:</dt>
<dd> <dd>{{ exposition.get_periodic }}</dd>
<a target="_blank" href="#" data-type="href" data-hash="1qwer" data-url="{{ exposition.web_page|base64_encode }}" class="link-encode">{{ exposition.web_page }}</a> {% endif %}
</dd>
{% endif %}
{% if exposition.get_audience %} {% if exposition.products %}
<dt>{% trans 'Аудитория' %}:</dt> <dt>{% trans 'Экспонируемые продукты' %}:</dt>
<dd>{{ exposition.get_audience }}</dd> <dd>{{ exposition.products|safe }}</dd>
{% endif %} {% endif %}
{% if exposition.get_periodic %} {% if exposition.time %}
<dt>{% trans 'Периодичность' %}:</dt> <dt>{% trans 'Время работы' %}:</dt>
<dd>{{ exposition.get_periodic }}</dd> <dd>{{ exposition.time|safe }}</dd>
{% endif %} {% endif %}
</dl>
</div>
{% if exposition.products %} <hr>
<dt>{% trans 'Экспонируемые продукты' %}:</dt> {% include 'client/includes/booking_block.html' with city=exposition.city place=exposition.place event=exposition %}
<dd>{{ exposition.products|safe }}</dd>
{% endif %}
{% if exposition.time %} {# Планируют быть #}
<dt>{% trans 'Время работы' %}:</dt> <div class="conf_visitors">
<dd>{{ exposition.time|safe }}</dd> {% with visitors=exposition.users.all|slice:":17" %}
{% endif %} <h3>{% trans 'Планируют быть на' %} {{ exposition.name }}</h3>
</dl>
</div>
<hr>
{% include 'client/includes/booking_block.html' with city=exposition.city place=exposition.place event=exposition %}
{# Планируют быть #} <ul class="visitors-list" id="visitors-list">
<div class="conf_visitors"> {% if visitors %}
{% with visitors=exposition.users.all|slice:":17" %} {# есть посетители #}
<h3>{% trans 'Планируют быть на' %} {{ exposition.name }}</h3> {% for user in visitors %}
{% if user == request.user %}
<li class="current"><a href="{{ user.get_permanent_url }}">{{ user.get_full_name }}&nbsp;{% if user.company %}({{ user.company.name }}){% endif %}</a></li>
{% else %}
<li><a href="{{ user.get_permanent_url }}">{{ user.get_full_name }}&nbsp;{% if user.company %}({{ user.company.name }}){% endif %}</a></li>
{% endif %}
{% endfor %}
{% endif %}
</ul>
<p id="nobody" class=" mb-1em {% if exposition.users.all|length > 0 %}hidden{% else %}{% endif %}">{% trans 'Пока никто не отметился на событии.' %}</p>
<ul class="visitors-list" id="visitors-list"> <p><a id="somebody" class=" more mb-1em {% if visitors|length > 0 %}{%else%}hidden{% endif %}" href="{{ event.get_permanent_url }}visitors/">{% trans 'Все посетители' %}</a></p>
{% if visitors %} {% endwith %}
{# есть посетители #}
{% for user in visitors %}
{% if user == request.user %}
<li class="current"><a href="{{ user.get_permanent_url }}">{{ user.get_full_name }}&nbsp;{% if user.company %}({{ user.company.name }}){% endif %}</a></li>
{% else %}
<li><a href="{{ user.get_permanent_url }}">{{ user.get_full_name }}&nbsp;{% if user.company %}({{ user.company.name }}){% endif %}</a></li>
{% endif %}
{% endfor %}
{% endif %}
</ul>
<p id="nobody" class=" mb-1em {% if exposition.users.all|length > 0 %}hidden{% else %}{% endif %}">{% trans 'Пока никто не отметился на событии.' %}</p> {% with event=exposition user=user %}
{% include 'client/includes/visit_button.html' %}
{% endwith %}
</div>
<p><a id="somebody" class=" more mb-1em {% if visitors|length > 0 %}{%else%}hidden{% endif %}" href="{{ event.get_permanent_url }}visitors/">{% trans 'Все посетители' %}</a></p> {# Слайдер фото с прошлой выставки #}
{% endwith %} {% if exposition.get_photos %}
{% with photos=exposition.get_photos %}
<div class="conference_slider">
<h2><a href="{{ exposition.get_permanent_url }}photo/">{% trans 'Фотографии с прошлой конференции' %}</a></h2>
<div class="last_photos_slider">
{% for photo in photos %}
{% thumbnail photo.image '936x468' crop="center" as im %}
<a href="{{ exposition.get_permanent_url }}photo/"><img src="{{ im.url }}" width="{{ im.width }}" height="{{ im.height }}" alt="" /></a>
{% endthumbnail %}
{% endfor %}
</div>
{% with event=exposition user=user %} <div class="last_photos_thumbs">
{% include 'client/includes/visit_button.html' %} {% for photo in photos %}
{% endwith %} {% thumbnail photo.image '137x95' crop="center" as im %}
</div> <img src="{{ im.url }}" width="{{ im.width }}" height="{{ im.height }}" alt="" />
{% endthumbnail %}
{% endfor %}
</div>
</div>
{% endwith %}
{% endif %}
{# Слайдер фото с прошлой выставки #} <div class="exposition_news">
{% if exposition.get_photos %} {% include "client/includes/article/articles_in_event.html" with event=exposition news_list=news %}
{% with photos=exposition.get_photos %} </div>
<div class="conference_slider">
<h2><a href="{{ exposition.get_permanent_url }}photo/">{% trans 'Фотографии с прошлой конференции' %}</a></h2>
<div class="last_photos_slider">
{% for photo in photos %}
{% thumbnail photo.image '936x468' crop="center" as im %}
<a href="{{ exposition.get_permanent_url }}photo/"><img src="{{ im.url }}" width="{{ im.width }}" height="{{ im.height }}" alt="" /></a>
{% endthumbnail %}
{% endfor %}
</div>
<div class="last_photos_thumbs"> {% if exposition.members or exposition.visitors or exposition.foundation_year or exposition.area %}
{% for photo in photos %} <div class="e-num-info">
{% thumbnail photo.image '137x95' crop="center" as im %} {% if exposition.area %}
<img src="{{ im.url }}" width="{{ im.width }}" height="{{ im.height }}" alt="" /> <div class="eni-area-wrap">
{% endthumbnail %} <div class="eni-title">{% trans 'Общая выставочная площадь' %}</div>
{% endfor %} <div class="eni-area">
{{ exposition.area }} {% trans 'м²' %}
</div> </div>
</div> </div>
{% endwith %} {% endif %}
{% endif %} <div class="eni-stats">
{% if exposition.members %}
<div class="enis-item"><b>{{ exposition.members }}</b> {% trans 'участников' %}</div>
{% endif %}
<div class="exposition_news"> {% if exposition.visitors %}
{% include "client/includes/article/articles_in_event.html" with event=exposition news_list=news %} <div class="enis-item"><b>{{ exposition.visitors }}</b> {% trans 'посетителей' %}</div>
</div> {% endif %}
{% if exposition.members or exposition.visitors or exposition.foundation_year or exposition.area %} {% if exposition.foundation_year %}
<div class="e-num-info"> <div class="eni-founded">{% trans 'Основано в' %} <b>{{ exposition.foundation_year }}</b> {% trans 'году' %}</div>
{% if exposition.area %}
<div class="eni-area-wrap">
<div class="eni-title">{% trans 'Общая выставочная площадь' %}</div>
<div class="eni-area">
{{ exposition.area }} {% trans 'м²' %}
</div>
</div>
{% endif %} {% endif %}
<div class="eni-stats">
{% if exposition.members %}
<div class="enis-item"><b>{{ exposition.members }}</b> {% trans 'участников' %}</div>
{% endif %}
{% if exposition.visitors %}
<div class="enis-item"><b>{{ exposition.visitors }}</b> {% trans 'посетителей' %}</div>
{% endif %}
{% if exposition.foundation_year %}
<div class="eni-founded">{% trans 'Основано в' %} <b>{{ exposition.foundation_year }}</b> {% trans 'году' %}</div>
{% endif %}
</div>
</div> </div>
{% endif %}
<div class="conf_comments">
<h2>{% trans 'Комментарии' %}</h2>
{% include 'client/includes/comments.html' %}
</div> </div>
</div> {% endif %}
<div class="conf_sharing"> <div class="conf_comments">
{% include 'client/includes/sharing_block_full.html' %} <h2>{% trans 'Комментарии' %}</h2>
{% include 'client/includes/comments.html' %}
</div> </div>
</div>
{% include 'client/includes/banners/catalog_inner_2.html' %} <div class="conf_sharing">
{% include 'client/includes/sharing_block_full.html' %}
</div>
{% with themes=exposition.themes %} {% include 'client/includes/banners/catalog_inner_2.html' %}
{% for theme in themes %}
<li><a href="{{ object.catalog }}theme/{{ theme.url }}/">{{ theme.name }} ({{ theme.expositions_number }})</a></li>
{% endfor %}
{% endwith %}
{% if exposition.get_nearest_events %} {% with themes=exposition.themes %}
<div class="e-cat"> {% for theme in themes %}
<div class="sect-title"> <li><a href="{{ object.catalog }}theme/{{ theme.url }}/">{{ theme.name }} ({{ theme.expositions_number }})</a></li>
{% with themes=exposition.themes %} {% endfor %}
{% trans 'Ближайшие выставки по тематике' %} «{% for theme in themes %}{{ theme.name }}{% if not forloop.last %}, {% endif %}{% endfor %}» {% endwith %}
{% endwith %}
</div> {% if exposition.get_nearest_events %}
<ul class="cat-list cl-exhibitions"> <div class="e-cat">
{% for exp in exposition.get_nearest_events %} <div class="sect-title">
<li class="cl-item"> {% with themes=exposition.themes %}
<div class="cl-item-wrap clearfix"> {% trans 'Ближайшие выставки по тематике' %} «{% for theme in themes %}{{ theme.name }}{% if not forloop.last %}, {% endif %}{% endfor %}»
<a href="{{ exp.get_permanent_url }}"> {% endwith %}
<div class="cli-pict"> </div>
{% with obj=exp %} <ul class="cat-list cl-exhibitions">
{% include 'client/includes/show_logo.html' %} {% for exp in exposition.get_nearest_events %}
{% endwith %} <li class="cl-item">
<div class="cl-item-wrap clearfix">
<a href="{{ exp.get_permanent_url }}">
<div class="cli-pict">
{% with obj=exp %}
{% include 'client/includes/show_logo.html' %}
{% endwith %}
</div>
</a>
<div class="cli-info">
<div class="cli-top clearfix">
{% if exp.quality_label.rsva.is_set %}
<div class="cli-approved">
<img width="52" height="42" src="{% static 'client/img/rsva.jpg' %}" alt="" title="Approved Event" />
</div>
{% endif %}
{% if exp.quality_label.exporating.is_set %}
<div class="cli-approved">
<img width="52" height="42" src="{% static 'client/img/exporating_logo.png' %}" alt="" title="Approved Event" />
</div>
{% endif %}
{% if exp.quality_label.ufi.is_set %}
<div class="cli-approved">
<img width="52" height="42" src="{% static 'client/img/approved-logo.png' %}" alt="" title="Approved Event" />
</div>
{% endif %}
<header>
<div class="cli-title"><a href="{{ exp.get_permanent_url }}">{{ exp.name|safe }}</a></div>
</header>
<div class="cli-descr">
{{ exp.main_title|safe|linebreaks }}
</div> </div>
</a> <div class="cli-bot clearfix">
<div class="cli-info"> <div class="cli-date">
<div class="cli-top clearfix"> {% with obj=exp %}
{% if exp.quality_label.rsva.is_set %} {% include 'client/includes/show_date_block.html' %}
<div class="cli-approved"> {% endwith %}
<img width="52" height="42" src="{% static 'client/img/rsva.jpg' %}" alt="" title="Approved Event" />
</div>
{% endif %}
{% if exp.quality_label.exporating.is_set %}
<div class="cli-approved">
<img width="52" height="42" src="{% static 'client/img/exporating_logo.png' %}" alt="" title="Approved Event" />
</div>
{% endif %}
{% if exp.quality_label.ufi.is_set %}
<div class="cli-approved">
<img width="52" height="42" src="{% static 'client/img/approved-logo.png' %}" alt="" title="Approved Event" />
</div>
{% endif %}
<header>
<div class="cli-title"><a href="{{ exp.get_permanent_url }}">{{ exp.name|safe }}</a></div>
</header>
<div class="cli-descr">
{{ exp.main_title|safe|linebreaks }}
</div> </div>
<div class="cli-bot clearfix">
<div class="cli-date"> <div class="cli-place">
{% with obj=exp %} <a href="{{ exposition.catalog }}country/{{ exp.country.url }}/">{{ exp.country }}</a>, <a href="{{ exposition.catalog }}city/{{ exp.city.url }}/">{{ exp.city }}</a>
{% include 'client/includes/show_date_block.html' %} {% if exp.place %}
{% endwith %} , <a href="{{ exp.place.get_permanent_url }}">{{ exp.place }}</a>
</div> {% endif %}
<div class="cli-place">
<a href="{{ exposition.catalog }}country/{{ exp.country.url }}/">{{ exp.country }}</a>, <a href="{{ exposition.catalog }}city/{{ exp.city.url }}/">{{ exp.city }}</a>
{% if exp.place %}
, <a href="{{ exp.place.get_permanent_url }}">{{ exp.place }}</a>
{% endif %}
</div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</li> </div>
{% endfor %} </li>
<li><a class="button more" href="{{ exposition.get_nearest_events_url|safe }}">{% trans 'Смотреть все' %}</a></li> {% endfor %}
</ul> <li><a class="button more" href="{{ exposition.get_nearest_events_url|safe }}">{% trans 'Смотреть все' %}</a></li>
</div> </ul>
{% endif %}
{% include 'client/includes/banners/detail_inner_3.html' %}
<div class="e-cat look-also">
<div class="sect-title">{% trans 'Смотрите также:' %}</div>
<a href="{{ exposition.catalog }}city/{{ exposition.city.url }}/">{% trans "Выставки" %} {% if request.LANGUAGE_CODE == 'ru' and exposition.city.inflect %}{{ exposition.city.inflect }}{% else %}{% trans 'in' %} {{ exposition.city.name }}{% endif %}</a>
<a href="{{ exposition.catalog }}country/{{ exposition.country.url }}/">{% trans "Выставки" %} {% if request.LANGUAGE_CODE == 'ru' and exposition.country.inflect %}{{ exposition.country.inflect }}{% else %}{% trans 'in' %} {{ exposition.country.name }}{% endif %}</a>
{% if exposition.theme.all %}
<a href="{{ exposition.catalog }}theme/{{ exposition.theme.all.0.url }}/country/{{ exposition.country.url }}/">{% trans "Выставки по тематике " %}&laquo;{{ exposition.theme.all.0.name|capfirst }}&raquo; {% if request.LANGUAGE_CODE == 'ru' and exposition.country.inflect %}{{ exposition.country.inflect }}{% else %}{% trans 'in' %} {{ exposition.country.name }}{% endif %}</a>
<a href="{{ exposition.catalog }}theme/{{ exposition.theme.all.0.url }}/city/{{ exposition.city.url }}/">{% trans "Выставки по тематике " %}&laquo;{{ exposition.theme.all.0.name|capfirst }}&raquo; {% if request.LANGUAGE_CODE == 'ru' and exposition.city.inflect %}{{ exposition.city.inflect }}{% else %}{% trans 'in' %} {{ exposition.city.name }}{% endif %}</a>
{% endif %}
</div> </div>
{% endblock %} {% endif %}
{% block content_text %}{% endblock %}
{% block popup %} {% include 'client/includes/banners/detail_inner_3.html' %}
{% include 'client/popups/advertise_member.html' with form=advertising_form %}
{% include 'client/popups/event_news_subscribe.html' %}
{% endblock %}
{% block scripts %} <div class="e-cat look-also">
{% if request.GET.debug == '1' %} <div class="sect-title">{% trans 'Смотрите также:' %}</div>
<script src="{% static 'client/js/_modules/page.exposition.object.js' %}"></script> <a href="{{ exposition.catalog }}city/{{ exposition.city.url }}/">{% trans "Выставки" %} {% if request.LANGUAGE_CODE == 'ru' and exposition.city.inflect %}{{ exposition.city.inflect }}{% else %}{% trans 'in' %} {{ exposition.city.name }}{% endif %}</a>
{% else %} <a href="{{ exposition.catalog }}country/{{ exposition.country.url }}/">{% trans "Выставки" %} {% if request.LANGUAGE_CODE == 'ru' and exposition.country.inflect %}{{ exposition.country.inflect }}{% else %}{% trans 'in' %} {{ exposition.country.name }}{% endif %}</a>
<script src="{% static 'client/js_min/_modules/page.exposition.object.min.js' %}"></script> {% if exposition.theme.all %}
<a href="{{ exposition.catalog }}theme/{{ exposition.theme.all.0.url }}/country/{{ exposition.country.url }}/">{% trans "Выставки по тематике " %}&laquo;{{ exposition.theme.all.0.name|capfirst }}&raquo; {% if request.LANGUAGE_CODE == 'ru' and exposition.country.inflect %}{{ exposition.country.inflect }}{% else %}{% trans 'in' %} {{ exposition.country.name }}{% endif %}</a>
<a href="{{ exposition.catalog }}theme/{{ exposition.theme.all.0.url }}/city/{{ exposition.city.url }}/">{% trans "Выставки по тематике " %}&laquo;{{ exposition.theme.all.0.name|capfirst }}&raquo; {% if request.LANGUAGE_CODE == 'ru' and exposition.city.inflect %}{{ exposition.city.inflect }}{% else %}{% trans 'in' %} {{ exposition.city.name }}{% endif %}</a>
{% endif %} {% endif %}
</div>
<script> {% include 'client/popups/advertise_member.html' with form=advertising_form %}
EXPO.exposition.object.init({ {% include 'client/popups/event_news_subscribe.html' %}
visit:{
activeClass:"visit", {% if request.GET.debug == '1' %}
passiveClass:"unvisit", <script src="{% static 'client/js/_modules/page.exposition.object.js' %}"></script>
currentHtml:'<li class="current"><a href="{{ request.user.get_permanent_url }}">{{ request.user.get_full_name }}&nbsp;{% if request.user.company %}({{ request.user.company.name }}){% endif %}</a></li>', {% else %}
visitorsListId:"visitors-list", <script src="{% static 'client/js_min/_modules/page.exposition.object.min.js' %}"></script>
somebodyId:"somebody", {% endif %}
nobodyId:"nobody"
}, <script>
advertise:{ EXPO.exposition.object.init({
id:"advert-member-form" visit:{
}, activeClass:"visit",
event_news_subscribe:{ passiveClass:"unvisit",
id: "event-news-subscribe-form" currentHtml:'<li class="current"><a href="{{ request.user.get_permanent_url }}">{{ request.user.get_full_name }}&nbsp;{% if request.user.company %}({{ request.user.company.name }}){% endif %}</a></li>',
}, visitorsListId:"visitors-list",
addCalendarText:"{% trans 'В расписание' %}", somebodyId:"somebody",
removeCalendarText:"{% trans 'Из расписания' %}" nobodyId:"nobody"
}); },
</script> advertise:{
id:"advert-member-form"
<script src="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick.min.js"></script> },
<script> event_news_subscribe:{
$(window).load(function () { id: "event-news-subscribe-form"
$('.last_photos_slider').slick({ },
slidesToShow: 1, addCalendarText:"{% trans 'В расписание' %}",
slidesToScroll: 1, removeCalendarText:"{% trans 'Из расписания' %}"
fade: true, });
asNavFor: '.last_photos_thumbs' </script>
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick.min.js"></script>
$('.last_photos_thumbs').slick({ <script>
slidesToShow: 5, $(window).load(function () {
slidesToScroll: 1, $('.last_photos_slider').slick({
asNavFor: '.last_photos_slider', slidesToShow: 1,
dots: false, slidesToScroll: 1,
variableWidth: true, fade: true,
focusOnSelect: true asNavFor: '.last_photos_thumbs'
});
}); });
$(function() { $('.last_photos_thumbs').slick({
var $recommended = $('#recommended_expositions'), slidesToShow: 5,
$statistics = $('#expo_statistics'), slidesToScroll: 1,
$text = $('.expo_description_detail'), asNavFor: '.last_photos_slider',
$main_image = $('.exposition_main_image'); dots: false,
variableWidth: true,
$recommended focusOnSelect: true
.insertBefore($text.find('>*').eq(-2)) });
.show(); });
if ($main_image.data('background')) { $(function() {
$main_image.css('background', 'url(' + $main_image.data('background') + ')'); var $recommended = $('#recommended_expositions'),
} $statistics = $('#expo_statistics'),
$text = $('.expo_description_detail'),
if ($statistics.children().length > 1) { $main_image = $('.exposition_main_image');
$statistics.show();
} $recommended
}) .insertBefore($text.find('>*').eq(-2))
</script> .show();
{% endblock %}
if ($main_image.data('background')) {
$main_image.css('background', 'url(' + $main_image.data('background') + ')');
}
if ($statistics.children().length > 1) {
$statistics.show();
}
})
</script>
{% endblock %} {% endblock %}

Loading…
Cancel
Save