padma videos list
This commit is contained in:
parent
3d8de06494
commit
b065291879
|
@ -25,19 +25,23 @@ class PadmaVideo(ItfModel):
|
|||
data = DictField(default={}, editable=False)
|
||||
layers = DictField(default={}, editable=False)
|
||||
|
||||
fts = ['title']
|
||||
|
||||
def __unicode__(self):
|
||||
return self.padma_id
|
||||
|
||||
def get_dict(self):
|
||||
return {
|
||||
'embed_code': self.embed_code,
|
||||
'url': self.url,
|
||||
#'embed_code': self.embed_code,
|
||||
#'url': self.url,
|
||||
'padma_id': self.padma_id,
|
||||
'duration': self.duration,
|
||||
'title': self.title,
|
||||
'data': self.data,
|
||||
'time_in': self.time_in,
|
||||
'time_out': self.time_out,
|
||||
'layers':self.layers
|
||||
|
||||
#'time_in': self.time_in,
|
||||
#'time_out': self.time_out,
|
||||
'layers':self.layers,
|
||||
'clips': self.padmaclip_set.all()
|
||||
}
|
||||
|
||||
@property
|
||||
|
|
11
itf/templates/modules/padmavideos/padmavideo.html
Normal file
11
itf/templates/modules/padmavideos/padmavideo.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
<div class="videoTitle">{{ title }}</div>
|
||||
<div class="pandoraVideo" data-pandora-id="{{ padma_id }}" data-pandora-layers="transcripts"></div>
|
||||
|
||||
|
||||
<script type="text/javascript" src="/static/js/jquery.pandoravideo.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
$('.pandoraVideo').pandoravideo();
|
||||
});
|
||||
|
||||
</script>
|
Loading…
Reference in New Issue
Block a user