summaryrefslogtreecommitdiff
path: root/gstudio/templates/gstudio/tags
diff options
context:
space:
mode:
authorAnkita <ankita@ankita-Inspiron-N5010.(none)>2012-07-13 12:31:27 +0530
committerAnkita <ankita@ankita-Inspiron-N5010.(none)>2012-07-13 12:31:27 +0530
commit527ab688a8608ded5fc854cf8641228181efa981 (patch)
tree825f17422ce610922f8f34854c5e54db7a7f35ad /gstudio/templates/gstudio/tags
parentef3793b349be5744d6ef98a034f0c009159ed85b (diff)
downloadgnowsys-527ab688a8608ded5fc854cf8641228181efa981.tar.gz
this patch was added for metastudio by BITS Pilani team in 2012.
Diffstat (limited to 'gstudio/templates/gstudio/tags')
-rw-r--r--gstudio/templates/gstudio/tags/comment.html68
1 files changed, 68 insertions, 0 deletions
diff --git a/gstudio/templates/gstudio/tags/comment.html b/gstudio/templates/gstudio/tags/comment.html
new file mode 100644
index 0000000..cf446fe
--- /dev/null
+++ b/gstudio/templates/gstudio/tags/comment.html
@@ -0,0 +1,68 @@
+
+
+
+
+
+{% load gstudio_tags %}
+{% load i18n %}
+
+
+
+{% if comment.posterior_nodes.count %}
+<!--<ul style="display: none;">-->
+<ul>
+{% for child in comment.posterior_nodes.all %}
+ <!-- Flag1 outside {{flag}}-->
+ {% for each in child.authors.all %}
+ {% ifequal idusr admin_id %}
+ <li>{{each}} says <font style = "color:red;" size = 3>{{child.title}}</font>
+ <form method="post" action=".">{% csrf_token %}
+ <input type="text" name = "reply">
+ <input type="hidden" value={{child.id}} name = "parentid">
+ <input type="hidden" value={{idusr}} name="idusr">
+ <input type="submit" value="Post a Reply">
+ <input type="checkbox" name="del_comment" value="delete_comment">
+ <input type="submit" value="delete this comment">
+ </form>
+ {% show_comment child idusr flag admin_id attribute%}
+ </li>
+ {% else %}
+ {% ifequal idusr each.id %}
+ <li>{{each}} says <font style = "color:red;" size = 3>{{child.title}}</font>
+ <form method="post" action=".">{% csrf_token %}
+ <input type="text" name = "reply">
+ <input type="hidden" value={{child.id}} name = "parentid">
+ <input type="hidden" value={{idusr}} name="idusr">
+ <input type="submit" value="Post a Reply">
+ <input type="checkbox" name="del_comment" value="delete_comment">
+ <input type="submit" value="delete this comment">
+ </form>
+ {% show_comment child idusr flag admin_id attribute%}
+ </li>
+ {% else %}
+ {% ifequal attribute "true" %}
+
+ <li>{{each}} says <font style = "color:red;" size = 3>{{child.title}}</font>
+ <form method="post" action=".">{% csrf_token %}
+ <input type="text" name = "reply">
+ <input type="hidden" value={{child.id}} name = "parentid">
+ <input type="hidden" value={{idusr}} name="idusr">
+ <input type="submit" value="Post a Reply">
+ <input type="checkbox" name="del_comment" value="delete_comment">
+ <input type="submit" value="delete this comment">
+ </form>
+ {% show_comment child idusr flag admin_id attribute%}
+ </li>
+ {% endifequal %}
+ {% endifequal %}
+ {% endifequal %}
+ {% endfor %}
+
+
+{% endfor %}
+</ul>
+{% endif %}
+
+
+
+