{% block mediagoblin_content %}
-<h1> {{blog.title}}</h1>
+<h1 style="text-transform:capitalize"> {{blog.title}}</h1>
<p>
- {{blog.description|safe}}
-</p>
+ {{blog.description|safe}}
+</p>
<p>
- {% set blogpost_create_url = request.urlgen('mediagoblin.media_types.blog.blogpost.create',
- blog_slug=blog.slug,
+ {% set blogpost_create_url = request.urlgen('mediagoblin.media_types.blog.blogpost.create',
+ blog_slug=blog.slug,
user=request.user.username) %}
<a class="button_action" href="{{ blogpost_create_url }}">
{%- trans %}Add Blog Post{% endtrans -%}
</a>
·
- {% set blog_edit_url = request.urlgen('mediagoblin.media_types.blog.edit',
- blog_slug=blog.slug,
+ {% set blog_edit_url = request.urlgen('mediagoblin.media_types.blog.edit',
+ blog_slug=blog.slug,
user=request.user.username) %}
<a class="button_action" href="{{ blog_edit_url }}">
{%- trans %}Edit Blog{% endtrans -%}
</a>
·
- {% set blog_delete_url = request.urlgen('mediagoblin.media_types.blog.blog_delete',
- blog_slug=blog.slug,
+ {% set blog_delete_url = request.urlgen('mediagoblin.media_types.blog.blog_delete',
+ blog_slug=blog.slug,
user=request.user.username) %}
<a class="button_action" href="{{ blog_delete_url }}">
{%- trans %}Delete Blog{% endtrans -%}
{% if blog_post.state == 'processed' %}
<td><a href="{{ blog_post.url_for_self(request.urlgen) }}">{{ blog_post.title }}</a></td>
{% else %}
- {% set draft_url = request.urlgen('mediagoblin.media_types.blog.blogpost_draft_view',
- blog_slug=blog.slug, user=request.user.username,
+ {% set draft_url = request.urlgen('mediagoblin.media_types.blog.blogpost_draft_view',
+ blog_slug=blog.slug, user=request.user.username,
blog_post_slug=blog_post.slug) %}
<td><a href="{{ draft_url }}">{{ blog_post.title }}</a></td>
{% endif %}
<td>{{ blog_post.created.strftime("%F %R") }}</td>
-
+
{% if blog_post.state == 'processed' %}
<td><h6><em>Published</em></h6></td>
{% else %}
<td><h6><em>Draft</em></h6></td>
{% endif %}
- {% set blogpost_edit_url = request.urlgen('mediagoblin.media_types.blog.blogpost.edit',
- blog_slug=blog.slug, user=request.user.username,
+ {% 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) %}
{% set blogpost_delete_url = request.urlgen('mediagoblin.user_pages.media_confirm_delete',
user= blog_post.get_uploader.username,
</td>
</tr>
{% endfor %}
- </table>
+ </table>
{% else %}
{% trans %} No blog post yet. {% endtrans %}
{% endif %}
{{ render_pagination(request, pagination) }}
{% endblock %}
-
+