summaryrefslogtreecommitdiff
path: root/gstudio/templates/gstudio
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
parentef3793b349be5744d6ef98a034f0c009159ed85b (diff)
downloadgnowsys-527ab688a8608ded5fc854cf8641228181efa981.tar.gz
this patch was added for metastudio by BITS Pilani team in 2012.
Diffstat (limited to 'gstudio/templates/gstudio')
-rw-r--r--gstudio/templates/gstudio/NewGroup.html53
-rw-r--r--gstudio/templates/gstudio/NewTopic.html21
-rw-r--r--gstudio/templates/gstudio/NewTopic1.html20
-rw-r--r--gstudio/templates/gstudio/_header.html13
-rw-r--r--gstudio/templates/gstudio/docu.html107
-rw-r--r--gstudio/templates/gstudio/fullscreen.html4
-rw-r--r--gstudio/templates/gstudio/image.html119
-rw-r--r--gstudio/templates/gstudio/later.html8
-rw-r--r--gstudio/templates/gstudio/over.html7
-rw-r--r--gstudio/templates/gstudio/skeleton.html5
-rw-r--r--gstudio/templates/gstudio/tags/comment.html68
-rw-r--r--gstudio/templates/gstudio/transcript.html28
-rw-r--r--gstudio/templates/gstudio/video.html184
13 files changed, 631 insertions, 6 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 c99bab9..a695307 100644
--- a/gstudio/templates/gstudio/skeleton.html
+++ b/gstudio/templates/gstudio/skeleton.html
@@ -123,7 +123,10 @@
<script type="text/javascript" src="{{STATIC_URL}}gstudio/js/Gnowmacs/src/js/ymacs-keymap-emacs.js"></script>
<script src="{{STATIC_URL}}gstudio/js/gstudio.js" type="text/javascript"></script>
- <!-- EXTRAHEAD -->
+ <script type="text/javascript" src="{{STATIC_URL}}gstudio/js/diasporaSyndicate.js"></script>
+ <script type="text/javascript" src="{{STATIC_URL}}gstudio/js/twitterSyndicate.js" ></script>
+
+ <!-- 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 %}
+
+
+