{# # 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 %} {% for blog in blogs %} {% set others_blog_url = request.urlgen('mediagoblin.media_types.blog.blog_post_listing', blog_slug=blog.slug, user=user.username) %} {% if not request.user or request.user.username != user.username%} {{ blog.title }} {% else %} {% set my_blog_url = request.urlgen('mediagoblin.media_types.blog.blog-dashboard', blog_slug=blog.slug, user=request.user.username) %} {{ blog.title }} {% endif %}
{% endfor %} {% else %} {% if request.user and request.user.username==user.username %}

You have not created any blog yet.

{% set blog_create_url = request.urlgen('mediagoblin.media_types.blog.create', user=request.user.username) %} {% trans %}Create a Blog{% endtrans %} {% else %}

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

{% endif %} {% endif %} {% endblock mediagoblin_content %}