Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

added loom studio

  • Loading branch information...
commit b1f71c5439e3bdf7a3c0fb2c1730d6242c6356d9 1 parent 1a2ce99
anujag authored
46 gstudio/methods.py
@@ -13,10 +13,28 @@ def delete(idnum):
13 13
14 14 def make_rep_object(title,auth_id):
15 15 new_ob = Gbobject()
16   - new_ob.title = title
  16 + new_ob.content_org=title
  17 + myfile = open('/tmp/file.org', 'w')
  18 + myfile.write(new_ob.content_org)
  19 + myfile.close()
  20 + myfile = open('/tmp/file.org', 'r')
  21 + myfile.readline()
  22 + myfile = open('/tmp/file.org', 'a')
  23 + myfile.write("\n#+OPTIONS: timestamp:nil author:nil creator:nil H:3 num:nil toc:nil @:t ::t |:t ^:t -:t f:t *:t <:t")
  24 + myfile.write("\n#+TITLE: ")
  25 + myfile = open('/tmp/file.org', 'r')
  26 + stdout = os.popen(PYSCRIPT_URL_GSTUDIO)
  27 + output = stdout.read()
  28 + data = open("/tmp/file.html")
  29 + data1 = data.readlines()
  30 + data2 = data1[67:]
  31 + newdata=""
  32 + for line in data2:
  33 + newdata += line.lstrip()
  34 + new_ob.content = newdata
  35 + new_ob.title = "Re: " +title
17 36 new_ob.status = 2
18 37 new_ob.slug = slugify(title)
19   - new_ob.content = ""
20 38 new_ob.save()
21 39 new_ob.objecttypes.add(Objecttype.objects.get(title="Reply"))
22 40 new_ob.authors.add(Author.objects.get(id=auth_id))
@@ -24,11 +42,31 @@ def make_rep_object(title,auth_id):
24 42 return new_ob
25 43
26 44 def make_topic_object(title,auth_id,content):
  45 + print "save"
27 46 new_ob = Gbobject()
28   - new_ob.title = title
  47 + new_ob.title = "Query: " + title
  48 + new_ob.content_org = content
  49 + myfile = open('/tmp/file.org', 'w')
  50 + myfile.write(new_ob.content_org)
  51 + myfile.close()
  52 + myfile = open('/tmp/file.org', 'r')
  53 + myfile.readline()
  54 + myfile = open('/tmp/file.org', 'a')
  55 + myfile.write("\n#+OPTIONS: timestamp:nil author:nil creator:nil H:3 num:nil toc:nil @:t ::t |:t ^:t -:t f:t *:t <:t")
  56 + myfile.write("\n#+TITLE: ")
  57 + myfile = open('/tmp/file.org', 'r')
  58 + stdout = os.popen(PYSCRIPT_URL_GSTUDIO)
  59 + output = stdout.read()
  60 + data = open("/tmp/file.html")
  61 + data1 = data.readlines()
  62 + data2 = data1[67:]
  63 + newdata=""
  64 + for line in data2:
  65 + newdata += line.lstrip()
  66 + new_ob.content = newdata
29 67 new_ob.status = 2
30 68 new_ob.slug = slugify(title)
31   - new_ob.content = content
  69 +
32 70 new_ob.save()
33 71 new_ob.objecttypes.add(Objecttype.objects.get(title="Topic"))
34 72 new_ob.authors.add(Author.objects.get(id=auth_id))
32 gstudio/static/gstudio/js/replycomment.js
... ... @@ -0,0 +1,32 @@
  1 +$.noConflict();
  2 +jQuery(document).ready(function($) {
  3 + $(".commenteditor").one("click",function() {
  4 + $("#chart").hide();
  5 + $("#content").css({"width": "300px",})
  6 + document.getElementById('gnoweditor').style.visibility="visible";
  7 + $("#gnoweditor").orgitdown(mySettings);
  8 + var screentop=$(document).scrollTop();
  9 + $(".orgitdownContainer").css({"margin-top":screentop,});
  10 + });
  11 +
  12 + $(".commentsavecontent").one("click",function(){
  13 + var org_data = $("#gnoweditor").val();
  14 +
  15 +
  16 +// document.getElementByClass("commentreptext").setAttribute("value",org_data);
  17 + var elmts = document.getElementsByClassName ("commentreptext");
  18 + for (var i = 0; i < elmts.length; i++) {
  19 + elmts[i].setAttribute("value",org_data);
  20 + }
  21 + alert(org_data);
  22 +
  23 + });
  24 + $(".deleteresponse").one("click",function() {
  25 + var elmts=document.getElementsByClassName("deleteresponse");
  26 + alert("hai");
  27 + alert(elmts.length);
  28 +
  29 +
  30 +
  31 + });
  32 +});
30 gstudio/static/gstudio/js/replytotopic.js
... ... @@ -0,0 +1,30 @@
  1 + $.noConflict();
  2 + jQuery(document).ready(function($) {
  3 + $(".editor").one("click",function() {
  4 + $("#chart").hide();
  5 + $("#content").css({"width": "300px",})
  6 + document.getElementById('gnoweditor').style.visibility="visible";
  7 + $("#gnoweditor").orgitdown(mySettings);
  8 + var screentop=$(document).scrollTop();
  9 + $(".orgitdownContainer").css({"margin-top":screentop,});
  10 +
  11 + });
  12 +
  13 +
  14 + $(".savecontent").one("click",function() {
  15 + alert("Please click on Submit");
  16 + var org_data = $("#gnoweditor").val();
  17 +
  18 + // alert(org_data);
  19 + // document.getElementsByClassName("reptext").value = org_data;
  20 +
  21 + var elmts = document.getElementsByClassName ("reptext");
  22 + for (var i = 0; i < elmts.length; i++) {
  23 + elmts[i].setAttribute("value",org_data);
  24 + }
  25 +
  26 + });
  27 +
  28 +
  29 +
  30 + });
17 gstudio/static/gstudio/js/topiccomment.js
... ... @@ -0,0 +1,17 @@
  1 + $.noConflict();
  2 + jQuery(document).ready(function($) {
  3 + $("#topicaddcontent").one("click",function() {
  4 + $("#chart").hide();
  5 + $("#content").css({"width": "300px",})
  6 + document.getElementById('gnoweditor').style.visibility="visible";
  7 + $("#gnoweditor").orgitdown(mySettings);
  8 + var screentop=$(document).scrollTop();
  9 + $(".orgitdownContainer").css({"margin-top":screentop,});
  10 + });
  11 +
  12 + $("#topicaddsave").one("click",function(){
  13 + var org_data = $("#gnoweditor").val();
  14 + $("#contenttext").val(org_data);
  15 + $('#topicsubmit').trigger('click');
  16 + });
  17 + });
24 gstudio/templates/gstudio/NewTopic1.html
... ... @@ -1,7 +1,20 @@
1 1
2 2 {% extends "gstudio/base.html" %}
3 3 {% block content %}
4   -<h1>Add a new Topic</h1>
  4 +<script src="http://code.jquery.com/jquery-latest.js"></script>
  5 + <script type="text/javascript" >
  6 + $(window).load(function() {
  7 + $("#content").css({
  8 + "width": "1000px",});});
  9 +$(window).load(function() {
  10 + $("#chart").hide();});
  11 +$(window).load(function() {
  12 +
  13 + $("#graphcss").hide();
  14 + });
  15 +</script>
  16 +
  17 +<h1>Add a new Twist</h1>
5 18 {% if errors %}
6 19 <ul>
7 20 {% for error in errors %}
@@ -12,9 +25,14 @@
12 25
13 26 <form action="" method="post">{% csrf_token %}
14 27 <p>Title: <input type="text" name="subject"></p>
15   -<p>Description: <textarea name="message" rows="10" cols="50"></textarea></p>
  28 +<p>Description: <textarea name="message" id="contenttext" rows="10" cols="50" style="display:none" ></textarea></p>
  29 +<!-- style="display:none;" -->
  30 +
  31 +<input type="button" id="topicaddcontent" name="content" value="Add Description">
  32 +<input type="button" id="topicaddsave" name="savecontent" value="Save">
  33 +
16 34 <input type="hidden" value={{user.id}} name = "idusr">
17   -<input type="submit" value="Submit">
  35 +<input type="submit" id="topicsubmit" value="Submit" style="display:none">
18 36 </form>
19 37
20 38 {% endblock %}
2  gstudio/templates/gstudio/_header.html
@@ -15,7 +15,7 @@
15 15
16 16 {% if user.is_authenticated %}
17 17 {% if user.is_staff %}
18   - | <a href="{{ get_absolute_url }}/gstudio/user/{{user.username}}" title="MyBoard">Gnowledge Studio</a>
  18 + | <a href="{{ get_absolute_url }}/gstudio/user/{{user.username}}" title="My Loom Studio">Loom Studio</a>
19 19 | <a href="{{ get_absolute_url }}/gstudio/resources/documents" title="My Documents">Documents</a>
20 20 | <a href="{{ get_absolute_url }}/gstudio/user/wikipage/{{user.username}}" title="MyWiki">Wikipage</a>
21 21 | <a href="{{ get_absolute_url }}/gstudio/resources/images" title="Images">Images</a>
10 gstudio/templates/gstudio/skeleton.html
@@ -283,6 +283,16 @@
283 283 <script type="text/javascript" src="{{STATIC_URL}}gstudio/js/orgitdown/orgitdown/sets/org/set.js"></script>
284 284
285 285 <script type="text/javascript" src="{{STATIC_URL}}gstudio/js/orgitdown/orgitdown/jquery.orgitdown.js"></script>
  286 + <script type="text/javascript" src="{{STATIC_URL}}gstudio/js/replytotopic.js"></script>
  287 +
  288 + <script type="text/javascript" src="{{STATIC_URL}}gstudio/js/replycomment.js"></script>
  289 + <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
  290 + <script type="text/javascript" src="{{STATIC_URL}}gstudio/js/orgitdown/orgitdown/sets/org/set.js"></script>
  291 +
  292 + <script type="text/javascript" src="{{STATIC_URL}}gstudio/js/orgitdown/orgitdown/jquery.orgitdown.js"></script>
  293 +
  294 + <script type="text/javascript" src="{{STATIC_URL}}gstudio/js/topiccomment.js"></script>
  295 +
286 296
287 297 <script type="text/javascript" src="{{STATIC_URL}}gstudio/js/orgitdown/orgitdown/sets/savedata.js"></script>
288 298 <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
204 gstudio/templates/gstudio/tags/comment.html
@@ -15,54 +15,166 @@
15 15 <!-- Flag1 outside {{flag}}-->
16 16 {% for each in child.authors.all %}
17 17 {% ifequal idusr admin_id %}
18   - <li>{{each}} says <font style = "color:red;" size = 3>{{child.title}}</font>
19   - <form method="post" action=".">{% csrf_token %}
20   - <input type="text" name = "reply">
21   - <input type="hidden" value={{child.id}} name = "parentid">
22   - <input type="hidden" value={{idusr}} name="idusr">
23   - <input type="submit" value="Post a Reply">
24   - <input type="checkbox" name="del_comment" value="delete_comment">
25   - <input type="submit" value="delete this comment">
26   - </form>
27   - {% show_comment child idusr flag admin_id attribute%}
28   - </li>
29   - {% else %}
30   - {% ifequal idusr each.id %}
31   - <li>{{each}} says <font style = "color:red;" size = 3>{{child.title}}</font>
32   - <form method="post" action=".">{% csrf_token %}
33   - <input type="text" name = "reply">
34   - <input type="hidden" value={{child.id}} name = "parentid">
35   - <input type="hidden" value={{idusr}} name="idusr">
36   - <input type="submit" value="Post a Reply">
37   - <input type="checkbox" name="del_comment" value="delete_comment">
38   - <input type="submit" value="delete this comment">
39   - </form>
40   - {% show_comment child idusr flag admin_id attribute%}
41   - </li>
42   - {% else %}
43   - {% ifequal attribute "true" %}
44   -
45   - <li>{{each}} says <font style = "color:red;" size = 3>{{child.title}}</font>
46   - <form method="post" action=".">{% csrf_token %}
47   - <input type="text" name = "reply">
48   - <input type="hidden" value={{child.id}} name = "parentid">
49   - <input type="hidden" value={{idusr}} name="idusr">
50   - <input type="submit" value="Post a Reply">
51   - <input type="checkbox" name="del_comment" value="delete_comment">
52   - <input type="submit" value="delete this comment">
53   - </form>
54   - {% show_comment child idusr flag admin_id attribute%}
55   - </li>
56   - {% endifequal %}
57   - {% endifequal %}
58   - {% endifequal %}
59   - {% endfor %}
60   -
61   -
62   -{% endfor %}
63   -</ul>
  18 +<!-- If user is admin -->
  19 +<div class="response_change" id="divchange">
  20 +<script type="text/javascript">
  21 +i = i+1;
  22 +if (i%2 == 0)
  23 +{
  24 +document.getElementById("divchange").setAttribute("id","div1");
  25 +}
  26 +else
  27 +{
  28 +document.getElementById("divchange").setAttribute("id","div2");
  29 +}
  30 +</script>
  31 +
  32 +
  33 + <li>{{each}}'s fabric
  34 +{% if child.rating.get_rating %}
  35 +Current rating is {{ child.rating.get_rating }}<br/>
64 36 {% endif %}
  37 +<font style = "color:red;" size = 3>{{child.content}}</font>
  38 + <form method="post" action=".">{% csrf_token %}
  39 + <input type="text" class="commentreptext"id="{{child.id}}" name = "reply" style="visibility:hidden">
  40 + <input type="hidden" value={{child.id}} name = "parentid">
  41 + <input type="hidden" value={{idusr}} name="idusr">
  42 + <!-- <input type="hidden" value="{{child.id}}" name = "iden"> -->
  43 + <!-- <input type="text" id="commentreptext" name = "reply" style="visibility:hidden"> -->
  44 +
  45 +
  46 + <br/><br/><br/><br/>
  47 +
  48 + <input type="button" class="commenteditor" id="{{ child.id }}" value="Reply">
  49 + <input type="button" class="commentsavecontent" id="{{child.id}}" value="Save">
  50 + <input type="submit" id="postreply" value="Post a Reply">
  51 + <input type="checkbox" id="chk" name="del_comment" value="delete_comment">
  52 + <input type="submit" value="delete" onclick="setcheck()">
  53 +<br/>
  54 + Do you wanna rate it ? </br>
  55 + <input name="star1" type="radio" value=1 class="star"/>
  56 + <input name="star1" type="radio" value=2 class="star"/>
  57 + <input name="star1" type="radio" value=3 class="star"/>
  58 + <input name="star1" type="radio" value=4 class="star"/>
  59 + <input name="star1" type="radio" value=5 class="star"/>
  60 + <!--topic id and user id hidden fields-->
  61 + </br>
  62 + <input type="submit" value="Rate Response">
65 63
  64 + </form>
  65 +</div>
  66 +
  67 +
  68 + {% show_comment child idusr flag admin_id attribute%}
  69 +
  70 +
  71 + {% else %}
  72 + {% ifequal idusr each.id %}
  73 +
  74 +<div class="response_change" id="divchange">
  75 +<script type="text/javascript">
  76 +i = i+1;
  77 +if (i%2 == 0)
  78 +{
  79 +document.getElementById("divchange").setAttribute("id","div1");
  80 +}
  81 +else
  82 +{
  83 +document.getElementById("divchange").setAttribute("id","div2");
  84 +}
  85 +</script>
  86 +{{each}}'s Response <br/>
  87 +{% if child.rating.get_rating %}
  88 +Current rating is {{ child.rating.get_rating }}<br/>
  89 +{% endif %}
  90 + <font style = "color:red;" size ="3"></font>{{child.content}}
66 91
  92 + <form method="post" action="">{% csrf_token %}
  93 + <input type="text" class="commentreptext" id="{{child.id}}" name="reply" style="visibility:hidden">
  94 + <input type="hidden" class="parent" value="{{child.id}}" name="parentid">
  95 + <input type="hidden" value="{{idusr}}" name="idusr">
  96 +<!-- <input type="hidden" value="{{child.id}}" name="iden"> -->
  97 + <!-- <input type="text" id="commentreptext" name = "reply" style="visibility:hidden"> -->
67 98
68 99
  100 + <br/><br/><br/><br/>
  101 +
  102 + <input type="button" class="commenteditor" id="{{ child.id }}" value="Reply">
  103 + <input type="button" class="commentsavecontent" id="{{child.id}}" value="Save">
  104 + <input type="submit" class="postreply" value="Post a Reply">
  105 + <input type="checkbox" class="chk" name="del_comment" value="delete_comment">
  106 + <input type="button" class="deleteresponse" value="delete" style="display:none">
  107 + <input type="submit" class="deleteresp" value="delete">
  108 +
  109 +
  110 +<br/>
  111 + Do you wanna rate it ? </br>
  112 + <input name="star1" type="radio" value=1 class="star"/>
  113 +<input name="star1" type="radio" value=2 class="star"/>
  114 + <input name="star1" type="radio" value=3 class="star"/>
  115 + <input name="star1" type="radio" value=4 class="star"/>
  116 + <input name="star1" type="radio" value=5 class="star"/>
  117 + <!--topic id and user id hidden fields-->
  118 + </br>
  119 + <input type="submit" value="Rate Response">
  120 +
  121 + </form>
  122 +</div>
  123 + {% show_comment child idusr flag admin_id attribute%}
  124 +
  125 +
  126 + {% else %}
  127 + {% ifequal attribute "true" %}
  128 +
  129 +<div class="response_change" id="divchange">
  130 +<script type="text/javascript">
  131 +i = i+1;
  132 +if (i%2 == 0)
  133 +{
  134 +document.getElementById("divchange").setAttribute("id","div1");
  135 +}
  136 +else
  137 +{
  138 +document.getElementById("divchange").setAttribute("id","div2");
  139 +}
  140 +</script>
  141 + {{each}}'s Response <br/>
  142 +{% if child.rating.get_rating %}
  143 +Current rating is {{ child.rating.get_rating }}<br/>
  144 +{% endif %}
  145 + <font style = "color:red;" size = 3></font>{{child.content}}
  146 +
  147 + <form method="post" action=".">{% csrf_token %}
  148 + <input type="text" class="commentreptext"id="{{child.id}}" name = "reply" style="visibility:hidden">
  149 + <input type="hidden" value="{{child.id}}" name = "parentid">
  150 + <input type="hidden" value="{{idusr}}" name="idusr">
  151 + <input type="hidden" value="{{child.id}}" name = "iden">
  152 + <!-- <input type="text" id="commentreptext" name = "reply" style="visibility:hidden"> -->
  153 +<br/><br/><br/><br/>
  154 +
  155 + <input type="button" class="commenteditor" id="{{ child.id }}" value="Reply">
  156 + <input type="button" class="commentsavecontent" id="{{child.id}}" value="Save">
  157 + <input type="submit" id="postreply" value="Post a Reply" style="display:none">
  158 + <input type="checkbox" id="chk" name="del_comment" value="delete_comment">
  159 + <input type="submit" value="delete this comment""> <br/>
  160 + Rate this response </br>
  161 + <input name="star1" type="radio" value=1 class="star"/>
  162 + <input name="star1" type="radio" value=2 class="star"/>
  163 + <input name="star1" type="radio" value=3 class="star"/>
  164 + <input name="star1" type="radio" value=4 class="star"/>
  165 + <input name="star1" type="radio" value=5 class="star"/>
  166 + <!--topic id and user id hidden fields-->
  167 + </br>
  168 + <input type="submit" value="Rate Response">
  169 +
  170 + </form>
  171 +
  172 +</div>
  173 +
  174 + {% show_comment child idusr flag admin_id attribute%} {% endifequal %}
  175 + {% endifequal %}
  176 + {% endifequal %}
  177 + {% endfor %}
  178 + {% endfor %}
  179 +</ul>
  180 +{% endif %}
62 gstudio/templates/metadashboard/grpdashboard.html
@@ -14,14 +14,25 @@
14 14
15 15 $("#graphcss").hide();
16 16 });
  17 +var i=0;
17 18 </script>
  19 +<style type="text/css">
  20 +#div2
  21 +{
  22 + background-color:#E8E8E8 ;
  23 +}
  24 +#div1
  25 +{
  26 + background-color:#F4F4F4;
  27 +}
  28 +</style>
18 29
19 30 {% if user.is_authenticated %}
20   - <input type="button" value="Home" onClick="location.href='/gstudio/user/{{user.username}}';">
21   - <h>Hello Welcome to the {{ meet_ob.title }}</h></br>
22   - <h3> This Discussion was initiated by {{admin_m.username}}</h3>
  31 +<!-- <input type="button" value="Home" onClick="location.href='/gstudio/user/{{user.username}}';">
  32 + <h>Hello Welcome to the {{ meet_ob.title }}</h></br> -->
  33 + <h3> {{admin_m.username}}'s initial twist to the thread</h3>
23 34
24   - <h>You are logged in as <font color="blue">{{user.username}}</font></h>
  35 + <!-- <h>You are logged in as <font color="blue">{{user.username}}</font></h> -->
25 36 </br>
26 37 {%if flag %}
27 38 <div id="Release">
@@ -42,55 +53,60 @@
42 53
43 54 <form method="post" action=".">{% csrf_token %}
44 55 <!-- <input type="hidden" value="{{meet_ob.id}}" name = "meetid">-->
45   - <input type="button" value="Add a new Topic" onClick="location.href='topicadd1/{{meet_ob.id}}';">
  56 + <input type="button" value="Add your twist" onClick="location.href='topicadd1/{{meet_ob.id}}';">
46 57 </form>
47   -
48   -<!--direct link to identica-->
  58 +<!-- direct link to identica
49 59 <a href="http://www.addtoany.com/add_to/identi_ca?linkurl=ur url&linkname={{post}} via" ><img src="http://www.tildehash.com/identishare/share.png" ></img></a>
50 60
51   -<!-- Twitter syndicating button -->
  61 +<!-- Twitter syndicating button
52 62 <a href="https://twitter.com/share" class="twitter-share-button" data-url="https://127.0.0.1:8000/chat/" data-via="{{user.title}}" data-lang="en" data-text="{{post}}" data-related="anywhereTheJavascriptAPI" data-count="none">Tweet</a>
53 63
54   -<!-- Diaspora syndicating button -->
  64 +<!-- Diaspora syndicating button
55 65 <script type="text/javascript" src="https://raw.github.com/DmitryBaranovskiy/raphael/master/raphael-min.js"></script>
56 66 <input id="diasporacontent" value="{{post}}" type="hidden" name="diaspora"></input>
57 67 <div id="R-button" style="width:44px;height:44px;cursor:pointer;">
58 68 <img id="asterisk" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAYAAACN1PRVAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAQ1JREFUeNpi/P//PwO9ACMJajuA2BiL+FkgriDGABYSLANZ5EKJz5gY6AhGLaO6ZaAEoERl85WQUzCyZeVAfBeIz0DZShRYUA41B2ReGjZF/7FgZIt341CzG80CdPl36BaF4jCIWjgUORhdaJw2UMx/R2OfgYOSGYgFgfgoED8HYikon1rgHhDPAuJOIH6PqwzEFdnEYFiiMiYnGc8k0pIOSkNFiYT4fEepZbtJDMJV5FpUTmaclZNqkTER8YMvOIlOHIIEUmIHET4/Q0pb4z+echAZrCLCUXiLFVJSmyC0ZMelh2AxGIojubuQEL/vYIUvsflrNwkprBxLlUNW8ic276wi5ChGeraIAQIMAFUG5PAQfeaJAAAAAElFTkSuQmCC" width="26" height="26">
59 69 </div>
60   -
  70 +-->
61 71 </br> {% autoescape off %}
62 72 {% for each in topic %}
63 73 <h4><font size="5" color="red">{{each.title}}</font></h4>
64 74 Posted on : {{each.creation_date}}
65   - Posted by :
  75 + by :
66 76 {% for author in each.authors.all %}
67 77 {{author}}
68 78 {% endfor %}</br>
69   - Current rating is <h5>{{ each.rating.get_rating }}</h5>
  79 + <!-- Current rating is <h5>{{ each.rating.get_rating }}</h5> -->
70 80 {%autoescape on%}
71   - <font color="green">{{each.content}}</font>
  81 + {% with each.html_content|safe as each_content %}
  82 + <font color="green"> {{each_content}} </font>
  83 + {% endwith %}
72 84 {% endautoescape%}
73 85 <form method="post" action=".">{% csrf_token %}
74   - Reply to the main thread :
75   - <input type="text" name = "reply">
  86 +
  87 + <input type="text" class="reptext" name = "reply" style="display:none">
76 88 <input type="hidden" value="{{each.id}}" name = "iden">
77 89 <input type="hidden" value="{{user.id}}" name = "idusr">
78   - <input type="submit" value="Reply to Topic"></br>
79   - <!--<input name="del_topic" type="checkbox" value="delete_topic"/>Delete topic
80   - <input type="submit" value="Delete the topic"></br>
81   --->
82   - Do you wanna rate it ? </br>
  90 +<br/><br/><br/>
  91 + <input type="button" class="editor" id="{{each.id}}" value="Add a Fiber">
  92 + <input type="button" class="savecontent" id="{{each.id}}" value="Save">
  93 +
  94 + <input type="submit" value="Submit"></br>
  95 + <input name="del_topic" type="checkbox" value="delete_topic"/>
  96 + <input type="submit" value="Delete the twist"></br>
  97 +
  98 + <!-- Rate this ? </br>
83 99 <input name="star1" type="radio" value=1 class="star"/>
84 100 <input name="star1" type="radio" value=2 class="star"/>
85 101 <input name="star1" type="radio" value=3 class="star"/>
86 102 <input name="star1" type="radio" value=4 class="star"/>
87 103 <input name="star1" type="radio" value=5 class="star"/>
88   - <!--topic id and user id hidden fields-->
  104 + <!--topic id and user id hidden fields
89 105 </br>
90   - <input type="submit" value="Rate it!!!">
  106 + <input type="submit" value="Rate it!!!"> -->
91 107 </form>
92 108 <p>
93   - Replies :
  109 + Fibers :
94 110 <!-- <div id="main">
95 111 <div id="sidetree">
96 112 <div class="treeheader">&nbsp;</div>
10 gstudio/templates/metadashboard/userdashboard.html
@@ -5,20 +5,20 @@
5 5
6 6
7 7 {% if user.is_authenticated %}
8   - <h> Welcome to the GnowledgeStudio</h></br>
  8 +<!-- <h> Welcome to the GnowledgeStudio</h></br>
9 9 <h>You are logged in as <font color="blue">{{user.username}}</font></h>
10   - <p></br>
11   -<p> Here is a list of all the groups:</p>
  10 + <p></br> -->
  11 +<p> On the loom now:</p>
12 12 </br>
13 13 {% for each in meetings.member_systems.all %}
14 14 <a href="/gstudio/group/gnowsys-grp/{{each.id}}/">{{each.title}}</a></br>
15 15 {% endfor %}
16   - <input type="button" value="Create a new meeting" onClick="location.href='groupadd/';">
  16 + <input type="button" value="Want to weave a thread?" onClick="location.href='groupadd/';">
17 17 </p>
18 18 <p>
19 19 </br>
20 20 {% else %}
21   - <h1> <p style = "color :black;">OOPS!!! Login Please!</p></h1>
  21 + <h1> <p style = "color :black;">Please Login</p></h1>
22 22 {% endif %}
23 23
24 24
3  gstudio/views/group.py
@@ -54,7 +54,8 @@ def groupdashboard(request,grpid):
54 54 rep = request.POST.get("reply",'')
55 55 id_no = request.POST.get("iden",'')
56 56 id_no1 = request.POST.get("parentid","")
57   - idusr = request.POST.get("idusr",'')
  57 + print "topicid",id_no,"replyid",id_no1,"reply",rep
  58 + idusr = request.POST.get("idusr",'')
58 59 rating = request.POST.get("star1","")
59 60 flag1=request.POST.get("release","")
60 61 block = request.POST.get("block","")

0 comments on commit b1f71c5

Please sign in to comment.
Something went wrong with that request. Please try again.