summaryrefslogtreecommitdiff
path: root/gstudio/templates/gstudio/_nodetype_detail.html
blob: fc5d95f7c57013747ca09c48ad2297b6e3e49ac4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
{% load tagging_tags comments i18n %}
{% load i18n gstudio_tags %}
<div id="nodetype-{{ object.pk }}" class="hnodetype{% if object.featured %} featured{% endif %} span-16 last">
  <div class="nodetype-header span-16 last">
 <h2 class="nodetype-title">
    {% ifequal object.ref.get_nbh.member_of|slugify  'nodetype-ot-document'  %}
      <a href="/gstudio/resources/documents/show/{{object.id}}">{{object.title}}</a>&nbsp;<font size="2" color="black"> is a Document</font>

      {% else %}
      {% ifequal object.ref.get_nbh.member_of|slugify  'nodetype-ot-image'  %}
      <a href="/gstudio/resources/images/show/{{object.id}}">{{object.title}}</a>&nbsp;<font size="2" color="black"> is an Image</font>

      {% else %}
      {% ifequal object.ref.get_nbh.member_of|slugify  'nodetype-ot-video'  %}
      <a href="/gstudio/resources/videos/show/{{object.id}}">{{object.title}}</a>&nbsp;<font size="2" color="black"> is a Video</font>
      {% else %}
      {% ifequal object.ref.get_nbh.member_of|slugify  'nodetype-ot-topic'  %}
	  <a href="/gstudio/{% show_nodesystem  object.id  %}">{{object.title}}</a>&nbsp; <font size="2" color="black">is a Topic of a Loom-thread</font>
	 {% else %}
     {% ifequal object.ref.get_nbh.member_of|slugify  'nodetype-ot-section'  %}
	 <a href="/gstudio/{% show_nodesystem  object.id  %}">{{object.title}}</a>&nbsp;<font size="2" color="black"> is a Section of a wiki-page</font>
	{% 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 %}
						 <a href="/gstudio/{% show_nodesystem  eachobject2.id  %}">{{object.title}}</a>&nbsp; <font size="2" color="black">is a Reply</font>
					{% endfor %}
				{% else %}
					 <a href="/gstudio/{% show_nodesystem  eachobject1.id  %}">{{object.title}}</a>&nbsp; <font size="2" color="black">is a Reply </font>
				{% endif %}
			{% endfor %}
		{% else %}
		 <a href="/gstudio/{% show_nodesystem  eachobject.id  %}">{{object.title}}</a>&nbsp;<font size="2" color="black"> is a Reply </font>
		{% endif %}

	{% endfor %}
	{% else %}
     {% ifequal object.ref.get_nbh.member_of|slugify  'nodetype-ot-subsection'  %}
	{% for eachobject in object.ref.prior_nodes.all %}
	 <a href="/gstudio/{% show_nodesystem  eachobject.id  %}">{{object.title}}</a>&nbsp;<font size="2" color="black"> is a Subsection of a Section wiki-page</font>
	{% endfor %}
	{% else %}
<a href="{{ object.get_absolute_url }}" title="{{ object.title }}" rel="bookmark" id = "{{object.id}}awikiloom"> {{ object.title }} </a><font size="2" color="black">
<script type="text/javascript" >
var a = "{% show_nodesystem  object.id %}"
if (a != "")
{
document.getElementById("{{object.id}}awikiloom").setAttribute("href","/gstudio/"+a);
space = a.replace( "/", " " );
b = space.match("group")
c = space.match("page")
if(b == "group"){
document.write("is a Loom thread" );
}
if(c == "page"){
document.write("is a Wiki page" );
}

}
else
{
var e;
e = "{{ object.nodemodel}}";
if(e == "Gbobject")
{document.write("is an Object");
}
else
{
document.write("is a {{object.nodemodel}}");
}
}
</script>
</font>
	
      

{% endifequal %}
{% endifequal %}
{% endifequal %}
	{% endifequal %}
       {% endifequal %}
       {% endifequal %}
       {% endifequal %}


     
<!--	<a href="{{ object.ref.get_edit_url }}" target="_blank" >[edit]</a>     -->
		
    </h2>




    <p class="nodetype-info">
	

      {% if object.ref.authors.count %}
      {% trans "Contributed by" %}
      {% for author in object.ref.authors.all %}
      <span class="vcard author">
        <a href="{% url gstudio_author_detail author %}" class="fn nickname url" rel="author"
           title="{% blocktrans with author as author %}Show {{ author }} nodetypes{% endblocktrans %}">{{ author }}</a>
      </span>{% if not forloop.last %}, {% endif %}
      {% endfor %}
      {% trans "on" %}
      {% else %}
      {% trans "Contributed by" %}
      {% endif %}
      <abbr class="published" title="{{ object.creation_date|date:"c" }}Z">{{ object.creation_date|date:"DATE_FORMAT" }}</abbr>



</div>
</div>