{% block mediagoblin_content %}
<h1> {{blog.title}}</h1>
<p>
- {{blog.description}}
+ {{blog.description|safe}}
</p>
<p>
{% set blogpost_create_url = request.urlgen('mediagoblin.media_types.blog.blogpost.create',
{% 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) %}
- <td><a class="button_action" href="{{ blogpost_edit_url }}">Edit</a>
- <a class="button_action" >Delete</a>
+ {% set blogpost_delete_url = request.urlgen('mediagoblin.user_pages.media_confirm_delete',
+ user= blog_post.get_uploader.username,
+ media_id=blog_post.id) %}
+ <td>
+ <a class="button_action" href="{{ blogpost_edit_url }}">{% trans %}Edit{% endtrans %}</a>
+ <a class="button_action" href="{{ blogpost_delete_url }}">{% trans %}Delete{% endtrans %}</a>
</td>
-
</tr>
{% endfor %}
</table>