diff options
Diffstat (limited to 'objectapp/templates/objectapp/tags/objecttypes.html')
-rw-r--r-- | objectapp/templates/objectapp/tags/objecttypes.html | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/objectapp/templates/objectapp/tags/objecttypes.html b/objectapp/templates/objectapp/tags/objecttypes.html new file mode 100644 index 0000000..9c54641 --- /dev/null +++ b/objectapp/templates/objectapp/tags/objecttypes.html @@ -0,0 +1,16 @@ +{% load i18n mptt_tags %} + +{% for Objecttype, structure in objecttypes|tree_info %} + {% if structure.new_level %}<ul><li>{% else %}</li><li>{% endif %} + <a href="{{ Objecttype.get_absolute_url }}" title="{{ Objecttype.title }}">{{ Objecttype.title }}</a> + {% blocktrans count Objecttype.gbobjects_published.count as gbobject_count %}{{ gbobject_count }} gbobject{% plural %}{{ gbobject_count }} gbobjects{% endblocktrans %} + {% for level in structure.closed_levels %}</li></ul>{% endfor %} + {% empty %} +<ul> + <li> + {% trans "No objecttypes yet." %} + </li> +</ul> +{% endfor %} + + |