summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xwebsite/templates/base.html44
-rw-r--r--website/templates/gallery.html38
-rwxr-xr-xwebsite/urls.py2
-rwxr-xr-xwebsite/views.py4
4 files changed, 48 insertions, 40 deletions
diff --git a/website/templates/base.html b/website/templates/base.html
index 38cdf35..207941a 100755
--- a/website/templates/base.html
+++ b/website/templates/base.html
@@ -44,9 +44,11 @@
<li> <a href="#coc" class="smoothScroll">COC</a></li>
<!-- <li> <a href="{% url 'website:cfp' %}">Submit</a></li>-->
<li> <a href="#schedule" class="smoothScroll">Schedule</a></li>
-<li> <a href="#instructions" class="smoothScroll">Instructions</a></li>
+ <li> <a href="#instructions" class="smoothScroll">Instructions</a></li>
<li> <a href="#venue" class="smoothScroll">Venue</a></li>
<li> <a href="#satellite" class="smoothScroll">Satellite Conference</a></li>
+ <li> <a href="{% url 'website:gallery' %}" target="_blank" class="smoothScroll">Gallery</a></li>
+
<!-- <li> <a href="#poster" class="smoothScroll">Poster</a></li>-->
<li> <a href="#contact" class="smoothScroll">Contact</a></li>
@@ -69,25 +71,7 @@
<h2>ABOUT</h2>
</header>
<p align="justify" style= "font-size: 20px;">SciPy India is a conference providing opportunities to spread the use of the Python programming language in the Scientific Computing community in India. It provides a unique opportunity to interact with the "Who's who" of the Python for Scientific Computing fraternity and learn, understand, participate, and contribute to Scientific Computing using Python. One of the goals of the conference is to combine education, engineering, and science with computing through the medium of Python.</p>
-</br>
- <u><h4>Few snaps from SciPy India 2016</h4></u>
- <center>
- <div class="w3-content w3-display-container">
- <img class="mySlides" src= "{% static 'img/images/1.jpg'%}" style="width:70%">
- <img class="mySlides" src= "{% static 'img/images/2.jpg'%}" style="width:70%">
- <img class="mySlides" src= "{% static 'img/images/3.jpg'%}" style="width:70%">
- <img class="mySlides" src= "{% static 'img/images/4.jpg'%}" style="width:70%">
- <img class="mySlides" src= "{% static 'img/images/5.jpg'%}" style="width:70%">
- <img class="mySlides" src= "{% static 'img/images/6.jpg'%}" style="width:70%">
- <img class="mySlides" src= "{% static 'img/images/7.jpg'%}" style="width:70%">
- <img class="mySlides" src= "{% static 'img/images/8.jpg'%}" style="width:70%">
- <img class="mySlides" src= "{% static 'img/images/9.jpg'%}" style="width:70%">
- <img class="mySlides" src= "{% static 'img/images/10.jpg'%}" style="width:70%">
-
- <a class="w3-btn-floating w3-display-left" onclick="plusDivs(-1)"> &#10094; Previous &nbsp;&nbsp;</a>
- <a class="w3-btn-floating w3-display-right" onclick="plusDivs(1)">&nbsp;&nbsp; Next &#10095; </a>
-</div>
-</center>
+
</div>
</div>
@@ -670,25 +654,7 @@ window.onload = function () {
</script>
-<script>
-var slideIndex = 1;
-showDivs(slideIndex);
-
-function plusDivs(n) {
- showDivs(slideIndex += n);
-}
-
-function showDivs(n) {
- var i;
- var x = document.getElementsByClassName("mySlides");
- if (n > x.length) {slideIndex = 1}
- if (n < 1) {slideIndex = x.length}
- for (i = 0; i < x.length; i++) {
- x[i].style.display = "none";
- }
- x[slideIndex-1].style.display = "block";
-}
-</script>
+
</body>
diff --git a/website/templates/gallery.html b/website/templates/gallery.html
new file mode 100644
index 0000000..435e6fc
--- /dev/null
+++ b/website/templates/gallery.html
@@ -0,0 +1,38 @@
+{% load static %}
+<center>
+ <div class="w3-content w3-display-container">
+ <img class="mySlides" src= "{% static 'img/images/1.jpg'%}" style="width:70%; height:90%">
+ <img class="mySlides" src= "{% static 'img/images/2.jpg'%}" style="width:70%; height:90%">
+ <img class="mySlides" src= "{% static 'img/images/3.jpg'%}" style="width:70%; height:90%">
+ <img class="mySlides" src= "{% static 'img/images/4.jpg'%}" style="width:70%; height:90%">
+ <img class="mySlides" src= "{% static 'img/images/5.jpg'%}" style="width:70%; height:90%">
+ <img class="mySlides" src= "{% static 'img/images/6.jpg'%}" style="width:70%; height:90%">
+ <img class="mySlides" src= "{% static 'img/images/7.jpg'%}" style="width:70%; height:90%">
+ <img class="mySlides" src= "{% static 'img/images/8.jpg'%}" style="width:70%; height:90%">
+ <img class="mySlides" src= "{% static 'img/images/9.jpg'%}" style="width:70%; height:90%">
+ <img class="mySlides" src= "{% static 'img/images/10.jpg'%}" style="width:70%; height:90%">
+
+ <a class="w3-btn-floating w3-display-left" onclick="plusDivs(-1)"> &#10094; Previous &nbsp;&nbsp;</a>
+ <a class="w3-btn-floating w3-display-right" onclick="plusDivs(1)">&nbsp;&nbsp; Next &#10095; </a>
+</div>
+</center>
+
+<script>
+var slideIndex = 1;
+showDivs(slideIndex);
+
+function plusDivs(n) {
+ showDivs(slideIndex += n);
+}
+
+function showDivs(n) {
+ var i;
+ var x = document.getElementsByClassName("mySlides");
+ if (n > x.length) {slideIndex = 1}
+ if (n < 1) {slideIndex = x.length}
+ for (i = 0; i < x.length; i++) {
+ x[i].style.display = "none";
+ }
+ x[slideIndex-1].style.display = "block";
+}
+</script> \ No newline at end of file
diff --git a/website/urls.py b/website/urls.py
index b89525d..3eae3fb 100755
--- a/website/urls.py
+++ b/website/urls.py
@@ -14,7 +14,7 @@ urlpatterns = patterns('',
url(r'^submit-cfw/$', 'website.views.home', name='home'),
url(r'^accounts/register/$', 'website.views.userregister', name='userregister'),
url(r'^accounts/login/$', 'website.views.cfp', name='cfp'),
-
+ url(r'^gallery/$', 'website.views.gallery', name='gallery'),
# url(r'^view-abstracts/$', 'website.views.view_abstracts', name='view_abstracts'),
url(r'^view-abstracts/$', 'website.views.view_abstracts', name='view_abstracts'),
url(r'^abstract-details/(?P<proposal_id>\d+)$', 'website.views.abstract_details', name='abstract_details'),
diff --git a/website/views.py b/website/views.py
index 3552f0a..12197bf 100755
--- a/website/views.py
+++ b/website/views.py
@@ -62,6 +62,10 @@ def userregister(request):
return render_to_response('cfp.html', context)
@csrf_exempt
+def gallery(request):
+ return render(request, 'gallery.html')
+
+@csrf_exempt
def contact_us(request,next_url):
pass
# user = request.user