a728398572358e117daf21df573e2bf1472944b8
[mediagoblin.git] / mediagoblin / media_types / blog / templates / mediagoblin / blog / blog_post_listing.html
1 {#
2 # GNU MediaGoblin -- federated, autonomous media hosting
3 # Copyright (C) 2011, 2012 MediaGoblin contributors. See AUTHORS.
4 #
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.
9 #
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.
14 #
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/>.
17 #}
18 {% extends "mediagoblin/base.html" %}
19
20 {% import "/mediagoblin/utils/wtforms.html" as wtforms_util %}
21 {% from "mediagoblin/utils/pagination.html" import render_pagination %}
22
23 {% block title -%}
24 {% trans %}{{ blog_owner }} 's Blog{% endtrans %} &mdash; {{ super() }}
25 {%- endblock %}
26
27 {% block mediagoblin_head -%}
28 <style type="text/css">
29 h4 {margin:0; padding : 0;
30 font-size:.7 em;}
31 a{text-decoration:none;
32 text-transform:capitalize
33 }
34
35 </style>
36 {%- endblock %}
37
38 {% block mediagoblin_content %}
39 <div class="b_list_owner"> <h1><font color="black"> {{ blog_owner }} 's Blog</font></h1></div>
40 <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>
44 </div>
45 <h4 align="right">{{ post.created.strftime("%d %b, %Y") }}</h4>
46 {% if post.tags %}
47 {% for tag in post.tags %}
48 <a href="{{ request.urlgen(
49 'mediagoblin.user_pages.user_tag_gallery',
50 tag=tag['slug'],
51 user=post.get_uploader.username) }}">{{ tag['name'] }} |</a>
52 {% endfor %}
53 {% endif %}
54 <div class="b_list_des"> <p>{{ post.description|safe }} </p></div>
55 </br>
56 </br>
57 {% endfor %}
58 </div>
59 {{ render_pagination(request, pagination) }}
60 {% endblock %}