diff options
author | gnowgi <nagarjun@gnowledge.org> | 2012-07-13 03:27:22 -0700 |
---|---|---|
committer | gnowgi <nagarjun@gnowledge.org> | 2012-07-13 03:27:22 -0700 |
commit | d4ac04e190a9aa45e8bd0f9a89dd1ebaddd63037 (patch) | |
tree | aade34552216e94820c49aab0f52ad94316b8ec7 /gstudio/templates | |
parent | 25261ae70442eabc1b26ddfbbd923b04a3ffb9f1 (diff) | |
parent | 253a7a23f71fd90e9f70a89b6a0aad6312ef4d40 (diff) | |
download | gnowsys-d4ac04e190a9aa45e8bd0f9a89dd1ebaddd63037.tar.gz |
Merge pull request #71 from horntail/master
This merge includes BITS Pilani students contributions: ankita, shreya, shruti, prateek, divya, deepthi, harshdeep, sahil, nihar, and akash, who worked on talk pages, groups, syndication, and multi-media resources.
Diffstat (limited to 'gstudio/templates')
-rw-r--r-- | gstudio/templates/gstudio/NewGroup.html | 53 | ||||
-rw-r--r-- | gstudio/templates/gstudio/NewTopic.html | 21 | ||||
-rw-r--r-- | gstudio/templates/gstudio/NewTopic1.html | 20 | ||||
-rw-r--r-- | gstudio/templates/gstudio/_header.html | 13 | ||||
-rw-r--r-- | gstudio/templates/gstudio/docu.html | 107 | ||||
-rw-r--r-- | gstudio/templates/gstudio/fullscreen.html | 4 | ||||
-rw-r--r-- | gstudio/templates/gstudio/image.html | 119 | ||||
-rw-r--r-- | gstudio/templates/gstudio/later.html | 8 | ||||
-rw-r--r-- | gstudio/templates/gstudio/over.html | 7 | ||||
-rw-r--r-- | gstudio/templates/gstudio/skeleton.html | 23 | ||||
-rw-r--r-- | gstudio/templates/gstudio/tags/comment.html | 68 | ||||
-rw-r--r-- | gstudio/templates/gstudio/transcript.html | 28 | ||||
-rw-r--r-- | gstudio/templates/gstudio/video.html | 184 | ||||
-rw-r--r-- | gstudio/templates/metadashboard/grpdashboard.html | 109 | ||||
-rw-r--r-- | gstudio/templates/metadashboard/logindashboard.html | 10 | ||||
-rw-r--r-- | gstudio/templates/metadashboard/userdashboard.html | 74 |
16 files changed, 835 insertions, 13 deletions
diff --git a/gstudio/templates/gstudio/NewGroup.html b/gstudio/templates/gstudio/NewGroup.html new file mode 100644 index 0000000..829c4fa --- /dev/null +++ b/gstudio/templates/gstudio/NewGroup.html @@ -0,0 +1,53 @@ +{%extends "gstudio/base.html"%} +{%load i18n %} +{%block extrahead%} + <script type="text/javascript"> + $(document).ready(function() + { + $('#id_value_1').datepicker(); + $('#id_value_2').datepicker(); + }); + </script> +{%endblock%} +{% block content %} +{%if user.is_authenticated%} +{% if errors %} +<ul> +{% for error in errors %} +<li><font color="red">{{ error }}</font></li> +{% endfor %} +</ul> +{% endif %} +<form action="" method="post"> +{% csrf_token %} +<p>Name of the Group: <input type="text" name="subject"></p> +<p>Brief Description: <textarea name="message" rows="10" cols="50"></textarea></p> +</br> +<p>If you want to leave any instructions for the participants you may mention them above as well </p> +Please Set the time +</br> +Starts at time: +</br> + <span class="datetimeshortcuts"> + <a href="javascript:DateTimeShortcuts.openCalendar(0);"id = "calendarlink0"></a> + </span> + Date: <input id="id_value_1" type="text" class="vTimeField hasTimepicker" name="stDate" size ="8"> + Hours:<input type = "text" name = "hours1"> + Minutes:<input type = "text" name = "minutes1"> <hr> + <p><b>Note</b>The group will be accessible to members (except the creator)only after the scheduled start time</p> + Ends at time: </br> + Date: <input id="id_value_2" type="text" class="vTimeField hasTimepicker" name="endDate" size ="8"> + Hours:<input type = "text" name = "hours2"> + Minutes:<input type = "text" name = "minutes2"> +<p>After this time the group posts remain but the activity is frozen<p> +<input type="hidden" value={{user.id}} name = "idusr"> +<input type="submit" value="Submit"> +</form> +<p>Creating a group will require to schedule it for an indefinite period of time. So in this case, please enter end time of say 50 years from now</p> +{%else%} +<p> Sorry! Login To proceed </p> + +{%endif%} +{% endblock %} + + diff --git a/gstudio/templates/gstudio/NewTopic.html b/gstudio/templates/gstudio/NewTopic.html new file mode 100644 index 0000000..210cd61 --- /dev/null +++ b/gstudio/templates/gstudio/NewTopic.html @@ -0,0 +1,21 @@ +<html> +<head> +<title>Setting a new Topic</title> +</head> +<body> +<h1>Add a new Topic for The group Discussion</h1> +{% if errors %} +<ul> +{% for error in errors %} +<li><font color="red">{{ error }}</font></li> +{% endfor %} +</ul> +{% endif %} +<form action="" method="post">{% csrf_token %} +<p>Title: <input type="text" name="subject"></p> +<p>Description: <textarea name="message" rows="10" cols="50"></textarea></p> +<input type="hidden" value={{user.id}} name = "idusr"> +<input type="submit" value="Submit"> +</form> +</body> +</html> diff --git a/gstudio/templates/gstudio/NewTopic1.html b/gstudio/templates/gstudio/NewTopic1.html new file mode 100644 index 0000000..38a61c5 --- /dev/null +++ b/gstudio/templates/gstudio/NewTopic1.html @@ -0,0 +1,20 @@ + +{% extends "gstudio/base.html" %} +{% block content %} +<h1>Add a new Topic</h1> +{% if errors %} +<ul> +{% for error in errors %} +<li><font color="red">{{ error }}</font></li> +{% endfor %} +</ul> +{% endif %} + +<form action="" method="post">{% csrf_token %} +<p>Title: <input type="text" name="subject"></p> +<p>Description: <textarea name="message" rows="10" cols="50"></textarea></p> +<input type="hidden" value={{user.id}} name = "idusr"> +<input type="submit" value="Submit"> +</form> + +{% endblock %} diff --git a/gstudio/templates/gstudio/_header.html b/gstudio/templates/gstudio/_header.html index 4a913e9..08fdab2 100644 --- a/gstudio/templates/gstudio/_header.html +++ b/gstudio/templates/gstudio/_header.html @@ -8,14 +8,17 @@ <!-- Title --> <div class="admin-title"> <a href="/" title="Home">Home</a> - | {% if grappelli_admin_title %}{{ + <!-- | {% if grappelli_admin_title %}{{ grappelli_admin_title }}{% else %}{% get_admin_title %}{% endif %} - - | <a href="{{ get_absolute_url }}/objects" title="Objects">Objects</a> + --> +<!-- | <a href="{{ get_absolute_url }}/objects" title="Objects">Objects</a>--> {% if user.is_authenticated %} - - {% if user.is_staff %} + {% if user.is_staff %} + | <a href="{{ get_absolute_url }}/gstudio/user/{{user.username}}" title="MyBoard">Gnowledge Studio</a> + | <a href="{{ get_absolute_url }}/gstudio/resources/documents" title="My Documents">Documents</a> + | <a href="{{ get_absolute_url }}/gstudio/resources/images" title="Images">Images</a> + | <a href="{{ get_absolute_url }}/gstudio/resources/videos" title="My Videos">Videos</a> | <a href="{{ get_absolute_url }}/admin" title="Admin Dashboard">Admin Dashboard</a> {% endif %} diff --git a/gstudio/templates/gstudio/docu.html b/gstudio/templates/gstudio/docu.html new file mode 100644 index 0000000..7be5aa7 --- /dev/null +++ b/gstudio/templates/gstudio/docu.html @@ -0,0 +1,107 @@ +<html> +<body> +{% extends "gstudio/base.html" %} +{% load i18n %} +{% load adminmedia grp_tags %} +{% block content %} +{% if user.is_authenticated %} +<h1 style="color: teal;">Welcome to the DocZilla</h1> +<p><img id="zoomable" src="{% admin_media_prefix %}img/docs.png" width="250" height="250" alt="{{ image.title }}" class="left" /></p> +<h2>Logged in as: {{user.username}}</h2> +<br> +<form enctype="multipart/form-data" method="post" action=""> +{% csrf_token %} +<h4 style="color: black;">Post File:</h4> +<p><input type=file name="doc[]" multiple="multiple" /></p> +<input type="hidden" name="user" value={{user.username}}> +<input type="submit" value="Post"> +</form> +<br> +<form method="post" action=""> +{% csrf_token %} +<h4 style="color: black;">Search File</h4> +<p><input type="text" name="sdoc" value={{val}}></p> +<h4 style="color: black;">Sort files by:</h4> +<p><div align="center"> +<select name="mydropdown"> +<option value="title">Title</option> +<option value="creation_date">Creation Date</option> +</select> +</div> +<input type="submit" value="Search"> +</form> +<br> +<h4 style="color: teal;">SHARE</h4> + +{% for document in documents %} + + <div class="gbobject-content"> + <!-- {{ object_content }}--> + </div> +<h2 style="color: green;">{{document.title}}</a></h2> +<font color = 'black'>Posted By : </font> +{% for author in document.authors.all %} + <font color = 'teal'>{{author}}</font> +{% endfor %} +<br> +<font color = 'black'>Posted At : </font><font color = 'teal'>{{document.creation_date}}</font> +<br> +<a href="{% admin_media_prefix %}img/{{document.title}}">Download now!!</a> +<br> +{% for author in document.authors.all %} + {% ifequal author.username user.username %} +<form method="post" action="" onclick="return makesure();"> +{% csrf_token %} +<input type="hidden" name="dn" value={{document.id}}> +<input type="submit" name="delete" value="Delete"> +</form> +<script type="text/javascript"> + function makesure() { + if (confirm('Are you sure you want to delete this file?')) { + return true; + } + else { + return false; + } + } +{% else %} + <script type="text/javascript"> + function myFunction() + { + alert("You are not authorised to delete other users file!"); + } + </script> + + <input type="button" onclick="myFunction()" value="Delete" /> + {% endifequal %} +{% endfor %} +</script> +<br> +<font color = 'black'>Current rating is </font><h4>{{ document.rating.get_rating }}</h4> +<br> +<form method="post" action=""> +{% csrf_token %} +<input name="star1" type="radio" value=1 class="star"/> +<input name="star1" type="radio" value=2 class="star"/> +<input name="star1" type="radio" value=3 class="star"/> +<input name="star1" type="radio" value=4 class="star"/> +<input name="star1" type="radio" value=5 class="star"/> +</br> +<input type="hidden" name="docid" value={{document.id}}> +<input type="submit" value="Rate it!!!"> +</form> +<br> +<hr width="100%" style="height:5px;" color="black"/> +<br> +{% endfor %}<br> + + +{% else %} + +<h2 style="color: indigo;">Sorry you need to log in to see this content !</h2> + +{% endif %} + + +{% endblock %} +</body> diff --git a/gstudio/templates/gstudio/fullscreen.html b/gstudio/templates/gstudio/fullscreen.html new file mode 100644 index 0000000..afc3746 --- /dev/null +++ b/gstudio/templates/gstudio/fullscreen.html @@ -0,0 +1,4 @@ +<html><body> +{% load adminmedia grp_tags %} +<img src="{% admin_media_prefix %}img/{{image.title}}" > +</html></body> diff --git a/gstudio/templates/gstudio/image.html b/gstudio/templates/gstudio/image.html new file mode 100644 index 0000000..f70a24b --- /dev/null +++ b/gstudio/templates/gstudio/image.html @@ -0,0 +1,119 @@ +<html> +<body> +{% extends "gstudio/base.html" %} +{% load adminmedia grp_tags %} +{% load i18n %} +{% block content %} +{% if user.is_authenticated %} +<h1 style="color: teal;">Welcome to the ImageNation</h1> +<p><img id="zoomable" src="{% admin_media_prefix %}img/imagenation.jpg" alt="{{ image.title }}" class="left" /></p> +<h2>Logged in as: {{user.username}}</h2> +<br> +<form enctype="multipart/form-data" method="post" action=""> +{% csrf_token %} +<h4 style="color: black;">Post Image:</h4> +<p>Title: <input type="text" name="title1"></p><br> +<p><input type=file name="image[]" multiple="multiple" /></p> +<input type="hidden" name="user" value={{user.username}}> +<input type="submit" value="Post"> +</form> +<br> +<form method="post" action=""> +{% csrf_token %} +<h4 style="color: black;">Search Image</h4> +<p><input type="text" name="simg" value={{val}}></p> +<h4 style="color: black;">Sort images by:</h4> +<p><div align="center"> +<select name="mydropdown"> +<option value="title">Title</option> +<option value="creation_date">Creation Date</option> +</select> +</div> +<input type="submit" value="Search"> +</form> +<br> +<h4 style="color: teal;">IMAGES</h4> +{% for image in images %} + <div class="gbobject-body span-16 last"> + <div class="gbobject-image"> + <p> +<img src="{% admin_media_prefix %}img/{{image.title}}" width="300" height="225" alt="{{ image.title }}" > + + </p> + </div> + <div class="gbobject-content"> + <!-- {{ object_content }}--> + </div> + </div> +<h4>{{image.title}} +<form method="post" action=""> +{% csrf_token %} +<input type="hidden" name="fulid" value={{image.id}}> +<input type="submit" value="View Fullscreen"> +</form> +</h4> +<font color = 'black'>Posted By : </font> +{% for author in image.authors.all %} + <font color = 'teal'>{{author}}</font> +{% endfor %} +<br> +<font color = 'black'>Posted At : </font><font color = 'teal'>{{image.creation_date}}</font> +<br> +{% for author in image.authors.all %} + {% ifequal author.username user.username %} +<form method="post" action="" onclick="return makesure();"> +{% csrf_token %} +<input type="hidden" name="pict" value={{image.id}}> +<input type="submit" name="delete" value="Delete"> +<input type="hidden" name="user" value={{user.username}}> +</form> +<script type="text/javascript"> + function makesure() { + if (confirm('Are you sure you want to delete this image?')) { + return true; + } + else { + return false; + } + } +</script> +{% else %} + <script type="text/javascript"> + function myFunction() + { + alert("You are not authorised to delete other users image!"); + } + </script> + + <input type="button" onclick="myFunction()" value="Delete" /> + {% endifequal %} +{% endfor %} +<br> +<font color = 'black'>Current rating is </font><h4>{{ image.rating.get_rating }}</h4> +<br> +<form method="post" action=""> +{% csrf_token %} +<input name="star1" type="radio" value=1 class="star"/> +<input name="star1" type="radio" value=2 class="star"/> +<input name="star1" type="radio" value=3 class="star"/> +<input name="star1" type="radio" value=4 class="star"/> +<input name="star1" type="radio" value=5 class="star"/> +</br> +<input type="hidden" name="imgid" value={{image.id}}> +<input type="submit" value="Rate it!!!"> +</form> +<br> +<hr width="100%" style="height:5px;" color="black"/> +<br> +{% endfor %}<br> +<br><br> +{% else %} + +<h2 style="color: indigo;">Sorry you need to log in to see this content !</h2> + +{% endif %} + + +{% endblock %} +</body> +</html> diff --git a/gstudio/templates/gstudio/later.html b/gstudio/templates/gstudio/later.html new file mode 100644 index 0000000..58b7dcd --- /dev/null +++ b/gstudio/templates/gstudio/later.html @@ -0,0 +1,8 @@ +{%extends "gstudio/base.html"%} +{%load i18n %} +{% block content %} +<input type="button" value="Home" onClick="location.href=parseURL('/nodetypes/user/{{user.username}}');"> +<h2> Sorry The meeting is scheduled later! </h2> + +<p> The meeting<b> {{sys.title}}</b> is scheduled to start at {{starttime}} please try later</p> +{%endblock%} diff --git a/gstudio/templates/gstudio/over.html b/gstudio/templates/gstudio/over.html new file mode 100644 index 0000000..babec6f --- /dev/null +++ b/gstudio/templates/gstudio/over.html @@ -0,0 +1,7 @@ +{%extends "gstudio/base.html"%} +{%load i18n %} +{% block content %} +sorry, the meeting <b>{{sys.title}}</b>was over on {{endtime}} +<input type="button" value="Home" onClick="location.href=parseURL('/nodetypes/user/{{user.username}}');"> + +{%endblock%} diff --git a/gstudio/templates/gstudio/skeleton.html b/gstudio/templates/gstudio/skeleton.html index d60dccf..5820701 100644 --- a/gstudio/templates/gstudio/skeleton.html +++ b/gstudio/templates/gstudio/skeleton.html @@ -271,16 +271,23 @@ <script src="{% admin_media_prefix %}js/grappelli/jquery.grp_autocomplete_generic.js" type="text/javascript"></script> <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> + + <script src="{{STATIC_URL}}gstudio/js/gstudio.js" type="text/javascript"></script> + <script type="text/javascript" src="{{STATIC_URL}}gstudio/js/diasporaSyndicate.js"></script> + <script type="text/javascript" src="{{STATIC_URL}}gstudio/js/twitterSyndicate.js" ></script> + + -<!-- orgitdowm css,js --> - <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script> - <script type="text/javascript" src="{{STATIC_URL}}gstudio/js/orgitdown/orgitdown/sets/org/set.js"></script> - - <script type="text/javascript" src="{{STATIC_URL}}gstudio/js/orgitdown/orgitdown/jquery.orgitdown.js"></script> - - <script type="text/javascript" src="{{STATIC_URL}}gstudio/js/orgitdown/orgitdown/sets/savedata.js"></script> + <!-- orgitdown css,js --> + <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script> + <script type="text/javascript" src="{{STATIC_URL}}gstudio/js/orgitdown/orgitdown/sets/org/set.js"></script> + + <script type="text/javascript" src="{{STATIC_URL}}gstudio/js/orgitdown/orgitdown/jquery.orgitdown.js"></script> + + <script type="text/javascript" src="{{STATIC_URL}}gstudio/js/orgitdown/orgitdown/sets/savedata.js"></script> - <!-- EXTRAHEAD --> + <!-- EXTRAHEAD --> + {% block extrahead %}{% endblock %} {% endblock %} <!-- the header lines from gstudio --> 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 %} + + + + diff --git a/gstudio/templates/gstudio/transcript.html b/gstudio/templates/gstudio/transcript.html new file mode 100644 index 0000000..ff8dfad --- /dev/null +++ b/gstudio/templates/gstudio/transcript.html @@ -0,0 +1,28 @@ +{% load gstudio_tags i18n %} +{% get_tags as nodetype_tags %} +{% load adminmedia grp_tags %} + + + +<!doctype html> +<html> +<head> +<script src="http://code.jquery.com/jquery-1.7.2.js" type="text/javascript"></script> +<script type="text/javascript" src="{{STATIC_URL}}gstudio/js/jquery.pandoravideo.js"></script> +<script type="text/javascript" src="{{STATIC_URL}}gstudio/js/jquery.js"></script> +<script type="text/javascript" src="{{STATIC_URL}}gstudio/js/jquery-ui-1.8.21.custom.min.js"></script> + +<script type="text/javascript"> + +$.noConflict(); +$(function() { +$('#pandoravideo').pandoravideo(); +}); +</script> +</head> +<body> +<div id="pandoravideo" data-pandora-id={{id}} data-pandora-layers="transcripts, descriptions, keywords, places"> +</div> +</body> + +</html> diff --git a/gstudio/templates/gstudio/video.html b/gstudio/templates/gstudio/video.html new file mode 100644 index 0000000..644831a --- /dev/null +++ b/gstudio/templates/gstudio/video.html @@ -0,0 +1,184 @@ +{% extends "gstudio/base.html" %} +{% load i18n %} +{% load adminmedia grp_tags %} +{% block content %} +{% if user.is_authenticated %} +<h1 style="color: teal;">Welcome to the VideoCore</h1> +<p><img id="zoomable" src="{% admin_media_prefix %}img/videos.jpg" alt="{{ image.title }}" class="left" /></p> +<h2>Logged in as: {{user.username}}</h2> +<br> +<form enctype="multipart/form-data" method="post" action=""> +{% csrf_token %} +<p><h4 style="color: black;">Post Video:</h4><input type="file" name="clip[]" multiple="multiple" /></p> +<input type="hidden" name="user" value={{user.username}}> +<input type="submit" value="Upload"> +</form> +<br> +<form method="post" action=""> +{% csrf_token %} +<h4 style="color: black;">Search Video</h4> +<p><input type="text" name="svid" value={{val}}></p> +<h4 style="color: black;">Sort videos by:</h4> +<p><div align="center"> +<select name="mydropdown"> +<option value="title">Title</option> +<option value="creation_date">Creation Date</option> +</select> +</div> +<input type="submit" name="norm" value="Search"> +<input type="submit" name="spe" value="Search by User"> +</form> +<br> +<form method="post" action=""> +{% csrf_token %} +<input type="hidden" name="user" value={{user.username}}> +<input type="submit" name="fav" value="View Favourites"> +</form> + +<h4 style="color: teal;">VIDEOS</h4><br> +<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/> + <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script> + <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script> + + <script> + + +$(function() { + + + + + + +$('#progressbar').progressbar({ value: 0.0001 }); + $pVal = $('.ui-progressbar-value').addClass('ui-corner-right'); + var pGress = setInterval(function() { //generate our endless loop + var pCnt = $pVal.width(); // get width as int + // generate a random number between our max 100 and it's half 50, + // this is optional, and make the bar move back and forth before + // we reach the end. + var rDom = Math.floor(Math.random() * (100 - 0 + 1) + 0); + var step = rDom >= 100 ? 100: rDom; // reached our max ? reset step. + doAnim(step); + },1000); + var doAnim = function(wD) { + // complete easing list http://jqueryui.com/demos/effect/easing.html + $pVal.stop(true).animate({width: wD + '%'},1000, 'easeOutBack'); + if (wD >= 100) clearInterval(pGress) /* run callbacks here */ + } + + var time = new Date().getTime(); + $(document.body).bind("mousemove keypress", function(e) { + time = new Date().getTime(); + }); + + function refresh() { + if(new Date().getTime() - time >= 200000) + window.location.reload(true); + else + setTimeout(refresh, 10000); + } + + setTimeout(refresh, 10000); + + + + + + +}); + + + + + + + +</script> + + + <div id="progressbar"></div> + + + + + + + +<br> +{% if fav %} +<h4 style="color: teal;">Favourite Videos</h4> +{% endif %} +<br> + +{% for video in vids %} +<iframe src="{{video.rurl}}/embed?in=0&out=10000&view=video" width="256" height="144" allowfullscreen></iframe> +<h4>{{video.title}}</a></h4> +<form enctype="multipart/form-data" method="post" action="" target="_blank"> +{% csrf_token %} +<input type="hidden" name = "full" value ={{video.slug}}> +<input type="submit" value="FullScreen"> +</form> +<h4><a href={{video.rurl}} target="_blank">Right click to download</a></h4><br> +<font color = 'black'>Posted By : </font> +{% for author in video.get_nbh.posted_by %} + <font color = 'teal'>{{author}}</font> +{% endfor %} +<br> +<font color = 'black'>Posted At :</font> +{% for date in video.get_nbh.creation_day %} + <font color = 'teal'>{{date}}</font> +{% endfor %} +<br> +{% for we in video.get_nbh.source %} + <font color = 'black'>Location: </font> + {% for map in video.get_nbh.map_link %} + {% ifnotequal map '' %} + <a href=http://maps.google.co.in/maps?hl=en&cp=43&gs_id=6&xhr=t&q={{map}}&bav=on.2,or.r_gc.r_pw.r_qf.,cf.osb&biw=1304&bih=680&um=1&ie=UTF-8&sa=N&tab=wl target="_blank">{{we}}</a> + {% endifnotequal %} + {% endfor %} + {% endfor %} +<br> +<font color = 'black'>Current rating is </font><h4>{{ video.rating.get_rating }}</h4> +<br> +<form method="post" action=""> +{% csrf_token %} +<input name="star1" type="radio" value=1 class="star"/> +<input name="star1" type="radio" value=2 class="star"/> +<input name="star1" type="radio" value=3 class="star"/> +<input name="star1" type="radio" value=4 class="star"/> +<input name="star1" type="radio" value=5 class="star"/> + +<input type="hidden" name="vidid" value={{video.id}}> +<input type="submit" value="Rate it!!!"> +</form> +<br> +<form method="post" action=""> +{% csrf_token %} +<input type="hidden" name="favid" value={{video.id}}> +<input type="hidden" name="favusr" value={{user.username}}> +<input type="submit" value="Add to favourites"> +</form><br> +<hr width="100%" style="height:5px;" color="black"/> +<br> +{% endfor %}<br> + +<br><br> +<a href="http://www.facebook.com" target="_blank">Follow us on Facebook</a> +{% else %} + +<h2 style="color: indigo;">Sorry you need to log in to see this content !</h2> + +{% endif %} +{% endblock %} + +{% block chart %} +<br> <br><br><br><br><br><br><br><br><br><br><br><br><br> + +<br><br><br><br><br> + +<br> +{% endblock %} + + + diff --git a/gstudio/templates/metadashboard/grpdashboard.html b/gstudio/templates/metadashboard/grpdashboard.html new file mode 100644 index 0000000..e92f616 --- /dev/null +++ b/gstudio/templates/metadashboard/grpdashboard.html @@ -0,0 +1,109 @@ +{% extends "gstudio/base.html" %} +{% load gstudio_tags %} +{% load i18n %} +{% block content %} + +<script src="http://code.jquery.com/jquery-latest.js"></script> + <script type="text/javascript" > + $(window).load(function() { + $("#content").css({ + "width": "1000px",});}); +$(window).load(function() { + $("#chart").hide();}); +$(window).load(function() { + + $("#graphcss").hide(); + }); +</script> + +{% if user.is_authenticated %} + <input type="button" value="Home" onClick="location.href=parseURL('/gstudio/user/{{user.username}}');"> + <h>Hello Welcome to the {{ meet_ob.title }}</h></br> + <h3> This Discussion was initiated by {{admin_m.username}}</h3> + + <h>You are logged in as <font color="blue">{{user.username}}</font></h> + </br> + {%if flag %} + <div id="Release"> + <form method="post" action=".">{% csrf_token %} + <input type="submit" value="Release Replies"> + <input type="hidden" value="hits" name = "release"> + </form> + </div> + <div> + <form method="post" action=".">{% csrf_token %} + <input type="submit" value="Block Replies"> + <input type="hidden" value="hits" name = "block"> + </form> + </div> + {% endif %} + </br> + + + <form method="post" action=".">{% csrf_token %} + <!-- <input type="hidden" value="{{meet_ob.id}}" name = "meetid">--> + <input type="button" value="Add a new Topic" onClick="location.href=parseURL('topicadd1/{{meet_ob.id}}');"> + </form> + +<!--direct link to identica--> +<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> + +<!-- Twitter syndicating button --> +<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> + +<!-- Diaspora syndicating button --> +<script type="text/javascript" src="https://raw.github.com/DmitryBaranovskiy/raphael/master/raphael-min.js"></script> +<input id="diasporacontent" value="{{post}}" type="hidden" name="diaspora"></input> +<div id="R-button" style="width:44px;height:44px;cursor:pointer;"> +<img id="asterisk" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAYAAACN1PRVAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAQ1JREFUeNpi/P//PwO9ACMJajuA2BiL+FkgriDGABYSLANZ5EKJz5gY6AhGLaO6ZaAEoERl85WQUzCyZeVAfBeIz0DZShRYUA41B2ReGjZF/7FgZIt341CzG80CdPl36BaF4jCIWjgUORhdaJw2UMx/R2OfgYOSGYgFgfgoED8HYikon1rgHhDPAuJOIH6PqwzEFdnEYFiiMiYnGc8k0pIOSkNFiYT4fEepZbtJDMJV5FpUTmaclZNqkTER8YMvOIlOHIIEUmIHET4/Q0pb4z+echAZrCLCUXiLFVJSmyC0ZMelh2AxGIojubuQEL/vYIUvsflrNwkprBxLlUNW8ic276wi5ChGeraIAQIMAFUG5PAQfeaJAAAAAElFTkSuQmCC" width="26" height="26"> +</div> + +</br> {% autoescape off %} + {% for each in topic %} + <h4><font size="5" color="red">{{each.title}}</font></h4> + Posted on : {{each.creation_date}} + Posted by : + {% for author in each.authors.all %} + {{author}} + {% endfor %}</br> + Current rating is <h5>{{ each.rating.get_rating }}</h5> + {%autoescape on%} + <font color="green">{{each.content}}</font> + {% endautoescape%} + <form method="post" action=".">{% csrf_token %} + Reply to the main thread : + <input type="text" name = "reply"> + <input type="hidden" value="{{each.id}}" name = "iden"> + <input type="hidden" value="{{user.id}}" name = "idusr"> + <input type="submit" value="Reply to Topic"></br> + <!--<input name="del_topic" type="checkbox" value="delete_topic"/>Delete topic + <input type="submit" value="Delete the topic"></br> +--> + Do you wanna rate it ? </br> + <input name="star1" type="radio" value=1 class="star"/> + <input name="star1" type="radio" value=2 class="star"/> + <input name="star1" type="radio" value=3 class="star"/> + <input name="star1" type="radio" value=4 class="star"/> + <input name="star1" type="radio" value=5 class="star"/> + <!--topic id and user id hidden fields--> + </br> + <input type="submit" value="Rate it!!!"> + </form> + <p> + Replies : + <!-- <div id="main"> + <div id="sidetree"> + <div class="treeheader"> </div> + <a href="?#">Expand All</a> </div>--> + <!--<ul class="treeview" id="tree"> + <li class="expandable"><div class="hitarea expandable-hitarea"></div>Expand the replies</li>--> + {% show_comment each user.id flag1 admin_id attribute %} + {% endfor %} + The discussion freezes at {{endtime}} +{% endautoescape %} + +{% else %} + <h1> <p style = "color :red;">OOPS!!! Login Please!</p></h1> +{% endif %} +{% endblock %} + diff --git a/gstudio/templates/metadashboard/logindashboard.html b/gstudio/templates/metadashboard/logindashboard.html new file mode 100644 index 0000000..f5ea914 --- /dev/null +++ b/gstudio/templates/metadashboard/logindashboard.html @@ -0,0 +1,10 @@ +<html> +<head> + + +</head> +<body> + + <h1> <p style = "color :red;">OOPS!!! Login Please!</p></h1> +</body> +</html> diff --git a/gstudio/templates/metadashboard/userdashboard.html b/gstudio/templates/metadashboard/userdashboard.html new file mode 100644 index 0000000..e02f4ba --- /dev/null +++ b/gstudio/templates/metadashboard/userdashboard.html @@ -0,0 +1,74 @@ +{% extends "gstudio/base.html" %} +{% load gstudio_tags %} +{% load i18n %} +{% block content %} + + +{% if user.is_authenticated %} + <h> Welcome to the GnowledgeStudio</h></br> + <h>You are logged in as <font color="blue">{{user.username}}</font></h> + <p></br> +<p> Here is a list of all the groups:</p> +</br> + {% for each in meetings.member_systems.all %} + <a href="/gstudio/group/gnowsys-grp/{{each.id}}/">{{each.title}}</a></br> + {% endfor %} + <input type="button" value="Create a new meeting" onClick="location.href=parseURL('groupadd/');"> + </p> + <p> + </br> +{% else %} + <h1> <p style = "color :black;">OOPS!!! Login Please!</p></h1> +{% endif %} + + + +{% endblock %} + +<!--<html> +<head> +<script type="text/javascript" src="{{ STATIC_URL }}gstudio/js/domtab.js"></script> +<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}gstudio/css/domtab.css" /> + +</head> +<body> +<div class="domtab"> + <ul class="domtabs"> + <li><a href="#t1">Create a group</a></li> + <li><a href="#t2">MyGroups</a></li> + <li><a href="#t3">Join a group</a></li> + <li><a href="#t4">Statopedia</a></li> + </ul> + <div> + <h2><a name="t1" id="t1">Create a group</a></h2> + <p><!-- link to group makers page</p> + <!-- <p><a href="#top">back to menu</a></p> + </div> + <div> + <h2><a name="t2" id="t2">My Groups</a></h2> + <p>Unfortunate to find none :(</p> + <p><a href="#top">back to menu</a></p> + </div> + <div> + <h2><a name="t3" id="t3">Find a Group</a></h2> + <p><!-- runa for loop for all systemtype objects meeting "></p> + <p><a href="#top">back to menu</a></p> + </div> + <div> + <h2><a name="t4" id="t4">Stats</a></h2> + <p>Nothing!!!!</p> + <p><a href="#top">back to menu</a></p> + + + </div> +cd .. + + +</body> +</html> +--> + + + + + |