added missing template variable association
authorAndrew Engelbrecht <sudoman@ninthfloor.org>
Wed, 8 Mar 2017 17:38:01 +0000 (12:38 -0500)
committerAndrew Engelbrecht <sudoman@ninthfloor.org>
Wed, 8 Mar 2017 17:38:01 +0000 (12:38 -0500)
and whitespace change

mediagoblin_libreplanet/__init__.py

index 0f1cbbb..d363dcd 100644 (file)
@@ -72,7 +72,7 @@ def frontpage_view(request):
     images          = lp_media_for_type(request.db, u'mediagoblin.media_types.image')
     videos          = lp_media_for_type(request.db, u'mediagoblin.media_types.video')
 
-    lp2016_videos = lp_media_for_type(request.db, u'mediagoblin.media_types.video', LATEST_LP_VIDEO_TAG, MAX_HOME_LP_ITEMS)
+    lp2016_videos   = lp_media_for_type(request.db, u'mediagoblin.media_types.video', LATEST_LP_VIDEO_TAG, MAX_HOME_LP_ITEMS)
 
     featured_images = lp_media_for_type(request.db, u'mediagoblin.media_types.image', FEATURED_TAG, MAX_HOME_FEATURED_ITEMS)
     featured_videos = lp_media_for_type(request.db, u'mediagoblin.media_types.video', FEATURED_TAG, MAX_HOME_FEATURED_ITEMS)
@@ -81,6 +81,7 @@ def frontpage_view(request):
         request, 'libreplanet/root.html',
         {'images': images,
          'videos': videos,
+         'lp2016_videos': lp2016_videos,
          'featured_images': featured_images,
          'featured_videos': featured_videos,
          'allow_registration': mg_globals.app_config["allow_registration"]})