]> git.ipfire.org Git - people/shoehn/ipfire.org.git/blame - templates/modules/planet-entry.html
Bootstap migration talk.ipfire.org
[people/shoehn/ipfire.org.git] / templates / modules / planet-entry.html
CommitLineData
1e5f513f
SH
1<div class="container blog-content">
2 <section id="{{ entry.slug }}" class="col-12 blog-entry">
3 {% if entry.is_draft() %}
4 <div class="alert alert-info alert-dismissable">
5 <button type="button" class="close" data-dismiss="alert">&times;</button>
6 <strong>{{ _("Heads up!") }}</strong> {{ _("This post is a draft and has not been published, yet.") }}
7 </div>
8 {% end %}
9
10 <div class="row">
11 <div class="col-9">
12 <h3 class="display-3 mb-3">
13 <a href="/post/{{ entry.slug }}">{{ entry.title }}</a>
14 </h3>
15
16 {% raw entry.text %}
17 </div>
18
19 {% if show_avatar %}
20 <div class="col-3 pt-4">
21 <div class="row mb-3 d-flex justify-content-end">
22 <small>
23 {{ _("by") }} <a href="/user/{{ entry.author.uid }}">{{ entry.author.name }}</a>,
24 {{ locale.format_date(entry.published, shorter=True) }}
25 </small>
26 </div>
27 <div class="row d-flex justify-content-end">
28 <a href="/user/{{ entry.author.uid }}">
29 <img class="rounded" src="{{ entry.author.gravatar_icon(128) }}" alt="{{ entry.author.name }}" />
30 </a>
31 </div>
32 </div>
33 {% end %}
60b0917c 34 </div>
1e5f513f
SH
35 </section>
36</div>