summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhardythe12013-11-12 18:05:43 +0530
committerhardythe12013-11-12 18:05:43 +0530
commit5ea0f772418741faeb29a9c731e066ab5a7c5a4f (patch)
tree12706cea8a6a040f871c284ea7f1a79590be4029
parent932c8c2af6664354e896252c56fa467875edc45f (diff)
downloadSciPy2012-5ea0f772418741faeb29a9c731e066ab5a7c5a4f.tar.gz
SciPy2012-5ea0f772418741faeb29a9c731e066ab5a7c5a4f.tar.bz2
SciPy2012-5ea0f772418741faeb29a9c731e066ab5a7c5a4f.zip
adding condition to see if the video/slide is avaliable
-rw-r--r--templates/conference/details.html11
1 files changed, 10 insertions, 1 deletions
diff --git a/templates/conference/details.html b/templates/conference/details.html
index c0e8156..14a9660 100644
--- a/templates/conference/details.html
+++ b/templates/conference/details.html
@@ -4,9 +4,18 @@
{% block content %}
<h2>{{ detail.title }}</h2>
<p>{{ detail.abstract }}</p>
+
+{% if slides %}
<iframe src="{{ detail.video }}" allowFullScreen webkitallowFullScreen mozallowFullScreen width=616 height=407 rel=nofollow> </iframe>
+{% else %}
+<p>Sorry, Video for this talk is not available.</p>
+{% endif %}
<p>By: {{ detail.speaker }}</p>
-<a href="2012/static/files/{{ detail.slides }}">Download Slides</a>
+{% if slides %}
+<a href="{% static 'files/' %}{{ detail.slides }}">Download Slides</a>
+{% else %}
+<p>Sorry, Slides for this talk are not available.</p>
+{% endif %}
{% endblock %}