]> git.ipfire.org Git - people/shoehn/ipfire.org.git/blobdiff - templates/planet/posting.html
added background to support section
[people/shoehn/ipfire.org.git] / templates / planet / posting.html
index 5fa44845c135ccfc79e03be33ae45ec2fb9f02eb..6b01bd8c72487477c5cc16e1c5fd937574ef429a 100644 (file)
@@ -1,25 +1,17 @@
-{% extends "user.html" %}
+{% extends "../base.html" %}
 
-{% block title %}{{ _("IPFire Planet") }} - {{ entry.title }}{% end block %}
+{% block title %}{{ entry.title }}{% end block %}
 
-{% block bodyA %}
-       <div class="page-header">
-               <h1>
-                       <a href="/post/{{ entry.slug }}">{{ entry.title }}</a>
-               </h1>
-       </div>
+{% block container %}
+       {% module PlanetEntry(entry) %}
 
-       {% if entry.is_draft() %}
-               <div class="alert alert-warning 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 %}
+       <hr class="clear">
 
-       {% raw entry.text %}
+       <p class="text-muted ac">
+               {{ _("Posted:") }} {{ locale.format_date(entry.published, shorter=True, relative=False) }}
 
-       <p class="clear pull-right">
-               {{ _("Posted by") }} <a href="/user/{{ entry.author.uid }}">{{ entry.author.name }}</a>
-               {{ _("on") }} {{ locale.format_date(entry.published, shorter=True) }}
+               &bull;
+
+               {{ _("One view", "%(views)s views", entry.views) % { "views" : entry.views } }}
        </p>
 {% end block %}