summaryrefslogtreecommitdiff
path: root/gstudio/templates/gstudio/transcript.html
diff options
context:
space:
mode:
Diffstat (limited to 'gstudio/templates/gstudio/transcript.html')
-rw-r--r--gstudio/templates/gstudio/transcript.html122
1 files changed, 108 insertions, 14 deletions
diff --git a/gstudio/templates/gstudio/transcript.html b/gstudio/templates/gstudio/transcript.html
index 7860061..d86810e 100644
--- a/gstudio/templates/gstudio/transcript.html
+++ b/gstudio/templates/gstudio/transcript.html
@@ -1,17 +1,64 @@
+{% extends "gstudio/base.html" %}
{% load adminmedia grp_tags %}
{% load i18n comments gstudio_tags %}
{% load tagging_tags comments i18n %}
+{% load gstudio_tags %}
<html>
<head>
+{% block javascripts %}
+
+<script type="text/javascript">
+ // GLOBALS
+ var grappelli = {},
+ // TODO: klemens: drop ADMIN_URL
+ ADMIN_URL = "{% url admin:index %}",
+ MODEL_URL_ARRAY = {% get_content_types %}, DATE_FORMAT = "{% get_date_format %}", TIME_FORMAT = "{% get_time_format %}", DATETIME_FORMAT = "{% get_datetime_format %}";
+</script>
<link href="{% admin_media_prefix %}css/base.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" media="screen, projection" href="{{ STATIC_URL }}gstudio/css/screen.css" />
<link rel="shortcut icon" href="{{ STATIC_URL }}gstudio/img/favicon.ico" />
<script src="{% admin_media_prefix %}jquery/jquery-1.6.2.min.js" type="text/javascript"></script>
+<script src="{% admin_media_prefix %}jquery/ui/js/jquery-ui-1.8.15.custom.min.js" type="text/javascript"></script>
+<script src="{% admin_media_prefix %}js/grappelli/grappelli.js" type="text/javascript"></script>
+<script src="{% admin_media_prefix %}js/grappelli/jquery.grp_collapsible.js" type="text/javascript"></script>
+<script src="{% admin_media_prefix %}jquery/jquery-1.6.2.min.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" 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" >
+ $(window).load(function() {
+ $("#content").css({
+ "width": "600px"});});
+
+$(window).load(function() {
+
+ $("#graphcss").hide();
+ });
+$(window).load(function() {
+ $("#chart").hide();});
+var i = 0;
+jQuery(document).ready(function($) {
+ $("#editcontent").click(function(){
+ document.getElementById('gnoweditor').style.visibility="visible";
+ $("#gnoweditor").val($("#editortext").val());
+ $("#gnoweditor").orgitdown(mySettings);
+ document.getElementById('save').style.visibility="visible";
+ $("#editcontent").hide();
+
+ });
+ $("#save").click(function(){
+ var org_data = $("#gnoweditor").val();
+ var encode_data = encodeURIComponent(org_data);
+ var decode_data = decodeURIComponent(encode_data.replace(/\+/g, " "));
+ $("#commenttext").val(decode_data);
+ });
+});
+</script>
<script type="text/javascript">
$.noConflict();
@@ -19,28 +66,72 @@ $(function() {
$('#pandoravideo').pandoravideo();
});
</script>
+
+{% endblock %}
+ {% block title %}{{ video.title }}{% endblock %}
</head>
<body>
-<div id="pandoravideo" data-pandora-id={{id}} data-pandora-layers="transcripts, descriptions, keywords, places">
-
+{% block content %}
+<div id="pandoravideo" data-pandora-id={{video.slug}} data-pandora-layers="transcripts, descriptions, keywords, places">
</div>
+<b>Download:</b>&nbsp;&nbsp;<a href={{video.rurl}} target="_blank">Right click to download</a><br/>
+<form method="post" action="">{% csrf_token %}
<font color='black'>Name:</font>
-<font color='teal'>{{ titlename }}</font><br/>
+<font color='teal'>{{ video.title }}</font><br/>
<font color = 'black'>Posted By : </font>
+{% for author in video.get_nbh.posted_by %}
+ <font color = 'teal'>{{ author }}</font>
+{% endfor %}
- <font color = 'teal'>{{postedby}}</font>
<br>
<font color = 'black'>Posted At :</font>
- <font color = 'teal'>{{date}}</font>
+{% for date in video.get_nbh.creation_day %}
+<font color = 'teal'>{{date}}</font>
+
+{% endfor %}
+
<br>
<font color = 'black'>Location: </font>
+{% 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'>Description:</font><font color = 'teal'>{{ contentname }}</font>
+ <input type="hidden" name="contentname" value="{{ video.content }}" />
+ <input type="hidden" name="ratename" value="{{ video.rating.get_rating }}" />
+<font color = 'black'>Description:</font><font color = 'teal'>
+{%autoescape on%}
+{% with video.html_content|safe as video_content %}
+ {{video_content}}
+{% endwith %}
+{% endautoescape%}</font>
+
+{% for author in video.get_nbh.posted_by %}
+ {% ifequal author user.username %}
+<input type="hidden" name="vidid" value={{video.id}}>
+<input type="button" id="editcontent" name="{{video.content}}" value="Edit"/>
+<input type="submit" class="commentsavecontent" id="save" value="Save" style="visibility:hidden" />
+<input type="hidden" name="contenttext" id="commenttext" style="visibility:hidden" />
+<input type="hidden" id="editortext" style="visibility:hidden" value="{{video.content_org}}">
+ {% endifequal %}
+{% endfor %}
+</form>
<br/>
-<font color = 'black'>Current rating is: &nbsp;<font color='teal'><b>{{ rateby }}</b></font> </font>
+
+{% ifequal video.rating.get_rating 0 %}
+
+<font color = 'black'>Current rating is: &nbsp;<font color = 'teal'> No rating yet </font></font>
+{% else %}
+<font color = 'black'>Average Current rating is: &nbsp;<font color='teal'><b>{{ video.rating.get_rating }}</b></font> </font><br/>
+<font color = 'black'>Total Number of votes is: &nbsp;<font color='teal'><b>{{ video.rating_votes }}</b></font> </font>
+{% endifequal %}
<br>
<form method="post" action="">
{% csrf_token %}
@@ -50,18 +141,18 @@ $('#pandoravideo').pandoravideo();
<input name="star1" type="radio" value=4 class="star"/>
<input name="star1" type="radio" value=5 class="star"/>
-<input type="hidden" name="vidid" value={{vidid}}>
+<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={{vidid}}>
+<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>
<form method="post" action="">{% csrf_token %}
-<input type="hidden" name="vidid" value={{vidid}}>
+<input type="hidden" name="vidid" value={{video.id}}>
<input type="text" value="" name="texttags" />
<input type="submit" value="Add Tags" name="addtags" />
</form>
@@ -125,8 +216,11 @@ $('#pandoravideo').pandoravideo();
<div class="commentForm span-16 last">
{% render_comment_form for video %}
</div>
-<hr width="100%" style="height:5px;" color="black"/>
+<!--<hr width="100%" style="height:5px;" color="black"/>-->
<br>
+
+{% endblock %}
+{% block graph %}
+
+{% endblock %}
</body>
-
-</html>