Capitalize blog title.
authorAditi Mittal <aditi.iitr@gmail.com>
Sun, 15 Sep 2013 09:18:56 +0000 (14:48 +0530)
committerAditi Mittal <aditi.iitr@gmail.com>
Sun, 15 Sep 2013 09:18:56 +0000 (14:48 +0530)
mediagoblin/media_types/blog/templates/mediagoblin/blog/blog_admin_dashboard.html

index 488a117095ddbe11559ed5706d4ca04d609788bb..962783c9d384973988a63212c02e5d02a555c47e 100644 (file)
 
 
 {% 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>
 &middot;
-    {% 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>
 &middot;
-    {% 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 %}
-     
+