From 06aca6af7368dc3d59e37ec2f0c731d4df756ae8 Mon Sep 17 00:00:00 2001 From: Aditi Date: Mon, 22 Jul 2013 19:15:06 +0530 Subject: [PATCH] Write template for blog_dashboard. --- .../blog/blog_admin_dashboard.html | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 mediagoblin/templates/mediagoblin/blog/blog_admin_dashboard.html diff --git a/mediagoblin/templates/mediagoblin/blog/blog_admin_dashboard.html b/mediagoblin/templates/mediagoblin/blog/blog_admin_dashboard.html new file mode 100644 index 00000000..f4f4b156 --- /dev/null +++ b/mediagoblin/templates/mediagoblin/blog/blog_admin_dashboard.html @@ -0,0 +1,54 @@ +{# +# GNU MediaGoblin -- federated, autonomous media hosting +# Copyright (C) 2011, 2012 MediaGoblin contributors. See AUTHORS. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +#} + +{% extends "mediagoblin/base.html" %} + +{% block title -%} +{{blog.title}} Dashboard — {{ super() }} +{%- endblock title %} + +{% block mediagoblin_content %} +

{{blog.title}} Dashboard

+

+ {{blog.description}} +

+

Blog Post Entries

+ {% if blog_post_count!=0 %} + + + + + + + + {% for blog_post in blog_posts_list %} + + + + + + + {% endfor %} +
IDUserTitlesubmitted
{{ blog_post.id }}{{ blog_post.get_uploader.username }}{{ blog_post.title }}{{ blog_post.created.strftime("%F %R") }}
+ {% else %} + {% trans %} No blog post yet. {% endtrans %} + {% endif %} +{% endblock %} + + +