1 {% import ipfire.accounts as accounts %}
3 <div class=
"blog-post {% if "lightningwirelabs.com
" in post.tags %}lightning-wire-labs{% end %}">
4 <div class=
"blog-header">
5 <h4 class=
"card-title">
6 <a href=
"https://blog.ipfire.org/post/{{ post.slug }}">
11 <p class=
"small text-muted">
14 {% if isinstance(post.author, accounts.Account) %}
15 <a href=
"/authors/{{ post.author.uid }}">{{ post.author.name }}
</a>,
17 <strong>{{ post.author }}
</strong>,
20 {% if post.is_published() %}
21 {% if post.updated_at and post.updated_at
> post.published_at %}
22 {{ locale.format_date(post.published_at, shorter=True, relative=False) }},
23 {{ _(
"Updated %s") % locale.format_date(post.updated_at, shorter=True) }}
25 {{ locale.format_date(post.published_at, shorter=True, relative=False) }}
27 {% elif post.published_at %}
28 <span class=
"text-danger">{{ _(
"Scheduled to be published %s") % locale.format_date(post.published_at, relative=False) }}
</span>
30 {{ _(
"Not published") }}
35 {% if not post.is_published() and post.is_editable(current_user) %}
37 <div class=
"col-12 col-md-6 mb-3">
38 <a class=
"btn btn-success btn-block" href=
"/post/{{ post.slug }}/edit">
39 <span class=
"fas fa-edit mr-2"></span> {{ _(
"Edit") }}
43 <div class=
"col-12 col-md-6 mb-3">
44 <a class=
"btn btn-primary btn-block" href=
"/post/{{ post.slug }}/publish">
45 <span class=
"fas fa-book-reader mr-2"></span> {{ _(
"Publish") }}
51 <div class=
"blog-content">
55 <div class=
"btn-toolbar justify-content-center">
56 {% if
"lightningwirelabs.com" in post.tags and post.link %}
57 <a class=
"btn btn-lwl" href=
"{{ post.link }}">
58 Go to Lightning Wire Labs
<span class=
"fas fa-external-link-alt ml-2"></span>
63 <a class=
"btn btn-primary" href=
"https://www.ipfire.org/download/{{ post.release.slug }}">
68 {% if post.release or
"donate" in post.tags %}
69 <a class=
"btn btn-outline-primary ml-2" href=
"https://www.ipfire.org/donate">