]> git.ipfire.org Git - people/shoehn/ipfire.org.git/blob - templates/planet/list.html
Massive web site update
[people/shoehn/ipfire.org.git] / templates / planet / list.html
1 {% extends "../base.html" %}
2
3 {% block title %}{{ _("IPFire Planet") }} - {% if author %}{{ _("%s's posts") % author.name }}{% elif year %}{{ _("Posts from %s") % year }}{% end %}{% end block %}
4
5 {% block body %}
6 <div class="row">
7 <div class="{% if author %}col-md-9{% else %}col-md-12{% end %}">
8 {% block bodyA %}
9 <div class="page-header">
10 <h1>
11 {% if author %}
12 {{ _("%s's posts") % author.name }}
13 {% elif year %}
14 {{ _("Posts from %s") % year }}
15 {% end %}
16 </h1>
17 </div>
18
19 {% if entries %}
20 {% for (y, m), posts in entries %}
21 <h3>
22 {% if not year %}{{ y }},{% end %}
23 {{ format_month_name(m) }}
24 </h3>
25
26 <dl class="dl-horizontal">
27 {% for p in posts %}
28 <dt>{{ locale.format_date(p.published, shorter=True) }}</dt>
29 <dd class="text-overflow">
30 {% if not author %}
31 <span class="pull-right">
32 {{ p.author.name }}
33 </span>
34 <img class="img-rounded" src="{{ p.author.gravatar_icon(20) }}"
35 alt="{{ p.author.name }}" />
36 {% end %}
37 <a href="/post/{{ p.slug }}">{{ p.title }}</a>
38 </dd>
39 {% end %}
40 {% end %}
41 </dl>
42 {% else %}
43 {% if author %}
44 <p>{{ _("%s did not write any posts, yet.") % author.name }}</p>
45 {% end %}
46 {% end %}
47 {% end block %}
48 </div>
49
50 {% if author %}
51 <div class="col-md-3">
52 {% module PlanetAuthorBox(author) %}
53 </div>
54 {% end %}
55 </div>
56 {% end block %}