aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/media_types
diff options
context:
space:
mode:
authorAditi Mittal <aditi.iitr@gmail.com>2013-09-05 21:20:29 +0530
committerAditi Mittal <aditi.iitr@gmail.com>2013-09-05 21:20:29 +0530
commitaf07925de6fe2c1153972b6e208582425ca9a20d (patch)
treededcfcea817b7e02dbcf6d1b870329f5a645480f /mediagoblin/media_types
parentfe741055099ad37c444a9283017ac92e4e9c039e (diff)
downloadmediagoblin-af07925de6fe2c1153972b6e208582425ca9a20d.tar.lz
mediagoblin-af07925de6fe2c1153972b6e208582425ca9a20d.tar.xz
mediagoblin-af07925de6fe2c1153972b6e208582425ca9a20d.zip
Created a template for viewing all blogs by a user.
Diffstat (limited to 'mediagoblin/media_types')
-rw-r--r--mediagoblin/media_types/blog/templates/mediagoblin/blog/list_of_blogs.html64
1 files changed, 64 insertions, 0 deletions
diff --git a/mediagoblin/media_types/blog/templates/mediagoblin/blog/list_of_blogs.html b/mediagoblin/media_types/blog/templates/mediagoblin/blog/list_of_blogs.html
new file mode 100644
index 00000000..a362c7ac
--- /dev/null
+++ b/mediagoblin/media_types/blog/templates/mediagoblin/blog/list_of_blogs.html
@@ -0,0 +1,64 @@
+{#
+# 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 <http://www.gnu.org/licenses/>.
+#}
+
+{% extends "mediagoblin/base.html" %}
+
+
+{% block mediagoblin_head%}
+<style type = "text/css">
+ td > a { text-decoration:none; font-weight: bold; }
+</style>
+{% endblock %}
+
+{% block mediagoblin_content %}
+<table>
+ {% for blog in blogs %}
+ {% set my_blog_url = request.urlgen('mediagoblin.media_types.blog.blog-dashboard',
+ blog_slug=blog.slug, user=request.user.username) %}
+ {% set others_blog_url = request.urlgen('mediagoblin.media_types.blog.blog_post_listing',
+ blog_slug=blog.slug, user=url_user) %}
+ {% if request.user.username == url_user%}
+ <tr><a href="{{ my_blog_url }}">{{ blog.title }}</a></tr>
+ {% else %}
+ <tr><a href="{{ others_blog_url }}">{{ blog.title }}</a></tr>
+ {% endif %}
+ <br>
+ {% endfor %}
+</table>
+{% endblock mediagoblin_content %}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+