]>
Commit | Line | Data |
---|---|---|
60b0917c MT |
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 %} | |
1e5f513f | 6 | <div class="container features-content"> |
60b0917c MT |
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"> | |
1e5f513f | 11 | <h2 class="display-2"> |
60b0917c MT |
12 | {% if author %} |
13 | {{ _("%s's posts") % author.name }} | |
14 | {% elif year %} | |
15 | {{ _("Posts from %s") % year }} | |
16 | {% end %} | |
1e5f513f | 17 | </h2> |
60b0917c MT |
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> | |
1e5f513f | 57 | </div> |
60b0917c | 58 | {% end block %} |