summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--website/static/img/ajax-loader.gifbin0 -> 847 bytes
-rw-r--r--website/static/img/link-icon.pngbin0 -> 820 bytes
-rw-r--r--website/templates/get-abstract.html16
-rw-r--r--website/templates/schedule.html93
-rw-r--r--website/urls.py3
-rw-r--r--website/views.py12
6 files changed, 112 insertions, 12 deletions
diff --git a/website/static/img/ajax-loader.gif b/website/static/img/ajax-loader.gif
new file mode 100644
index 0000000..e192ca8
--- /dev/null
+++ b/website/static/img/ajax-loader.gif
Binary files differ
diff --git a/website/static/img/link-icon.png b/website/static/img/link-icon.png
new file mode 100644
index 0000000..2a92acc
--- /dev/null
+++ b/website/static/img/link-icon.png
Binary files differ
diff --git a/website/templates/get-abstract.html b/website/templates/get-abstract.html
new file mode 100644
index 0000000..21a90de
--- /dev/null
+++ b/website/templates/get-abstract.html
@@ -0,0 +1,16 @@
+<h3>{{ paper.title }}</h3>
+<hr>
+<h4 class="subheader">By-<i>{{ paper.user.first_name }} {{ paper.user.last_name }}</i></h4>
+
+<h5>Speaker Bio</h5>
+<p>
+ {{ paper.bio }}
+</p>
+{% if paper.attachments %}
+ <a href="{{ paper.attachments.url }}" class="button small"> View Abstract</a>
+{% else %}
+ <h5>Abstract</h5>
+ <p style="text-align:justify">
+ {{ paper.abstract }}
+ </p>
+{% endif %}
diff --git a/website/templates/schedule.html b/website/templates/schedule.html
index a4643e3..48706e8 100644
--- a/website/templates/schedule.html
+++ b/website/templates/schedule.html
@@ -1,5 +1,5 @@
{% extends 'page.html'%}
-
+{% load static %}
{% block breadcrumbs %}
<li class="current"><a href="">Schedule</a></li>
<li><a href="{% url 'website:invited-speakers'%}">Invited Speakers</a></li>
@@ -59,9 +59,7 @@
<td><b>Open Space</b></td>
</tr>
<tr>
- <td></td>
- <td></td>
- <td><b>End of DAY 1</b></td>
+ <td colspan=3 style="text-align: center;"><b>End of DAY 1</b></td>
</tr>
</tr>
</table>
@@ -115,9 +113,7 @@
<td>Swig</td>
</tr>
<tr>
- <td></td>
- <td></td>
- <td><b>End of DAY 2</b></td>
+ <td colspan=3 style="text-align: center;"><b>End of DAY 2</b></td>
</tr>
</table>
@@ -143,20 +139,30 @@
<td>9:10 - 9:30</td>
<td>Anirudh Wodeyar </td>
<td>
- BrainTone - Listening to Brain Waves in Real Time</td>
+ <a href="#" class="abs-link" data-reveal-id="myModal" data-pid="8">
+ BrainTone - Listening to Brain Waves in Real Time
+ <img src="{% static 'img/link-icon.png' %}" width="10">
+ </a>
+ </td>
</tr>
<tr>
<td>9:30 - 9:45 </td>
<td>Kuppurasu Nagaraj</td>
<td>
+ <a href="#" class="abs-link" data-reveal-id="myModal" data-pid="16">
PCEHR: Python Cloud based an Electronic Health Record (EHR)
+ <img src="{% static 'img/link-icon.png' %}" width="10">
+ </a>
</td>
</tr>
<tr>
<td>9:30 - 10:00 </td>
<td>Madhu Sharma</td>
<td>
+ <a href="#" class="abs-link" data-reveal-id="myModal" data-pid="22">
Python based implementation of a secret sharing scheme
+ <img src="{% static 'img/link-icon.png' %}" width="10">
+ </a>
</td>
</tr>
<tr>
@@ -173,35 +179,50 @@
<td>11:30 - 11:50 </td>
<td>Ambuja Salgaonkar</td>
<td>
+ <a href="#" class="abs-link" data-reveal-id="myModal" data-pid="26">
CHANGE MANAGEMENT WHILE INTRODUCING PYTHON IN THE FORMAL CURRICULA
+ <img src="{% static 'img/link-icon.png' %}" width="10">
+ </a>
</td>
</tr>
<tr>
<td>11:50 - 12:05 </td>
<td>Vishwanath Dalvi</td>
<td>
+ <a href="#" class="abs-link" data-reveal-id="myModal" data-pid="20">
Automating routing administrative tasks with PyWin32
+ <img src="{% static 'img/link-icon.png' %}" width="10">
+ </a>
</td>
</tr>
<tr>
<td>12:05 - 12:25 </td>
<td>Arulalan T</td>
<td>
+ <a href="#" class="abs-link" data-reveal-id="myModal" data-pid="20">
A Python Based Framework for Systematic Weather Model Diagnosis
+ <img src="{% static 'img/link-icon.png' %}" width="10">
+ </a>
</td>
</tr>
<tr>
<td>12:25 - 12:40</td>
<td>Sachin Patil</td>
<td>
+ <a href="#" class="abs-link" data-reveal-id="myModal" data-pid="24">
Python + Emacs in scientific computing
+ <img src="{% static 'img/link-icon.png' %}" width="10">
+ </a>
</td>
</tr>
<tr>
<td>12:40 - 13:00</td>
<td>Pankaj Kumar</td>
<td>
+ <a href="#" class="abs-link" data-reveal-id="myModal" data-pid="23">
SudokuFinder : Solving the 17 clue Sudoku challenge
+ <img src="{% static 'img/link-icon.png' %}" width="10">
+ </a>
</td>
</tr>
<tr class="free">
@@ -218,28 +239,40 @@
<td>14:50 - 15:10 </td>
<td>Jaidev Deshpande</td>
<td>
+ <a href="#" class="abs-link" data-reveal-id="myModal" data-pid="27">
Compressive Sensing Solvers in Python
+ <img src="{% static 'img/link-icon.png' %}" width="10">
+ </a>
</td>
</tr>
<tr>
<td>15:10 - 15:25 </td>
<td>Kiran Kadam</td>
<td>
+ <a href="#" class="abs-link" data-reveal-id="myModal" data-pid="19">
PIV Image Processing using Python
+ <img src="{% static 'img/link-icon.png' %}" width="10">
+ </a>
</td>
</tr>
<tr>
<td>15:25 - 15:40 </td>
<td>Samarth Shah</td>
<td>
+ <a href="#" class="abs-link" data-reveal-id="myModal" data-pid="14">
Image Processing using Microsoft Kinect and Python
+ <img src="{% static 'img/link-icon.png' %}" width="10">
+ </a>
</td>
</tr>
<tr>
<td>15:40 - 16:00 </td>
<td>Tirthankar Chakravarty</td>
<td>
+ <a href="#" class="abs-link" data-reveal-id="myModal" data-pid="11">
dCrypt: A novel text categorization and classification system
+ <img src="{% static 'img/link-icon.png' %}" width="10">
+ </a>
</td>
</tr>
<tr class="free">
@@ -251,7 +284,10 @@
<td>16:30 - 16:50 </td>
<td>Hardik Ghaghada</td>
<td>
+ <a href="#" class="abs-link" data-reveal-id="myModal" data-pid="29">
Python Textbook Companion Project &amp; Insights of FOSSEE
+ <img src="{% static 'img/link-icon.png' %}" width="10">
+ </a>
</td>
</tr>
<tr>
@@ -260,7 +296,7 @@
<td>Pecha Kucha Session</td>
</tr>
<tr>
- <td>17:30 - 17:45 </td>
+ <td>17:50 - 17:45 </td>
<td>Guest Speaker </td>
<td>(depends on Availability)</td>
</tr>
@@ -270,13 +306,18 @@
<td>(depends on Availability)</td>
</tr>
<tr>
- <td></td>
- <td></td>
- <td><b>End of DAY 3</b></td>
+ <td colspan=3 style="text-align: center;"><b>End of DAY 3</b></td>
</tr>
</table>
</center>
+<!-- Modal test -->
+<div id="myModal" class="reveal-modal">
+ <img id="ajax-loader" src="{% static 'img/ajax-loader.gif' %}">
+ <div id="abs"></div>
+ <a class="close-reveal-modal">&#215;</a>
+</div>
+
<style>
table {
width: 100% !important;
@@ -292,5 +333,33 @@
td {
height: 35px;
}
+ .abs-link {
+ color: #424242;
+ font-weight: bold;
+ }
</style>
{% endblock %}
+
+{% block javascript %}
+<script>
+ $(document).ready(function() {
+ $(".abs-link").click(function() {
+ var pid = $(this).data("pid");
+ $("#ajax-loader").show();
+ $.ajax({
+ url: "/ajax-get-abstract/",
+ type: "POST",
+ data: {
+ pid: pid
+ },
+ dataType: "html",
+ success: function(data) {
+ $("#abs").html(data);
+ $(this).trigger('click');
+ $("#ajax-loader").hide();
+ }
+ });
+ });
+ });
+</script>
+{% endblock %}
diff --git a/website/urls.py b/website/urls.py
index 161df22..596948c 100644
--- a/website/urls.py
+++ b/website/urls.py
@@ -24,4 +24,7 @@ urlpatterns = patterns('',
# Sponsors
url(r'^sponsors/$', 'website.views.sponsors_page', name='sponsors'),
+
+ # ajax
+ url(r'^ajax-get-abstract/$', 'website.views.ajax_get_abstract', name='ajax_get_abstract'),
)
diff --git a/website/views.py b/website/views.py
index 32060d5..d2c5bd4 100644
--- a/website/views.py
+++ b/website/views.py
@@ -1,5 +1,6 @@
from django.http import HttpResponse, HttpResponseRedirect
from django.core.context_processors import csrf
+from django.views.decorators.csrf import csrf_exempt
from django.shortcuts import render_to_response
from models import *
@@ -103,3 +104,14 @@ def register_page(request):
# Sponsors
def sponsors_page(request):
return render_to_response('sponsors.html')
+
+@csrf_exempt
+def ajax_get_abstract(request):
+ if request.method == 'POST':
+ pid = request.POST['pid']
+ paper = Paper.objects.get(pk=pid)
+ context = {
+ 'paper': paper
+ }
+ return render_to_response('get-abstract.html', context)
+