Add the slides from the Conference and Tutorials to the new section.
authorMadhusudan.C.S <madhusudancs@gmail.com>
Mon, 27 Dec 2010 03:51:41 +0530
changeset 369 7ea06f159d15
parent 368 704af5be5fb9
child 370 58f8580cb641
Add the slides from the Conference and Tutorials to the new section.
project/scipycon/talk/views.py
project/static/files/conference-talks.zip
project/static/files/tutorials.zip
project/templates/_menu.html
project/templates/talk/download-slides.html
project/urls.py
--- a/project/scipycon/talk/views.py	Fri Dec 24 16:02:21 2010 +0530
+++ b/project/scipycon/talk/views.py	Mon Dec 27 03:51:41 2010 +0530
@@ -205,3 +205,12 @@
         'params': {'scope': scope},
         'talk_list': talks,
     }))
+
+def download_slides(request, scope):
+    """View that lets users allow to download the slides they want.
+    """
+
+    template_name = 'talk/download-slides.html'
+    return render_to_response(template_name, RequestContext(request, {
+        'params': {'scope': scope},
+    }))
Binary file project/static/files/conference-talks.zip has changed
Binary file project/static/files/tutorials.zip has changed
--- a/project/templates/_menu.html	Fri Dec 24 16:02:21 2010 +0530
+++ b/project/templates/_menu.html	Mon Dec 27 03:51:41 2010 +0530
@@ -1,6 +1,11 @@
 <div id="left-inner">
   <ul>
     <li><a href="/{{ params.scope }}/">Home</a></li>
+    <li>
+      <a href="{% url scipycon_download_slides params.scope %}">
+        Download Slides <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-slides.html	Mon Dec 27 03:51:41 2010 +0530
@@ -0,0 +1,19 @@
+{% extends "base.html" %}
+
+{% block title %}My Talks{% endblock %}
+
+{% block content %}
+<h1>Slides for Download</h1>
+<h2>Conference Talks</h2>
+<p>
+  <a href="/static/files/conference-talks.zip">
+    Click here to download
+  </a>
+</p><br />
+<h2>Tutorials(Slides, circulate and other materials)</h2>
+<p>
+  <a href="/static/files/tutorials.zip">
+    Click here to download
+  </a>
+</p>
+{% endblock content %}
--- a/project/urls.py	Fri Dec 24 16:02:21 2010 +0530
+++ b/project/urls.py	Mon Dec 27 03:51:41 2010 +0530
@@ -41,6 +41,8 @@
         'edit_talk', name='scipycon_edit_talk'),
     url(r'^%s/list-talks/(?P<id>\d+)/$' % (SCOPE_ARG_PATTERN),
         'list_talks', name='scipycon_list_talk'),
+    url(r'^%s/download_slides/$' % (SCOPE_ARG_PATTERN),
+        'download_slides', name='scipycon_download_slides'),
     )
 
 # Registration