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.
44 lines
1.3 KiB
44 lines
1.3 KiB
{% extends 'base_catalog.html' %}
|
|
{% load static %}
|
|
{% load i18n %}
|
|
{% load template_filters %}
|
|
|
|
{% block style %}
|
|
<link rel="stylesheet" href="{% static 'client/css/pages/exposition_by.css' %}">
|
|
{% endblock %}
|
|
|
|
|
|
{% block bread_scrumbs %}
|
|
<div class="bread-crumbs">
|
|
<a href="/">{% trans 'Главная страница' %}</a>
|
|
<a href="{{ expo_catalog }}">{% trans 'Выставки' %}</a>
|
|
<strong>{{ title1 }}</strong>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block page_title %}
|
|
<div class="page-title">
|
|
<h1>{{ title2 }}:</h1>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block content_list %}
|
|
{% with objects=object_list %}
|
|
{% for obj in objects %}
|
|
{% set cur_word = obj.name %}
|
|
{% if cur_word|slice:":1"|lower != prev_word|slice:":1"|lower and forloop.counter != 1 %}
|
|
</ul>
|
|
{% endif %}
|
|
{% if cur_word|slice:":1"|lower != prev_word|slice:":1"|lower %}
|
|
<ul class="leter-list">
|
|
<div class="leter"><font size="5">{{ cur_word|slice:":1"|upper }}</font></div>
|
|
{% endif %}
|
|
<li>
|
|
<a href="{{ expo_catalog }}{{ catalog }}{{ obj.url }}/">{{ obj.name }} ({{ obj.expositions_number }})</a>
|
|
</li>
|
|
{% set prev_word = obj.name %}
|
|
{% endfor %}
|
|
{% endwith %}
|
|
|
|
{% endblock %}
|
|
|
|
|