{# # 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 mediagoblin_head%} {% endblock %} {% block mediagoblin_content %} {% if blogs %}

My Blogs

{% for blog in blogs %} {% set others_blog_url = request.urlgen('mediagoblin.media_types.blog.blog_post_listing', blog_slug=blog.slug_or_id, user=user.username) %} {% if not request.user or request.user.username != user.username%} {% else %} {% set my_blog_url = request.urlgen('mediagoblin.media_types.blog.blog-dashboard', blog_slug=blog.slug_or_id, user=request.user.username) %} {% endif %} {% endfor %}
{{ blog.title }}{{ blog.title }}               {% trans %}View{% endtrans %}
{% else %} {% if request.user and request.user.username==user.username %}

You have not created any blog yet.

{% else %}

No blog has been created by {{ user.username }}yet.

{% endif %} {% endif %}


{% if blogs.__len__() {% trans %}Create a Blog{% endtrans %} {% endif %} {% endblock mediagoblin_content %}