Changes to put a download videos link and page on scipy.in
authorAmit Sethi
Wed, 29 Dec 2010 15:12:28 +0530
changeset 371 f2b47f5dac06
parent 370 58f8580cb641
child 372 14854e1848e8
Changes to put a download videos link and page on scipy.in
project/scipycon/talk/views.py
project/templates/_menu.html
project/templates/talk/download-videos.html
project/urls.py
--- a/project/scipycon/talk/views.py	Tue Dec 28 22:43:17 2010 +0530
+++ b/project/scipycon/talk/views.py	Wed Dec 29 15:12:28 2010 +0530
@@ -214,3 +214,12 @@
     return render_to_response(template_name, RequestContext(request, {
         'params': {'scope': scope},
     }))
+
+def download_videos(request, scope):
+    """View that gives users the link to the videos
+    """
+
+    template_name = 'talk/download-videos.html'
+    return render_to_response(template_name, RequestContext(request, {
+        'params': {'scope': scope},
+    }))
--- a/project/templates/_menu.html	Tue Dec 28 22:43:17 2010 +0530
+++ b/project/templates/_menu.html	Wed Dec 29 15:12:28 2010 +0530
@@ -6,6 +6,11 @@
         Download Slides <font color="red">(New)</font>
       </a>
     </li>
+    <li>
+      <a href="{% url scipycon_download_videos params.scope %}">
+        Download Videos <font color="red">(New)</font>
+      </a>
+    </li>
     <li><a href="/{{ params.scope }}/submit-registration/">Registration</a></li>
     <li>
       <ul>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/project/templates/talk/download-videos.html	Wed Dec 29 15:12:28 2010 +0530
@@ -0,0 +1,44 @@
+{% extends "base.html" %}
+
+{% block title %}Talk Videos{% endblock %}
+
+{% block content %}
+<h1>Videos for Download</h1>
+<h2>First day talks </h2>
+<p>
+  <a href="http://www.fossee.in/sitefiles/Videos/SciPy_in_2010/first-day-part-1.ogv">
+    Part 1
+  </a>
+&nbsp;  
+  <a href="http://www.fossee.in/sitefiles/Videos/SciPy_in_2010/first-day-part-2.ogv">
+   Part 2
+  </a>
+&nbsp;
+  <!-- <a href="http://www.fossee.in/sitefiles/Videos/SciPy_in_2010/first-day-part-3.ogv"> -->
+  <!--   Part 3 -->
+  <!-- </a> -->
+  <a href="http://www.fossee.in/sitefiles/Videos/SciPy_in_2010/first-day-part-4.ogv">
+  Part 4
+  </a>
+
+  <br />
+  <a href="http://www.fossee.in/sitefiles/Videos/SciPy_in_2010/first-day-part-5.ogv">
+     Part 5
+  </a>
+&nbsp;
+  <a href="http://www.fossee.in/sitefiles/Videos/SciPy_in_2010/first-day-part-6.ogv">
+      Part 6
+  </a>
+&nbsp;  
+  <a href="http://www.fossee.in/sitefiles/Videos/SciPy_in_2010/first-day-part-7.ogv">
+      Part 7
+  </a>
+&nbsp;  
+  <a href="http://www.fossee.in/sitefiles/Videos/SciPy_in_2010/first-day-part-8.ogv">
+      Part 8
+  </a>
+<br />
+<br />
+<h3> This is an incomplete list we shall add more videos in the coming days. </h3>
+</p><br />
+{% endblock content %}
--- a/project/urls.py	Tue Dec 28 22:43:17 2010 +0530
+++ b/project/urls.py	Wed Dec 29 15:12:28 2010 +0530
@@ -43,6 +43,9 @@
         'list_talks', name='scipycon_list_talk'),
     url(r'^%s/download_slides/$' % (SCOPE_ARG_PATTERN),
         'download_slides', name='scipycon_download_slides'),
+    url(r'^%s/download_videos/$' % (SCOPE_ARG_PATTERN),
+        'download_videos', name='scipycon_download_videos'),
+
     )
 
 # Registration