1380: Этап №4 - Пустая тематика на конференциях

remotes/origin/mobile_from_stage4
Alexander Burdeiny 10 years ago
parent 57e68c8f0b
commit 3884abb4af
  1. 5
      conference/admin.py
  2. 5
      conference/admin_urls.py
  3. 5
      exposition/admin.py
  4. 6
      exposition/admin_urls.py
  5. 30
      functions/admin_views.py
  6. 4
      proj/views.py
  7. 2
      settings/admin.py
  8. 23
      templates/admin/conference/conference_list.html
  9. 2
      templates/admin/expobanner/comment_list.html
  10. 2
      templates/admin/expobanner/pcomment_list.html
  11. 24
      templates/admin/exposition/exposition_list.html
  12. 21
      templates/admin/place_conference/place_conference_list.html
  13. 2
      templates/admin/redirects/list.html
  14. 67
      templates/client/includes/conference/conference_object.html
  15. 8
      templates/client/includes/conference/conference_paid.html
  16. 13
      templates/client/includes/exposition/expo_paid.html
  17. 67
      templates/client/includes/exposition/exposition_object.html

@ -26,6 +26,7 @@ from forms import (
) )
from functions.admin_views import ( from functions.admin_views import (
AdminListView, AdminListView,
AdminListViewNoThemeMixin,
AdminView, AdminView,
stat_paginate_results, stat_paginate_results,
upload_photo upload_photo
@ -310,6 +311,10 @@ class ConferenceListView(AdminListView):
model = Conference model = Conference
class ConferenceListViewNoTheme(AdminListViewNoThemeMixin, ConferenceListView):
pass
def upload_conference_photo(request, conf_id): def upload_conference_photo(request, conf_id):
return upload_photo(request, conf_id, Conference) return upload_photo(request, conf_id, Conference)

@ -1,12 +1,13 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from django.conf.urls import patterns, include, url from django.conf.urls import patterns, include, url
from admin import ConferenceListView, ConferenceView from admin import ConferenceListView, ConferenceView, ConferenceListViewNoTheme
urlpatterns = patterns('conference.admin', urlpatterns = patterns('conference.admin',
url(r'^upload-photo/(?P<conf_id>.*)/$', 'upload_conference_photo'), url(r'^upload-photo/(?P<conf_id>.*)/$', 'upload_conference_photo'),
url(r'^delete/(?P<url>.*)$', 'conference_delete'), url(r'^delete/(?P<url>.*)$', 'conference_delete'),
url(r'^copy/$', 'conf_copy'), url(r'^copy/$', 'conf_copy'),
url(r'^all/$', ConferenceListView.as_view()), url(r'^all/$', ConferenceListView.as_view(), name='admin-conference-all'),
url(r'^notheme/$', ConferenceListViewNoTheme.as_view(), name='admin-conference-notheme'),
#url(r'^change/(?P<url>.*)/$', 'conference_change'), #url(r'^change/(?P<url>.*)/$', 'conference_change'),
url(r'^switch/(?P<url>.*)/(?P<action>.*)$', 'conference_switch'), url(r'^switch/(?P<url>.*)/(?P<action>.*)$', 'conference_switch'),

@ -24,6 +24,7 @@ from forms import (
) )
from functions.admin_views import ( from functions.admin_views import (
AdminListView, AdminListView,
AdminListViewNoThemeMixin,
AdminView, AdminView,
stat_paginate_results, stat_paginate_results,
upload_photo upload_photo
@ -349,6 +350,10 @@ class ExpositionListView(AdminListView):
model = Exposition model = Exposition
class ExpositionListViewNoTheme(AdminListViewNoThemeMixin, ExpositionListView):
pass
def upload_exposition_photo(request, expo_id): def upload_exposition_photo(request, expo_id):
return upload_photo(request, expo_id, Exposition) return upload_photo(request, expo_id, Exposition)

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from django.conf.urls import patterns, include, url from django.conf.urls import patterns, include, url
from admin import ExpositionListView, ExpositionView from admin import ExpositionListView, ExpositionView, ExpositionListViewNoTheme
urlpatterns = patterns('exposition.admin', urlpatterns = patterns('exposition.admin',
url(r'^upload-photo/(?P<expo_id>.*)/$', 'upload_exposition_photo'), url(r'^upload-photo/(?P<expo_id>.*)/$', 'upload_exposition_photo'),
@ -9,7 +9,9 @@ urlpatterns = patterns('exposition.admin',
#url(r'^add.*/$', 'exposition_add'), #url(r'^add.*/$', 'exposition_add'),
url(r'^delete/(?P<url>.*)/$', 'exposition_delete'), url(r'^delete/(?P<url>.*)/$', 'exposition_delete'),
#url(r'^change/(?P<url>.*)/$', 'exposition_change'), #url(r'^change/(?P<url>.*)/$', 'exposition_change'),
url(r'^all/$', ExpositionListView.as_view()), url(r'^all/$', ExpositionListView.as_view(), name='admin-exposition-all'),
url(r'^notheme/$', ExpositionListViewNoTheme.as_view(), name='admin-exposition-notheme'),
url(r'^switch/(?P<url>.*)/(?P<action>.*)$', 'exposition_switch'), url(r'^switch/(?P<url>.*)/(?P<action>.*)$', 'exposition_switch'),
#url(r'^copy/(?P<url>.*)$', 'exposition_copy'), #url(r'^copy/(?P<url>.*)$', 'exposition_copy'),
url(r'^search/$', 'search_expo'), url(r'^search/$', 'search_expo'),

@ -131,16 +131,38 @@ class AdminListView(FormView):
context.update({'object_list': result}) context.update({'object_list': result})
return self.render_to_response(context) return self.render_to_response(context)
def get_context_data(self, **kwargs): def get_queryset(self):
context = super(AdminListView, self).get_context_data(**kwargs)
if issubclass(self.model, TranslatableModel): if issubclass(self.model, TranslatableModel):
qs = self.model.objects.language().all().order_by('name') return self.model.objects.language().all().order_by('name')
else: else:
qs = self.model.objects.all().order_by('-modified') return self.model.objects.all().order_by('-modified')
def get_context_data(self, **kwargs):
context = super(AdminListView, self).get_context_data(**kwargs)
qs = self.get_queryset()
result = self.paginate_func(qs, page=self.request.GET.get('page')) result = self.paginate_func(qs, page=self.request.GET.get('page'))
context['object_list'] = result context['object_list'] = result
return context return context
class AdminListViewNoThemeMixin(object):
def get_queryset(self):
return self.model.objects.language().filter(theme__isnull=True).order_by('name')
def form_valid(self, form):
qs = form.filter()
qs = qs.filter(theme__isnull=True)
result = self.paginate_func(qs, page=self.request.GET.get('page'))
context = self.get_context_data(form=form)
context.update({'object_list': result})
return self.render_to_response(context)
def get_context_data(self, **kwargs):
context = super(AdminListViewNoThemeMixin, self).get_context_data(**kwargs)
context.update({'notheme': True})
return context
def upload_photo(request, id, Model): def upload_photo(request, id, Model):
""" """
uploading photo to some instance of Model uploading photo to some instance of Model

@ -86,8 +86,8 @@ class MainPageView(JitterCacheMixin, TemplateView):
# update main_page counter # update main_page counter
for event in events: for event in events:
event.main.link.log(self.request, 1) event.main.link.log(self.request, 1)
exposition_themes = Theme.objects.language().filter(main_page=True).order_by('-main_page').filter(types=Theme.types.exposition)[:6] exposition_themes = Theme.objects.language().filter(main_page=True, types=Theme.types.exposition)[:6]
conference_themes = Theme.objects.language().filter(main_page=True).order_by('-main_page').filter(types=Theme.types.conference)[:6] conference_themes = Theme.objects.language().filter(main_page=True, types=Theme.types.conference)[:6]
args = {'events': events, 'exposition_themes': exposition_themes, 'conference_themes': conference_themes, args = {'events': events, 'exposition_themes': exposition_themes, 'conference_themes': conference_themes,
'search_form': ExpositionSearchForm, 'search_action': '/expo/search/', 'search_form': ExpositionSearchForm, 'search_action': '/expo/search/',

@ -46,7 +46,7 @@ def main_page(request):
news_form.fields['main_page_news'].widget.attrs['data-init-text'] = json.dumps(a) news_form.fields['main_page_news'].widget.attrs['data-init-text'] = json.dumps(a)
article_form = MainPageArticle(initial={'article' : blogs}) article_form = MainPageArticle(initial={'article' : blogs})
args = { 'theme_form' : MainPageThemes(initial=themes), args = {'theme_form' : MainPageThemes(initial=themes),
'article_form' : article_form, 'article_form' : article_form,
'news_form' : news_form} 'news_form' : news_form}
args.update(csrf(request)) args.update(csrf(request))

@ -20,12 +20,25 @@ td a{
<div class="box-header well"> <div class="box-header well">
<h2><i class="icon-arrow-down"></i>{% trans "Фильтры" %}</h2> <h2><i class="icon-arrow-down"></i>{% trans "Фильтры" %}</h2>
</div> </div>
<div class="box-content">
<form>
{{ form }}
<button type="submit" class="btn">{% trans "Найти" %}</button> <div class="span4" style="margin-left: 0px;">
</form> <div class="box-content">
<form>
{{ form }}
<button type="submit" class="btn">{% trans "Найти" %}</button>
</form>
</div>
</div>
<div class="span4" style="margin-left: 0px;">
<div class="box-content">
{% if notheme %}
<a class="btn-small btn-success" href="{% url 'admin-conference-all' %}">Отобразить все события</a>
{% else %}
<a class="btn-small btn-danger" href="{% url 'admin-conference-notheme' %}">Отобразить события с пустыми темами</a>
{% endif %}
</div>
</div> </div>
</div> </div>

@ -32,6 +32,6 @@
{% endblock %} {% endblock %}
</div> </div>
{# pagination #} {# pagination #}
{% include 'admin/includes/admin_pagination.html' with page_obj=page_obj %} {% include 'admin/includes/admin_pagination.html' with page_obj=object_list %}
</div> </div>
{% endblock %} {% endblock %}

@ -32,6 +32,6 @@
{% endblock %} {% endblock %}
</div> </div>
{# pagination #} {# pagination #}
{% include 'admin/includes/admin_pagination.html' with page_obj=page_obj %} {% include 'admin/includes/admin_pagination.html' with page_obj=object_list %}
</div> </div>
{% endblock %} {% endblock %}

@ -19,15 +19,29 @@ td a{
<div class="box-header well"> <div class="box-header well">
<h2><i class="icon-arrow-down"></i>{% trans "Фильтры" %}</h2> <h2><i class="icon-arrow-down"></i>{% trans "Фильтры" %}</h2>
</div> </div>
<div class="box-content">
<form>
{{ form }}
<button type="submit" class="btn">{% trans "Найти" %}</button> <div class="span4" style="margin-left: 0px;">
</form> <div class="box-content">
<form>
{{ form }}
<button type="submit" class="btn">{% trans "Найти" %}</button>
</form>
</div>
</div>
<div class="span4" style="margin-left: 0px;">
<div class="box-content">
{% if notheme %}
<a class="btn-small btn-success" href="{% url 'admin-exposition-all' %}">Отобразить все события</a>
{% else %}
<a class="btn-small btn-danger" href="{% url 'admin-exposition-notheme' %}">Отобразить события с пустыми темами</a>
{% endif %}
</div>
</div> </div>
</div> </div>
<div class="box span8"> <div class="box span8">
<div class="box-header well"> <div class="box-header well">
<h2><i class="icon-arrow-down"></i>{% trans "Список выставок" %}</h2> <h2><i class="icon-arrow-down"></i>{% trans "Список выставок" %}</h2>

@ -1,16 +1,17 @@
{% extends 'admin_list.html' %} {% extends 'admin_list.html' %}
{% load i18n %}
{% block body %} {% block body %}
<div class="box span8"> <div class="box span8">
<div class="box-header well"> <div class="box-header well">
<h2><i class="icon-arrow-down"></i>Фильтры</h2> <h2><i class="icon-arrow-down"></i>{% trans "Фильтры" %}</h2>
</div> </div>
<div class="box-content"> <div class="box-content">
<form> <form>
{{ form }} {{ form }}
<button type="submit" class="btn">Найти</button> <button type="submit" class="btn">{% trans "Найти" %}</button>
</form> </form>
</div> </div>
@ -18,16 +19,16 @@
<div class="box span8"> <div class="box span8">
<div class="box-header well"> <div class="box-header well">
<h2><i class="icon-arrow-down"></i>Места проведения конференций</h2> <h2><i class="icon-arrow-down"></i>{% trans "Места проведения конференций" %}</h2>
</div> </div>
<div class="box-content"> <div class="box-content">
<table class="table table-hover"> <table class="table table-hover">
<thead> <thead>
<tr> <tr>
<th>Название</th> <th>{% trans "Название" %}</th>
<th>Страна</th> <th>{% trans "Страна" %}</th>
<th>Город</th> <th>{% trans "Город" %}</th>
<th>&nbsp;</th> <th>&nbsp;</th>
</tr> </tr>
</thead> </thead>
@ -39,24 +40,24 @@
<td>{% ifnotequal item.city None %}{{ item.city }} {% endifnotequal %}</td> <td>{% ifnotequal item.city None %}{{ item.city }} {% endifnotequal %}</td>
<td class="center sorting_1"> <td class="center sorting_1">
<a class="btn-small btn-info" href="/admin/place_conference/{{ item.url|lower }}/"> <a class="btn-small btn-info" href="/admin/place_conference/{{ item.url|lower }}/">
Изменить {% trans "Изменить" %}
</a> </a>
</td> </td>
<td class="center sorting_1"> <td class="center sorting_1">
<a class="btn-small btn-inverse" href="/admin/place_conference/copy/{{ item.url|lower }}"> <a class="btn-small btn-inverse" href="/admin/place_conference/copy/{{ item.url|lower }}">
Копировать {% trans "Копировать" %}
</a> </a>
</td> </td>
<td> <td>
<a class="btn-small btn-danger" href="/admin/place_conference/delete/{{ item.url|lower }}"> <a class="btn-small btn-danger" href="/admin/place_conference/delete/{{ item.url|lower }}">
Удалить {% trans "Удалить" %}
</a> </a>
</td> </td>
</tr> </tr>
{% endfor %} {% endfor %}
</tbody> </tbody>
</table> </table>
<a class="btn btn-success" href="/admin/place_conference/add"><i class="icon-plus-sign icon-white"></i> Добавить конферец зал</a> <a class="btn btn-success" href="/admin/place_conference/add"><i class="icon-plus-sign icon-white"></i> {% trans "Добавить конферец зал" %}</a>
</div> </div>
{# pagination #} {# pagination #}
{% include 'admin/includes/admin_pagination.html' with page_obj=object_list %} {% include 'admin/includes/admin_pagination.html' with page_obj=object_list %}

@ -32,6 +32,6 @@
{% endblock %} {% endblock %}
</div> </div>
{# pagination #} {# pagination #}
{% include 'admin/includes/admin_pagination.html' with page_obj=page_obj %} {% include 'admin/includes/admin_pagination.html' with page_obj=object_list %}
</div> </div>
{% endblock %} {% endblock %}

@ -353,46 +353,53 @@
</div> </div>
{% endif %} {% endif %}
{% include 'client/includes/banners/detail_inner_3.html' %} {% include 'client/includes/banners/detail_inner_3.html' %}
<div class="e-cat look-also"> <div class="e-cat look-also">
<h2 class="sect-title">{% trans 'Смотрите также:' %}</h2> <h2 class="sect-title">{% trans 'Смотрите также:' %}</h2>
<a href="{{ event.catalog }}city/{{ event.city.url }}/">{% trans "Конференции" %} {% if request.LANGUAGE_CODE == 'ru' and event.city.inflect %}{{ event.city.inflect }}{% else %}{% trans 'in' %} {{ event.city.name }}{% endif %}</a> <a href="{{ event.catalog }}city/{{ event.city.url }}/">{% trans "Конференции" %} {% if request.LANGUAGE_CODE == 'ru' and event.city.inflect %}{{ event.city.inflect }}{% else %}{% trans 'in' %} {{ event.city.name }}{% endif %}</a>
<a href="{{ event.catalog }}country/{{ event.country.url }}/">{% trans "Конференции" %} {% if request.LANGUAGE_CODE == 'ru' and event.country.inflect %}{{ event.country.inflect }}{% else %}{% trans 'in' %} {{ event.country.name }}{% endif %}</a> <a href="{{ event.catalog }}country/{{ event.country.url }}/">{% trans "Конференции" %} {% if request.LANGUAGE_CODE == 'ru' and event.country.inflect %}{{ event.country.inflect }}{% else %}{% trans 'in' %} {{ event.country.name }}{% endif %}</a>
<a href="{{ event.catalog }}theme/{{ event.theme.all.0.url }}/country/{{ event.country.url }}/">{% trans "Конференции по тематике " %}&laquo;{{ event.theme.all.0.name|capfirst }}&raquo; {% if request.LANGUAGE_CODE == 'ru' and event.country.inflect %}{{ event.country.inflect }}{% else %}{% trans 'in' %} {{ event.country.name }}{% endif %}</a> {% if event.theme.all %}
<a href="{{ event.catalog }}theme/{{ event.theme.all.0.url }}/city/{{ event.city.url }}/">{% trans "Конференции по тематике " %}&laquo;{{ event.theme.all.0.name|capfirst }}&raquo; {% if request.LANGUAGE_CODE == 'ru' and event.city.inflect %}{{ event.city.inflect }}{% else %}{% trans 'in' %} {{ event.city.name }}{% endif %}</a> <a href="{{ event.catalog }}theme/{{ event.theme.all.0.url }}/country/{{ event.country.url }}/">{% trans "Конференции по тематике " %}&laquo;{{ event.theme.all.0.name|capfirst }}&raquo; {% if request.LANGUAGE_CODE == 'ru' and event.country.inflect %}{{ event.country.inflect }}{% else %}{% trans 'in' %} {{ event.country.name }}{% endif %}</a>
<a href="{{ event.catalog }}theme/{{ event.theme.all.0.url }}/city/{{ event.city.url }}/">{% trans "Конференции по тематике " %}&laquo;{{ event.theme.all.0.name|capfirst }}&raquo; {% if request.LANGUAGE_CODE == 'ru' and event.city.inflect %}{{ event.city.inflect }}{% else %}{% trans 'in' %} {{ event.city.name }}{% endif %}</a>
{% endif %}
</div> </div>
{% endblock %} {% endblock %}
{% block content_text %} {% block content_text %}
{% endblock %} {% endblock %}
{% block popup %} {% block popup %}
{% include 'client/popups/advertise_member.html' with form=advertising_form %} {% include 'client/popups/advertise_member.html' with form=advertising_form %}
{% endblock %} {% endblock %}
{% block scripts %} {% block scripts %}
{% if request.GET.debug == '1' %} {% if request.GET.debug == '1' %}
<script src="{% static 'client/js/_modules/page.exposition.object.js' %}"></script> <script src="{% static 'client/js/_modules/page.exposition.object.js' %}"></script>
{% else %} {% else %}
<script src="{% static 'client/js_min/_modules/page.exposition.object.min.js' %}"></script> <script src="{% static 'client/js_min/_modules/page.exposition.object.min.js' %}"></script>
{% endif %} {% endif %}
<script> <script>
EXPO.exposition.object.init({ EXPO.exposition.object.init({
visit:{ visit:{
activeClass:"visit", activeClass:"visit",
passiveClass:"unvisit", passiveClass:"unvisit",
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>', 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", visitorsListId:"visitors-list",
somebodyId:"somebody", somebodyId:"somebody",
nobodyId:"nobody" nobodyId:"nobody"
}, },
note:{ note:{
wrapClass:'note-wrap', wrapClass:'note-wrap',
wrapDisabledClass:'note-wrap-disabled', wrapDisabledClass:'note-wrap-disabled',
buttonClass:'note-button', buttonClass:'note-button',
inputClass:'note-text' inputClass:'note-text'
}, },
advertise:{ advertise:{
id:"advert-member-form" id:"advert-member-form"
}, },
addCalendarText:"{% trans 'В расписание' %}", addCalendarText:"{% trans 'В расписание' %}",
removeCalendarText:"{% trans 'Из расписания' %}" removeCalendarText:"{% trans 'Из расписания' %}"
}); });
</script> </script>
{% endblock %} {% endblock %}

@ -388,13 +388,17 @@
</div> </div>
{% endif %} {% endif %}
{% include 'client/includes/banners/detail_inner_3.html' %} {% include 'client/includes/banners/detail_inner_3.html' %}
<div class="e-cat look-also"> <div class="e-cat look-also">
<h2 class="sect-title">{% trans 'Смотрите также:' %}</h2> <h2 class="sect-title">{% trans 'Смотрите также:' %}</h2>
<a href="{{ event.catalog }}city/{{ event.city.url }}/">{% trans "Конференции" %} {% if request.LANGUAGE_CODE == 'ru' and event.city.inflect %}{{ event.city.inflect }}{% else %}{% trans 'in' %} {{ event.city.name }}{% endif %}</a> <a href="{{ event.catalog }}city/{{ event.city.url }}/">{% trans "Конференции" %} {% if request.LANGUAGE_CODE == 'ru' and event.city.inflect %}{{ event.city.inflect }}{% else %}{% trans 'in' %} {{ event.city.name }}{% endif %}</a>
<a href="{{ event.catalog }}country/{{ event.country.url }}/">{% trans "Конференции" %} {% if request.LANGUAGE_CODE == 'ru' and event.country.inflect %}{{ event.country.inflect }}{% else %}{% trans 'in' %} {{ event.country.name }}{% endif %}</a> <a href="{{ event.catalog }}country/{{ event.country.url }}/">{% trans "Конференции" %} {% if request.LANGUAGE_CODE == 'ru' and event.country.inflect %}{{ event.country.inflect }}{% else %}{% trans 'in' %} {{ event.country.name }}{% endif %}</a>
<a href="{{ event.catalog }}theme/{{ event.theme.all.0.url }}/country/{{ event.country.url }}/">{% trans "Конференции по тематике " %}&laquo;{{ event.theme.all.0.name|capfirst }}&raquo; {% if request.LANGUAGE_CODE == 'ru' and event.country.inflect %}{{ event.country.inflect }}{% else %}{% trans 'in' %} {{ event.country.name }}{% endif %}</a> {% if event.theme.all %}
<a href="{{ event.catalog }}theme/{{ event.theme.all.0.url }}/city/{{ event.city.url }}/">{% trans "Конференции по тематике " %}&laquo;{{ event.theme.all.0.name|capfirst }}&raquo; {% if request.LANGUAGE_CODE == 'ru' and event.city.inflect %}{{ event.city.inflect }}{% else %}{% trans 'in' %} {{ event.city.name }}{% endif %}</a> <a href="{{ event.catalog }}theme/{{ event.theme.all.0.url }}/country/{{ event.country.url }}/">{% trans "Конференции по тематике " %}&laquo;{{ event.theme.all.0.name|capfirst }}&raquo; {% if request.LANGUAGE_CODE == 'ru' and event.country.inflect %}{{ event.country.inflect }}{% else %}{% trans 'in' %} {{ event.country.name }}{% endif %}</a>
<a href="{{ event.catalog }}theme/{{ event.theme.all.0.url }}/city/{{ event.city.url }}/">{% trans "Конференции по тематике " %}&laquo;{{ event.theme.all.0.name|capfirst }}&raquo; {% if request.LANGUAGE_CODE == 'ru' and event.city.inflect %}{{ event.city.inflect }}{% else %}{% trans 'in' %} {{ event.city.name }}{% endif %}</a>
{% endif %}
</div> </div>
{% endblock %} {% endblock %}
{% block content_text %} {% block content_text %}

@ -372,13 +372,16 @@
</ul> </ul>
</div> </div>
{% endif %} {% endif %}
<div class="e-cat look-also">
<h2 class="sect-title">{% trans 'Смотрите также:' %}</h2> <div class="e-cat look-also">
<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> <h2 class="sect-title">{% trans 'Смотрите также:' %}</h2>
<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> <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 }}/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> <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>
</div> {% endif %}
</div>
{% endblock %} {% endblock %}
{% block content_text %} {% block content_text %}

@ -381,43 +381,48 @@
<div class="e-cat look-also"> <div class="e-cat look-also">
<h2 class="sect-title">{% trans 'Смотрите также:' %}</h2> <h2 class="sect-title">{% trans 'Смотрите также:' %}</h2>
<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 }}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> <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>
<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> {% if exposition.theme.all %}
<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> <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 %} {% endblock %}
{% block content_text %} {% block content_text %}
{% endblock %} {% endblock %}
{% block popup %} {% block popup %}
{% include 'client/popups/advertise_member.html' with form=advertising_form %} {% include 'client/popups/advertise_member.html' with form=advertising_form %}
{% endblock %} {% endblock %}
{% block scripts %} {% block scripts %}
{% if request.GET.debug == '1' %} {% if request.GET.debug == '1' %}
<script src="{% static 'client/js/_modules/page.exposition.object.js' %}"></script> <script src="{% static 'client/js/_modules/page.exposition.object.js' %}"></script>
{% else %} {% else %}
<script src="{% static 'client/js_min/_modules/page.exposition.object.min.js' %}"></script> <script src="{% static 'client/js_min/_modules/page.exposition.object.min.js' %}"></script>
{% endif %} {% endif %}
<script> <script>
EXPO.exposition.object.init({ EXPO.exposition.object.init({
visit:{ visit:{
activeClass:"visit", activeClass:"visit",
passiveClass:"unvisit", passiveClass:"unvisit",
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>', 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", visitorsListId:"visitors-list",
somebodyId:"somebody", somebodyId:"somebody",
nobodyId:"nobody" nobodyId:"nobody"
}, },
note:{ note:{
wrapClass:'note-wrap', wrapClass:'note-wrap',
wrapDisabledClass:'note-wrap-disabled', wrapDisabledClass:'note-wrap-disabled',
buttonClass:'note-button', buttonClass:'note-button',
inputClass:'note-text' inputClass:'note-text'
}, },
advertise:{ advertise:{
id:"advert-member-form" id:"advert-member-form"
}, },
addCalendarText:"{% trans 'В расписание' %}", addCalendarText:"{% trans 'В расписание' %}",
removeCalendarText:"{% trans 'Из расписания' %}" removeCalendarText:"{% trans 'Из расписания' %}"
}); });
</script> </script>
{% endblock %} {% endblock %}

Loading…
Cancel
Save