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