blob: 745dce0c29f8785efc778fc591e6d06d1a856f26 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
{% load i18n mptt_tags %}
{% for metatype, structure in metatypes|tree_info %}
{% if structure.new_level %}<ul><li>{% else %}</li><li>{% endif %}
<a href="{{ metatype.get_absolute_url }}" title="{{ metatype.title }}">{{ metatype.title }}</a>
{% blocktrans count metatype.nodetypes_published.count as nodetype_count %}{{ nodetype_count }} nodetype{% plural %}{{ nodetype_count }} nodetypes{% endblocktrans %}
{% for level in structure.closed_levels %}</li></ul>{% endfor %}
{% empty %}
<ul>
<li>
{% trans "No metatypes yet." %}
</li>
</ul>
{% endfor %}
|