]> git.ipfire.org Git - people/shoehn/ipfire.org.git/blobdiff - templates/modules/planet-entry.html
Massive web site update
[people/shoehn/ipfire.org.git] / templates / modules / planet-entry.html
index 62841b9c247fecb7571a5a894642afd4cf0ca823..f946962e06ce046cf859b314d479ed31491daefe 100644 (file)
@@ -1,20 +1,27 @@
-{% if show_avatar %}
-       <a class="pull-right" href="/user/{{ entry.author.uid }}">
-               <img class="img-rounded img-padding" src="{{ entry.author.gravatar_icon(128) }}" alt="{{ entry.author.name }}" />
-       </a>
-{% end %}
+<section id="{{ entry.slug }}" class="container content-section">
+       {% if entry.is_draft() %}
+               <div class="alert alert-info alert-dismissable">
+                       <button type="button" class="close" data-dismiss="alert">&times;</button>
+                       <strong>{{ _("Heads up!") }}</strong> {{ _("This post is a draft and has not been published, yet.") }}
+               </div>
+       {% end %}
 
-<h2>
-       <a href="/post/{{ entry.slug }}">{{ entry.title }}</a>
+       {% if show_avatar %}
+               <a class="pull-right" href="/user/{{ entry.author.uid }}">
+                       <img class="img-rounded img-padding" src="{{ entry.author.gravatar_icon(128) }}" alt="{{ entry.author.name }}" />
+               </a>
+       {% end %}
 
-       <br>
+       <h3>
+               <a href="/post/{{ entry.slug }}">{{ entry.title }}</a>
 
-       <small>
-               {{ _("by") }} <a href="/user/{{ entry.author.uid }}">{{ entry.author.name }}</a>,
-               {{ locale.format_date(entry.published, shorter=True) }}
-       </small>
-</h2>
+               <br>
 
-{% raw entry.text %}
+               <small>
+                       {{ _("by") }} <a href="/user/{{ entry.author.uid }}">{{ entry.author.name }}</a>,
+                       {{ locale.format_date(entry.published, shorter=True) }}
+               </small>
+       </h3>
 
-<hr class="separator clear">
+       {% raw entry.text %}
+</section>