2 # GNU MediaGoblin -- federated, autonomous media hosting
3 # Copyright (C)
2011,
2012 MediaGoblin contributors. See AUTHORS.
5 # This program is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU Affero General Public License as published by
7 # the Free Software Foundation, either version
3 of the License, or
8 # (at your option) any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU Affero General Public License for more details.
15 # You should have received a copy of the GNU Affero General Public License
16 # along with this program. If not, see
<http://www.gnu.org/licenses
/>.
18 {% extends
"mediagoblin/base.html" %}
20 {% import
"/mediagoblin/utils/wtforms.html" as wtforms_util %}
21 {% from
"mediagoblin/utils/pagination.html" import render_pagination %}
24 {% trans %}{{ blog_owner }} 's Blog{% endtrans %}
— {{ super() }}
27 {% block mediagoblin_head -%}
28 <style type=
"text/css">
29 h4 {margin:
0; padding :
0;
31 a{text-decoration:none;
32 text-transform:capitalize
38 {% block mediagoblin_content %}
39 <div class=
"b_list_owner"> <h1><font color=
"black"> {{ blog_owner }} 's Blog
</font></h1></div>
41 {% for post in blog_posts %}
42 <div class=
"b_listing_title"><a href=
"{{ post.url_for_self(request.urlgen) }}">
43 <h2><font color=
"black">{{ post.title }}
</font></h2></a>
45 <h4 align=
"right">{{ post.created.strftime(
"%d %b, %Y") }}
</h4>
47 {% for tag in post.tags %}
48 <a href=
"{{ request.urlgen(
49 'mediagoblin.user_pages.user_tag_gallery',
51 user=post.get_uploader.username) }}">{{ tag['name'] }} |
</a>
54 <div class=
"b_list_des"> <p>{{ post.description|safe }}
</p></div>
59 {{ render_pagination(request, pagination) }}