From b1ae133639a88aba1f3d5c8fdc89d713d9c114d2 Mon Sep 17 00:00:00 2001 From: Sanj Date: Wed, 26 Dec 2012 14:47:22 +0530 Subject: [PATCH] initial display of links in gallery upload page --- itf/mediagallery/views.py | 2 ++ itf/templates/mediagallery/upload.html | 9 +++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/itf/mediagallery/views.py b/itf/mediagallery/views.py index 022d9f9..e369d38 100644 --- a/itf/mediagallery/views.py +++ b/itf/mediagallery/views.py @@ -28,9 +28,11 @@ def edit(request, id): gallery = get_object_or_404(GalleryAlbum, pk=id) photos = Photo.objects.filter(album=gallery) youtube_videos = YoutubeVideo.objects.filter(album=gallery) + links = GalleryLink.objects.filter(album=gallery) context = RequestContext(request, { 'gallery': gallery, 'photos': photos, + 'links': links, 'youtube_videos': youtube_videos }) return render_to_response("mediagallery/upload.html", context) diff --git a/itf/templates/mediagallery/upload.html b/itf/templates/mediagallery/upload.html index 05f59c3..b97f724 100644 --- a/itf/templates/mediagallery/upload.html +++ b/itf/templates/mediagallery/upload.html @@ -195,7 +195,6 @@ $(function() {
{{ vid.title }}
X - {% endfor %} @@ -208,7 +207,13 @@ $(function() {