{% 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 :
{% endif %}
{% if key == "plural" %}
Plural Name :
{% endif %}
{% if key == "type_of" %}
Type of :
{% endif %}
{% if key == "contains_subtypes" %}
SubTypes :
{% endif %}
{% if key == "siblings" %}
{% if value %}
Siblings:
{% endif %}
{% if key == "member_of_metatypes" %}
Member of Metatypes :
{% endif %}
{% if key == "contains_members" %}
Contains Member objects :
{% endif %}
{% if key == "leftroles" %}
Left role of Relation types :
{% endif %}
{% if key == "rightroles" %}
Right role of Relation types :
{% endif %}
{% if key == "posteriornodes" %}
Posterior nodes :
{% endif %}
{% if key == "priornodes" %}
Priornodes :
{% endif %}
{% endif %}
{% endfor %}
{% endwith %}
{% endblock %}
{% block attributetype-widgets %}
{% trans "Pingbacks are open." %}
{% else %}{% trans "Pingbacks are closed." %}
{% endif %} {% endwith %}
{% trans "Comments" %}
{% with object.comments as comment_list %} {% if comment_list.count %}{% for comment in comment_list %}-
{% if comment.url %}
{{ comment.user_name }}
{% else %}
{{ comment.user_name }}
{% endif %}
{% trans "on" %} {{ comment.submit_date|date:"SHORT_DATETIME_FORMAT" }}
{{ comment.comment|linebreaks }}
{% 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 %}