changeset 1724:5068b69bfb0c

Add blog/layout.html template for foobar theme.
author Pavel Sviderski <pavel@psviderski.name>
date Tue, 21 Aug 2012 22:44:12 +0200
parents 805f03d03259
children 9a0b6e93fb3c
files MoinMoin/themes/foobar/templates/blog/layout.html
diffstat 1 files changed, 44 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MoinMoin/themes/foobar/templates/blog/layout.html	Tue Aug 21 22:44:12 2012 +0200
@@ -0,0 +1,44 @@
+{% extends theme("local.html") %}
+{% import theme("blog/utils.html") as blog_utils %}
+
+{% if blog_item %}
+    {% set blog_header = blog_item.content._render_data()|safe %}
+    {% set blog_name = blog_item.name %}
+    {% set supertags = blog_item.meta['supertags'] %}
+{% endif %}
+
+{% block theme_stylesheets %}
+    {{ super() }}
+    <link media="all" rel="stylesheet" href="{{ theme_static('css/blog.css') }}" />
+{% endblock %}
+
+{% block content %}
+    {% block content_data %}
+        <div id="moin-content-data">
+            <div id="moin-blog-header">
+                {% if blog_header %}
+                    {{ blog_header }}
+                {% endif %}
+            </div>
+            <div id="moin-blog-body">
+                <div id="moin-blog-content">
+                {% block blog_content %}<br />{% endblock %}
+                </div>
+            </div>
+        </div>
+    {% endblock %}
+{% endblock %}
+
+{% block local %}
+    <ul>
+        {% if blog_name and supertags %}
+        <li>
+            {{ blog_utils.widget_supertags(blog_name, supertags) }}
+        </li>
+        {% endif %}
+        <li>
+            {{ _("Views") }}
+            {{ itemviews }}
+        </li>
+    </ul>
+{% endblock %}