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.
 
 
 
 
 
 

87 lines
3.5 KiB

{% load mptt_tags pensfonds_tags guestbook_tags utility_tags my_cms_tags %}
{% url 'guestbook-index' as the_guestbook_url %}
{% url 'pensfonds-all' as the_pensfonds_url %}
<div id="sitemap">
{% for page, structure in pages|tree_info %}
{% if structure.new_level %}
<ul>
<li>
{% else %}
</li>
<li>
{% endif %}
<a href="{% if request.is_secure %}https{% else %}http{% endif %}://{{ request.get_host }}{{ page.get_absolute_url }}">{{ page }}</a>
{% if page.reverse_id == 'guestbook' %} {# вывести категории вопросов-ответов #}
{% get_guestbook_categories as guestbook_categories %}
<ul>
{% for category in guestbook_categories %}
<li>
<a href="{% if request.is_secure %}https{% else %}http{% endif %}://{{ request.get_host }}{{ category.get_absolute_url }}">{{ category }}</a>
</li>
{% endfor %}
</ul>
{% endif %}
{% for level in structure.closed_levels %}
</ul>
{% endfor %}
{% endfor %}
<ul>
<li>
<a href="{% if request.is_secure %}https{% else %}http{% endif %}://{{ request.get_host }}{{ the_pensfonds_url }}">Отделения пенсионного фонда России</a>
</li>
{% get_obl_otdelens as obl_otdelens %}
{% get_obl_naspunkts as obl_naspunkts %}
<ul>
{% for fed_okrug, obl_list in obl_otdelens.iteritems %}
<li>{{ fed_okrug }}</li>
<ul>
{% for obl in obl_list %}
<li>
<a href="{% if request.is_secure %}https{% else %}http{% endif %}://{{ request.get_host }}{% url 'pensfonds-oblast' obl.slug %}">{{ obl.oblast }}</a>
</li>
{% if obl in obl_naspunkts %}
<ul>
{% for naspunkt in obl_naspunkts|get_item:obl %}
<li>
<a href="{% if request.is_secure %}https{% else %}http{% endif %}://{{ request.get_host }}{% url 'pensfonds-naspunkt' obl.slug naspunkt.slug %}">{{ naspunkt.name }}</a>
</li>
{% endfor %}
</ul>
{% endif %}
{% endfor %}
</ul>
{% endfor %}
</ul>
</ul>
{% get_cms_page_by_reverse_id 'npf' as npf_page %}
{% if npf_page %}
<ul>
<li>
<a href="{% if request.is_secure %}https{% else %}http{% endif %}://{{ request.get_host }}{{ npf_page.get_absolute_url }}">{{ npf_page.get_title }}</a>
</li>
{% get_cms_subpages npf_page 1 as npf_subpages %}
<ul>
{% for npf_sp in npf_subpages %}
{% if npf_sp.is_public_published %}
<li>
<a href="{% if request.is_secure %}https{% else %}http{% endif %}://{{ request.get_host }}{{ npf_sp.get_absolute_url }}">{{ npf_sp.get_title }}</a>
</li>
{% endif %}
{% endfor %}
</ul>
</ul>
{% endif %}
</div>
{% block catalog %}{% endblock %}