From 92a7668ae75e6b6244083dc56cdf50567f72086e Mon Sep 17 00:00:00 2001 From: Jay Parikh Date: Mon, 23 Jul 2012 15:27:25 +0530 Subject: modification to change the description and name of the video being played --- stapp/templates/video/home.html | 19 +++++++++++-------- stapp/video/views.py | 1 + 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/stapp/templates/video/home.html b/stapp/templates/video/home.html index 275a77a..80cc29b 100644 --- a/stapp/templates/video/home.html +++ b/stapp/templates/video/home.html @@ -6,15 +6,12 @@ {% block script %} {% endblock %} @@ -38,7 +35,13 @@ function myfunction(video,image)

{{module.name}}

{{module.description|safe}}
{% for video in module.video_list.all %} - {{video.name}} + + + {{video.name}} + + +
{% endfor %}
{% endfor %} @@ -50,7 +53,7 @@ function myfunction(video,image)

{{module.name}}

{{module.description|safe}}
{% for video in module.video_list.all %} - {{video.name}} + {{video.name}}
{% endfor %}
{% endfor %} diff --git a/stapp/video/views.py b/stapp/video/views.py index 544c2b0..8b7240d 100644 --- a/stapp/video/views.py +++ b/stapp/video/views.py @@ -15,6 +15,7 @@ def show(request): latest_modules = Module.objects.order_by('-modified')[0:3] all_modules = Module.objects.order_by('modified') + context = { 'latest_modules' : latest_modules , 'play' : latest_video, 'all_modules':all_modules} return render(request, 'video/home.html', context) -- cgit