From 2a5f269032746dd392ad8943ae1fecaca8edb81b Mon Sep 17 00:00:00 2001 From: Aditi Date: Mon, 5 Aug 2013 17:31:08 +0530 Subject: [PATCH] Add url for delete blogpost button. --- .../mediagoblin/blog/blog_admin_dashboard.html | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/mediagoblin/templates/mediagoblin/blog/blog_admin_dashboard.html b/mediagoblin/templates/mediagoblin/blog/blog_admin_dashboard.html index c45f0e30..eb32fd41 100644 --- a/mediagoblin/templates/mediagoblin/blog/blog_admin_dashboard.html +++ b/mediagoblin/templates/mediagoblin/blog/blog_admin_dashboard.html @@ -25,7 +25,7 @@ {% block mediagoblin_content %}

{{blog.title}}

- {{blog.description}} + {{blog.description|safe}}

{% set blogpost_create_url = request.urlgen('mediagoblin.media_types.blog.blogpost.create', @@ -58,10 +58,13 @@ {% set blogpost_edit_url = request.urlgen('mediagoblin.media_types.blog.blogpost.edit', blog_slug=blog.slug, user=request.user.username, blog_post_slug=blog_post.slug) %} - Edit - Delete + {% set blogpost_delete_url = request.urlgen('mediagoblin.user_pages.media_confirm_delete', + user= blog_post.get_uploader.username, + media_id=blog_post.id) %} + + {% trans %}Edit{% endtrans %} + {% trans %}Delete{% endtrans %} - {% endfor %} -- 2.25.1