From a46c23e0428a4a86d9d2ba5b4158c6d2cb54f8ad Mon Sep 17 00:00:00 2001 From: Aditi Mittal Date: Sun, 15 Sep 2013 14:48:56 +0530 Subject: [PATCH] Capitalize blog title. --- .../blog/blog_admin_dashboard.html | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/mediagoblin/media_types/blog/templates/mediagoblin/blog/blog_admin_dashboard.html b/mediagoblin/media_types/blog/templates/mediagoblin/blog/blog_admin_dashboard.html index 488a1170..962783c9 100644 --- a/mediagoblin/media_types/blog/templates/mediagoblin/blog/blog_admin_dashboard.html +++ b/mediagoblin/media_types/blog/templates/mediagoblin/blog/blog_admin_dashboard.html @@ -31,27 +31,27 @@ {% block mediagoblin_content %} -

{{blog.title}}

+

{{blog.title}}

- {{blog.description|safe}} -

+ {{blog.description|safe}} +

- {% 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) %} {%- trans %}Add Blog Post{% endtrans -%} · - {% 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) %} {%- trans %}Edit Blog{% endtrans -%} · - {% 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) %} {%- trans %}Delete Blog{% endtrans -%} @@ -70,20 +70,20 @@ {% if blog_post.state == 'processed' %} {{ blog_post.title }} {% 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) %} {{ blog_post.title }} {% endif %} {{ blog_post.created.strftime("%F %R") }} - + {% if blog_post.state == 'processed' %}

Published
{% else %}
Draft
{% 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, @@ -94,12 +94,12 @@ {% endfor %} - + {% else %} {% trans %} No blog post yet. {% endtrans %} {% endif %} {{ render_pagination(request, pagination) }} {% endblock %} - + -- 2.25.1