]> git.ipfire.org Git - people/shoehn/ipfire.org.git/blobdiff - templates/planet/posting.html
Bootstap migration talk.ipfire.org
[people/shoehn/ipfire.org.git] / templates / planet / posting.html
index 5fa44845c135ccfc79e03be33ae45ec2fb9f02eb..ede692ecc7433b893d040f207b52a9ad6959b617 100644 (file)
@@ -1,25 +1,19 @@
-{% 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 class="container mb-6">
+               <div class="col-12">
+                       <small>
+                               {{ _("Posted:") }} {{ locale.format_date(entry.published, shorter=True, relative=False) }}
+               
+                               &bull;
+               
+                               {{ _("One view", "%(views)s views", entry.views) % { "views" : entry.views } }}
+                       </small>
                </div>
-       {% end %}
-
-       {% raw entry.text %}
-
-       <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) }}
-       </p>
+       </div>
 {% end block %}