diff options
author | Amit Sethi | 2010-12-29 15:12:28 +0530 |
---|---|---|
committer | Amit Sethi | 2010-12-29 15:12:28 +0530 |
commit | bf12d8230b6548152d5459b41d4e5ed81bd7fbfc (patch) | |
tree | ef70c1fa6ab687b8d4dd7e24c37d36a6ec768d4f | |
parent | ff8e2a2f5b8b21ebde1314ba2f22b5eb2423df6d (diff) | |
download | scipycon-bf12d8230b6548152d5459b41d4e5ed81bd7fbfc.tar.gz scipycon-bf12d8230b6548152d5459b41d4e5ed81bd7fbfc.tar.bz2 scipycon-bf12d8230b6548152d5459b41d4e5ed81bd7fbfc.zip |
Changes to put a download videos link and page on scipy.in
-rw-r--r-- | project/scipycon/talk/views.py | 9 | ||||
-rw-r--r-- | project/templates/_menu.html | 5 | ||||
-rw-r--r-- | project/templates/talk/download-videos.html | 44 | ||||
-rw-r--r-- | project/urls.py | 3 |
4 files changed, 61 insertions, 0 deletions
diff --git a/project/scipycon/talk/views.py b/project/scipycon/talk/views.py index d00aad7..62ae38d 100644 --- a/project/scipycon/talk/views.py +++ b/project/scipycon/talk/views.py @@ -214,3 +214,12 @@ def download_slides(request, scope): 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}, + })) diff --git a/project/templates/_menu.html b/project/templates/_menu.html index 470f9a8..7cfa57d 100644 --- a/project/templates/_menu.html +++ b/project/templates/_menu.html @@ -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> diff --git a/project/templates/talk/download-videos.html b/project/templates/talk/download-videos.html new file mode 100644 index 0000000..e68f680 --- /dev/null +++ b/project/templates/talk/download-videos.html @@ -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> + + <a href="http://www.fossee.in/sitefiles/Videos/SciPy_in_2010/first-day-part-2.ogv"> + Part 2 + </a> + + <!-- <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> + + <a href="http://www.fossee.in/sitefiles/Videos/SciPy_in_2010/first-day-part-6.ogv"> + Part 6 + </a> + + <a href="http://www.fossee.in/sitefiles/Videos/SciPy_in_2010/first-day-part-7.ogv"> + Part 7 + </a> + + <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 %} diff --git a/project/urls.py b/project/urls.py index 5680ddd..dbf3dd8 100644 --- a/project/urls.py +++ b/project/urls.py @@ -43,6 +43,9 @@ urlpatterns += patterns('project.scipycon.talk.views', '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 |