|
|
@ -72,7 +72,7 @@ def frontpage_view(request): |
|
|
|
images = lp_media_for_type(request.db, u'mediagoblin.media_types.image') |
|
|
|
images = lp_media_for_type(request.db, u'mediagoblin.media_types.image') |
|
|
|
videos = lp_media_for_type(request.db, u'mediagoblin.media_types.video') |
|
|
|
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_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) |
|
|
|
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', |
|
|
|
request, 'libreplanet/root.html', |
|
|
|
{'images': images, |
|
|
|
{'images': images, |
|
|
|
'videos': videos, |
|
|
|
'videos': videos, |
|
|
|
|
|
|
|
'lp2016_videos': lp2016_videos, |
|
|
|
'featured_images': featured_images, |
|
|
|
'featured_images': featured_images, |
|
|
|
'featured_videos': featured_videos, |
|
|
|
'featured_videos': featured_videos, |
|
|
|
'allow_registration': mg_globals.app_config["allow_registration"]}) |
|
|
|
'allow_registration': mg_globals.app_config["allow_registration"]}) |
|
|
|