From: Aditi Date: Fri, 9 Aug 2013 09:15:06 +0000 (+0530) Subject: Replace edit blogpost url from default media_edit url to blogpost edit url. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=dee425d26c103b6fa0fbec827b5e40c53559753d;p=mediagoblin.git Replace edit blogpost url from default media_edit url to blogpost edit url. --- diff --git a/mediagoblin/templates/mediagoblin/user_pages/blog_media.html b/mediagoblin/templates/mediagoblin/user_pages/blog_media.html index 978bf944..25dd4783 100644 --- a/mediagoblin/templates/mediagoblin/user_pages/blog_media.html +++ b/mediagoblin/templates/mediagoblin/user_pages/blog_media.html @@ -70,9 +70,9 @@ {% if request.user and (media.uploader == request.user.id or request.user.is_admin) %} - {% set edit_url = request.urlgen('mediagoblin.edit.edit_media', - user= media.get_uploader.username, - media_id=media.id) %} + {% set edit_url = request.urlgen('mediagoblin.media_types.blog.blogpost.edit', + blog_slug=media.media_manager.get_blog_by_blogpost().slug, + user=request.user.username, blog_post_slug=media.slug) %} {% trans %}Edit{% endtrans %} {% set delete_url = request.urlgen('mediagoblin.user_pages.media_confirm_delete', user= media.get_uploader.username,