diff options
author | gnowgi <nagarjun@gnowledge.org> | 2012-03-15 16:19:20 +0530 |
---|---|---|
committer | gnowgi <nagarjun@gnowledge.org> | 2012-03-15 16:19:20 +0530 |
commit | 7a4f561e851fdc7246d804c3abb6748b8a4199a6 (patch) | |
tree | d2afc3463fd49625a9be482012f5c3bfcf7c42b9 /gstudio/templates/gstudio/metatype_list.html | |
download | gnowsys-7a4f561e851fdc7246d804c3abb6748b8a4199a6.tar.gz |
master trunk of gnowsys-studio
Diffstat (limited to 'gstudio/templates/gstudio/metatype_list.html')
-rw-r--r-- | gstudio/templates/gstudio/metatype_list.html | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gstudio/templates/gstudio/metatype_list.html b/gstudio/templates/gstudio/metatype_list.html new file mode 100644 index 0000000..bff3842 --- /dev/null +++ b/gstudio/templates/gstudio/metatype_list.html @@ -0,0 +1,25 @@ +{% extends "gstudio/base.html" %} +{% load i18n mptt_tags %} + +{% block meta-description %}{% trans "Metatype list" %}{% endblock %} + +{% block title %}{% trans "Metatypes" %}{% endblock %} + +{% block content %} +<h2>{% trans "Metatype list" %}</h2> +<div> + {% for object, structure in object_list|tree_info %} + {% if structure.new_level %}<ul><li>{% else %}</li><li>{% endif %} + <a href="{{ object.get_absolute_url }}" title="{{ object }}">{{ object }}</a> + {% blocktrans count object.nodetypes_published.count as nodetype_count %}{{ nodetype_count }} nodetype{% plural %}{{ nodetype_count }} nodetypes{% endblocktrans %} + {% if object.description %}<br />{{ object.description|striptags|safe }}{% endif %} + {% for level in structure.closed_levels %}</li></ul>{% endfor %} + {% empty %} + <ul> + <li> + {% trans "No metatypes yet." %} + </li> + </ul> + {% endfor %} +</div> +{% endblock %} |