added /videos/featured and /photos/featured URLs
[mediagoblin-libreplanet.git] / mediagoblin_libreplanet / views.py
index 1dac5be..829840c 100644 (file)
@@ -50,3 +50,12 @@ def image_listing(request, page):
 @uses_pagination
 def video_listing(request, page):
     return type_listing(u'mediagoblin.media_types.video', 'Videos', request, page)
+
+@uses_pagination
+def featured_image_listing(request, page):
+    return type_listing(u'mediagoblin.media_types.image', 'Featured Photos', request, page, "featured")
+
+@uses_pagination
+def featured_video_listing(request, page):
+    return type_listing(u'mediagoblin.media_types.video', 'Featured Videos', request, page, "featured")
+