Add edit url for each blog post.
authorAditi <aditi.iitr@gmail.com>
Thu, 25 Jul 2013 07:47:44 +0000 (13:17 +0530)
committerAditi <aditi.iitr@gmail.com>
Thu, 25 Jul 2013 07:47:44 +0000 (13:17 +0530)
mediagoblin/templates/mediagoblin/blog/blog_admin_dashboard.html

index 45da73a910e73734f85a4573caaaa5408bdf7a69..4effaf01cc71c40a3ba9d4b0837aba8968b9e295 100644 (file)
      <table class="media_panel processing">
         <tr>
             <th>ID</th>
-            <th>User</th>
             <th>Title</th>
             <th>submitted</th>
+            <th>  </th>
         </tr>
         {% for blog_post in blog_posts_list %}
         <tr>
             <td>{{ blog_post.id }}</td>
-            <td>{{ blog_post.get_uploader.username }}</td>
             <td><a href="{{ blog_post.url_for_self(request.urlgen) }}">{{ blog_post.title }}</a></td>
             <td>{{ blog_post.created.strftime("%F %R") }}</td>
+            <td></td>
+            <td><a href="{{request.urlgen('mediagoblin.media_types.blog.blogpost.edit', blog_slug=blog.slug, user=request.user.username, blog_post_slug=blog_post.slug) }}">Edit</a></td>
         </tr>
         {% endfor %}
      </table>