summaryrefslogtreecommitdiff
path: root/stapp/templates/video/home.html
diff options
context:
space:
mode:
authorParth Buch2012-06-21 18:28:20 +0530
committerParth Buch2012-06-21 18:28:20 +0530
commitc35b8abba60736422d55be290dc710dc862ea73a (patch)
tree5d553856219806f90746061bf2988275227c58a5 /stapp/templates/video/home.html
parent3f342f3ac36cfbf1cb68ccb767a76aba327a8326 (diff)
downloadstproject-c35b8abba60736422d55be290dc710dc862ea73a.tar.gz
stproject-c35b8abba60736422d55be290dc710dc862ea73a.tar.bz2
stproject-c35b8abba60736422d55be290dc710dc862ea73a.zip
the home view now displays the latest uploaded video and the videos of last three modified modules
Diffstat (limited to 'stapp/templates/video/home.html')
-rw-r--r--stapp/templates/video/home.html30
1 files changed, 30 insertions, 0 deletions
diff --git a/stapp/templates/video/home.html b/stapp/templates/video/home.html
new file mode 100644
index 0000000..ba84628
--- /dev/null
+++ b/stapp/templates/video/home.html
@@ -0,0 +1,30 @@
+{% extends "base.html" %}
+
+<!DOCTYPE html>
+
+{% block title %} STProject {% endblock %}
+
+{% block video %}
+
+<div class="hero-unit">
+ <h3>Latest Video</h3>
+ <video width="700" height="400" controls="controls" id="mainvideo">
+ <source src="{{play.filename.url}}">
+ </video>
+ <div id="footnote"></div>
+</div>
+
+{% for module in modules %}
+<div class="row">
+ <div span="12">
+ <h2>{{module.name}}</h2>
+ {% for video in module.video_list.all %}
+ <video width="150" height="150" controls="controls">
+ <source src="{{video.filename.url}}">
+ </video>
+ {{video.name}}
+ {% endfor %}
+ </div>
+</div>
+{% endfor %}
+{% endblock%}