removing /videos/libreplanet, etc URLs

These videos and photos are already tagged, and we can just use the
tagging system to show them:

https://media.libreplanet.org/u/libreplanet/tag/libreplanet-2016-video/
https://media.libreplanet.org/u/libreplanet/tag/libreplanet-2016/
remotes/1726741609412457634/master
Andrew Engelbrecht 8 years ago
parent c82654157c
commit 3d2049606f
  1. 7
      mediagoblin_libreplanet/__init__.py
  2. 9
      mediagoblin_libreplanet/views.py

@ -80,12 +80,7 @@ register_routes([('all-videos', '/videos',
('featured-videos', '/videos/featured',
'mediagoblin.plugins.libreplanet.views:featured_video_listing'),
('featured-photos', '/photos/featured',
'mediagoblin.plugins.libreplanet.views:featured_image_listing'),
('libreplanet-videos', '/videos/libreplanet',
'mediagoblin.plugins.libreplanet.views:libreplanet_video_listing'),
('libreplanet-photos', '/photos/libreplanet',
'mediagoblin.plugins.libreplanet.views:libreplanet_image_listing')
'mediagoblin.plugins.libreplanet.views:featured_image_listing')
])
# This is a dict that specifies which hooks this plugin uses.

@ -60,12 +60,3 @@ def featured_image_listing(request, page):
def featured_video_listing(request, page):
return type_listing(u'mediagoblin.media_types.video', 'Featured Videos', request, page, "featured")
@uses_pagination
def libreplanet_image_listing(request, page):
return type_listing(u'mediagoblin.media_types.image', 'LibrePlanet Photos', request, page, "libreplanet")
@uses_pagination
def libreplanet_video_listing(request, page):
return type_listing(u'mediagoblin.media_types.video', 'LibrePlanet Videos', request, page, "libreplanet")

Loading…
Cancel
Save