From 7a4f561e851fdc7246d804c3abb6748b8a4199a6 Mon Sep 17 00:00:00 2001 From: gnowgi Date: Thu, 15 Mar 2012 16:19:20 +0530 Subject: master trunk of gnowsys-studio --- gstudio/templates/gstudio/nodetype_list.html | 143 +++++++++++++++++++++++++++ 1 file changed, 143 insertions(+) create mode 100644 gstudio/templates/gstudio/nodetype_list.html (limited to 'gstudio/templates/gstudio/nodetype_list.html') diff --git a/gstudio/templates/gstudio/nodetype_list.html b/gstudio/templates/gstudio/nodetype_list.html new file mode 100644 index 0000000..f4f75bd --- /dev/null +++ b/gstudio/templates/gstudio/nodetype_list.html @@ -0,0 +1,143 @@ +{% extends "gstudio/base.html" %} +{% load i18n gstudio_tags %} + +{% block meta-description %}{% trans "Latest nodetypes for" %} {% if metatype %}{% trans "the metatype" %} {{ metatype }}{% if metatype.description %}: {{ metatype.description|striptags|safe }}{% endif %}{% endif %}{% if tag %}{% trans "the tag" %} {{ tag }}{% endif %}{% if author %}{% trans "the author" %} {{ author }}{% endif %}{% if page_obj %}{% ifnotequal page_obj.number 1 %} {% trans "page" %} {{ page_obj.number }}{% endifnotequal %}{% endif %}{% endblock %} + +{% block link %} + {{ block.super }} + {% if metatype %} + + {% endif %} + {% if tag %} + + {% endif %} + {% if author %} + + {% endif %} +{% endblock %} + +{% block title %}{% trans "Latest nodetypes" %} {% if metatype %}| {% trans "Metatype" %} {{ metatype }}{% endif %}{% if tag %}| {% trans "Tag" %} {{ tag }}{% endif %}{% if author %}| {% trans "Author" %} {{ author }}{% endif %}{% if page_obj %}{% ifnotequal page_obj.number 1 %} | {% trans "Page" %} {{ page_obj.number }}{% endifnotequal %}{% endif %}{% endblock %} + +{% block content %} +{% if metatype %} +

{{ metatype.title }}

+
{{ metatype.composed_sentence }}
+ + Name: {{ metatype.title }}
+ + {% if metatype.altnames %} + Alternate names: + {% endif %} + {{ metatype.altnames }}
+ + {% if object.plural %} + Plural Name: {{ metatype.plural }}
+ {% endif %} + + {% if object.parent %} + Type of: + {{ metatype.parent.title }}
+ {% endif %} + + {% if metatype.get_children %} + SubTypes: + {% for items in metatype.get_children %} + {{ items.title }}; + {% endfor %}
+ {% endif %} + + {% if metatype.get_siblings %} + Siblings: + {% for items in metatype.get_siblings %} + {{ items.title }}; + {% endfor %}
+ {% endif %} + + {% if metatype.metatypes.all %} + Member of Metatypes: + {% for items in metatype.metatypes.all %} + {{ items.title }}; + {% endfor %}
+ {% endif %} + + {% if metatype.nodetypes.all %} + Contains member node types: + {% for items in metatype.nodetypes.all %} + {{ items.title }}; + {% endfor %}
+ {% endif %} + + {% if metatype.subjecttypeLeft_gbnodetype.all %} + Left role of relation types: + {% for items in metatype.subjecttypeLeft_gbnodetype.all %} + {{ items.title }}; + {% endfor %}
+ {% endif %} + + {% if metatype.subjecttypeRight_gbnodetype.all %} + Right role of relation types: + {% for items in metatype.subjecttypeRight_gbnodetype.all %} + {{ items.title }}; + {% endfor %}
+ {% endif %} + + {% if metatype.subjecttype_GbnodeType.all %} + As domain of attribute types: + {% for items in metatype.subjecttype_GbnodeType.all %} + {{ items.title }}; + {% endfor %}
+ {% endif %} + + + + +{% if metatype.description %} +

{{ metatype.description|striptags|safe }}

+{% endif %} +{% endif %} + +{% if tag %} +

{% trans "Tag" %} : {{ tag }}

+{% endif %} + +{% if author %} +

{% blocktrans with author.username as author %}Nodetypes by {{ author }}{% endblocktrans %}

+{% endif %} + +{% for object in object_list %} + {% with object.html_content|truncatewords_html:100|safe as object_content %} + {% include "gstudio/_nodetype_detail.html" %} + {% endwith %} +{% empty %} +

{% trans "No nodes in the network yet. Login and construct a network!" %}

+{% endfor %} + +{% if is_paginated %} + {% gstudio_pagination page_obj %} +{% endif %} +{% endblock %} + +{% block admin_tools %} + {% if metatype and perms.gstudio.change_metatype %} +
  • + + {% trans "Edit the metatype" %} + +
  • + {% endif %} + {% if tag and perms.tagging.change_tag %} +
  • + + {% trans "Edit the tag" %} + +
  • + {% endif %} + {% if author and perms.auth.change_user %} +
  • + + {% trans "Edit the author" %} + +
  • + {% endif %} +{% endblock %} + -- cgit v1.1