{% extends "gstudio/base.html" %} {% load i18n comments gstudio_tags %} {% block title %}{{ object.title }}{% endblock %} {% block meta-description %}{% if object.excerpt %}{{ object.excerpt|striptags }}{% else %}{{ object.content|striptags|truncatewords:100 }}{% endif %}{% endblock %} {% block meta-keywords %}{% if object.tags %}{{ object.tags }}{% else %}{{ block.super }}{% endif %}{% endblock %} {% block link %} {{ block.super }} {% with object.previous_attributetype as previous_attributetype %}{% if previous_attributetype %} {% endif %}{% endwith %} {% with object.next_attributetype as next_attributetype %}{% if next_attributetype %} {% endif %}{% endwith %} {% with year=object.creation_date|date:"Y" month=object.creation_date|date:"m" day=object.creation_date|date:"d" %} {% endwith %} {% endblock %} {% block content %} {% block attributetype-content %} {% with object.html_content|safe as object_content %} Test successful : {{ object.title }}
{% for key,value in object.get_rendered_nbh.items %} {% if value %} {% if key == "altnames" %} Alternate names : {{value}}
{% endif %} {% if key == "plural" %} Plural Name : {{value}}
{% endif %} {% if key == "type_of" %} Type of : {{value}}
{% endif %} {% if key == "contains_subtypes" %} SubTypes : {{value}}
{% endif %} {% if key == "siblings" %} {% if value %} Siblings: {% endif %} {% for sibkey,sibvalue in value.items %} {{sibkey}}; {% endfor %}
{% endif %} {% if key == "member_of_metatypes" %} Member of Metatypes : {% for mkey,mvalue in value.items %} {{mkey}}; {% endfor %}
{% endif %} {% if key == "contains_members" %} Contains Member objects : {% for mkey,mvalue in value.items %} {{mkey}}; {% endfor %}
{% endif %} {% if key == "leftroles" %} Left role of Relation types : {% for lftkey, lftvalue in value.items %} {{lftkey}}; {% endfor %}
{% endif %} {% if key == "rightroles" %} Right role of Relation types : {% for rghtkey, rghtvalue in value.items %} {{rghtkey}}; {% endfor %}
{% endif %} {% if key == "posteriornodes" %} Posterior nodes : {% for mkey,mvalue in value.items %} {{mkey}}; {% endfor %}
{% endif %} {% if key == "priornodes" %} Priornodes : {% for mkey,mvalue in value.items %} {{mkey}}; {% endfor %}
{% endif %} {% endif %} {% endfor %} {% endwith %} {% endblock %} {% block attributetype-widgets %}
{% with object.next_attributetype as next_attributetype %} {% if object.posteriornodes.all %}
{% trans "Posterior node" %}
{% for items in object.posteriornodes.all %} {{ items.title }}; {% endfor %}
{% endif %} {% endwith %} {% if object.priornodes.all %}
{% trans "Prior node" %}
{% for items in object.priornodes.all %} {{ items.title }}; {% endfor %}
{% endif %} {% endwith %} {% if object.related_published %} {% endif %}
{% endblock %} {% block attributetype-comments %}
{% trans "Comments" %}
{% with object.comments as comment_list %} {% if comment_list.count %}
    {% for comment in comment_list %} {% endfor %}
{% if not object.comments_are_open %}

{% trans "Comments are closed." %}

{% endif %} {% else %} {% if object.comments_are_open %}

{% trans "No comments yet." %}

{% else %}

{% trans "Comments are closed." %}

{% endif %} {% endif %} {% endwith %}
{% endblock %} {% block attributetype-pingbacks %}
{% trans "Pingbacks" %}
{% with object.pingbacks as pingback_list %} {% if pingback_list.count %}
    {% for pingback in pingback_list %}
  1. {{ pingback.user_name }} {% trans "on" %} {{ pingback.submit_date|date:"SHORT_DATETIME_FORMAT" }}
    {{ pingback.comment }}
  2. {% endfor %}
{% endif %} {% if object.pingback_enabled %}

{% trans "Pingbacks are open." %}

{% else %}

{% trans "Pingbacks are closed." %}

{% endif %} {% endwith %}
{% endblock %} {% block attributetype-trackbacks %} {% with object.trackbacks as trackback_list %} {% if trackback_list.count or object.pingback_enabled %}
{% trans "Trackbacks" %}
{% if trackback_list.count %}
    {% for trackback in trackback_list %}
  1. {{ trackback.user_name }} {% trans "on" %} {{ trackback.submit_date|date:"SHORT_DATETIME_FORMAT" }}
    {{ trackback.comment }}
  2. {% endfor %}
{% endif %} {% if object.pingback_enabled %}

{% trans "Trackback URL" %}

{% endif %}
{% endif %} {% endwith %} {% endblock %} {% block attributetype-comments-form %} {% if object.comments_are_open %}
{% render_comment_form for object %}
{% endif %} {% endblock %} {% endblock %} {% block admin_tools %} {% if perms.gstudio.change_attributetype %}
  • {% trans "Edit the node type" %}
  • {% endif %} {% endblock %}