]> git.0d.be Git - panikweb.git/commitdiff
add full width page template variant
authorFrédéric Péters <fpeters@0d.be>
Mon, 25 May 2015 14:32:52 +0000 (16:32 +0200)
committerFrédéric Péters <fpeters@0d.be>
Mon, 25 May 2015 14:32:52 +0000 (16:32 +0200)
panikweb/settings.py
panikweb_templates/static/css/specifics.css
panikweb_templates/templates/combo/page_template_full_width.html [new file with mode: 0644]

index 2e72faa735b15ba42fd3a820bcdaa8e99b22cf65..bc23cb5d6a6047446d5585a7f6bfc8d8af6a5302 100644 (file)
@@ -228,6 +228,15 @@ COMBO_PUBLIC_TEMPLATES = {
             },
         }
     },
+    'fullwidth': {
+        'name': 'Fullwidth',
+        'template': 'combo/page_template_full_width.html',
+        'placeholders': {
+            'content': {
+                'name': 'Content',
+            },
+        }
+    },
 }
 
 LANGUAGE_COOKIE_NAME = 'panikweb_language'
index 9ecfb0194f5dd07b09c20d265c312153e42d0d26..277dc564c0308ca892266f336caf520a5dcb93fe 100644 (file)
@@ -1585,3 +1585,7 @@ div.previous-and-next-months {
 div.publication-date.date.smooth {
        font-size: 80%;
 }
+
+#All h1.top.fullwidth {
+       width: 150%;
+}
diff --git a/panikweb_templates/templates/combo/page_template_full_width.html b/panikweb_templates/templates/combo/page_template_full_width.html
new file mode 100644 (file)
index 0000000..4b3239f
--- /dev/null
@@ -0,0 +1,23 @@
+{% extends "base.html" %}
+{% load combo %}
+
+{% block title %}{{ page.title }}{% endblock %}
+
+{% block toptitle %}
+<h1 class="top fullwidth">{{ page.title }}</h1>
+{% endblock %}
+
+{% block nav %}
+<div id="About">
+</div>
+{% endblock %}
+
+{% block main %}
+
+<div class="wrapper">
+       <div id="fiber-content">
+               <div class="text">{% placeholder "content" %}</div>
+       </div>
+</div>
+
+{% endblock %}