+ {% ifequal object.ref.get_nbh.member_of|slugify 'nodetype-ot-document' %}
+ {{object.title}} is a Document
+ {% else %}
+ {% ifequal object.ref.get_nbh.member_of|slugify 'nodetype-ot-image' %}
+ {{object.title}} is an Image
+
+ {% else %}
+ {% ifequal object.ref.get_nbh.member_of|slugify 'nodetype-ot-video' %}
+ {{object.title}} is a Video
+ {% else %}
+ {% ifequal object.ref.get_nbh.member_of|slugify 'nodetype-ot-topic' %}
+ {{object.title}} is a Topic of a Loom-thread
+ {% else %}
+ {% ifequal object.ref.get_nbh.member_of|slugify 'nodetype-ot-section' %}
+ {{object.title}} is a Section of a wiki-page
+ {% else %}
+ {% ifequal object.ref.get_nbh.member_of|slugify 'nodetype-ot-reply' %}
+
+ {% for eachobject in object.ref.prior_nodes.all %}
+ {% if eachobject.ref.prior_nodes.all %}
+ {% for eachobject1 in eachobject.ref.prior_nodes.all %}
+ {% if eachobject1.ref.prior_nodes.all %}
+ {% for eachobject2 in eachobject1.ref.prior_nodes.all %}
+ {{object.title}} is a Reply
+ {% endfor %}
+ {% else %}
+ {{object.title}} is a Reply
+ {% endif %}
+ {% endfor %}
+ {% else %}
+ {{object.title}} is a Reply
+ {% endif %}
+
+ {% endfor %}
+ {% else %}
+ {% ifequal object.ref.get_nbh.member_of|slugify 'nodetype-ot-subsection' %}
+ {% for eachobject in object.ref.prior_nodes.all %}
+ {{object.title}} is a Subsection of a Section wiki-page
+ {% endfor %}
+ {% else %}
+ {{ object.title }}
+
+
+
+
+
+{% endifequal %}
+{% endifequal %}
+{% endifequal %}
+ {% endifequal %}
+ {% endifequal %}
+ {% endifequal %}
+ {% endifequal %}
+
+
+
+
+
+
+
+
- {% if object.authors.count %}
+ {% if object.ref.authors.count %}
{% trans "Contributed by" %}
- {% for author in object.authors.all %}
+ {% for author in object.ref.authors.all %}
{{ author }}
diff --git a/gstudio/templates/gstudio/docu.html b/gstudio/templates/gstudio/docu.html
index bb66363..8519321 100644
--- a/gstudio/templates/gstudio/docu.html
+++ b/gstudio/templates/gstudio/docu.html
@@ -3,12 +3,14 @@
{% load adminmedia grp_tags %}
{% load i18n comments gstudio_tags %}
{% load i18n objectapp_tags %}
+ {% block title %}Documents{% endblock %}
{% block content %}
{% load tagging_tags comments i18n %}
+
+
+
+
+
+
+
+
+
+
+
+
+
+{% ifequal doc.rating.get_rating 0 %}
+
+Current rating is: No rating yet
+{% else %}
+Average Current rating is: {{ doc.rating.get_rating }}
+Total Number of votes is: {{ doc.rating_votes }}
+{% endifequal %}
+
+{% if user.is_authenticated %}
+
+
+
+
+{% endif %}
+
+
+
+ {% trans "Tags" %} :
+ {% tags_for_object doc as tag_list %}
+ {% for tag in tag_list %}
+ {{ tag }}
+ {% empty %}
+ {% trans "No tags" %}
+ {% endfor %}
+
+
+
+{% block nodetype-comments %}
+
+
{% trans "Comments" %}
+ {% with doc.comments as comment_list %}
+ {% if comment_list.count %}
+
+ {% for comment in comment_list %}
+
{% trans "Comments" %}
+ {% with doc.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 doc.comments_are_open %} +{% trans "Comments are closed." %}
+ {% endif %} + {% else %} + {% if doc.comments_are_open %} +{% trans "No comments yet." %}
+ {% else %} +{% trans "Comments are closed." %}
+ {% endif %} + {% endif %} + {% endwith %} +