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