From c69ef73a94eaa0d15311bc44ab486010a2d43546 Mon Sep 17 00:00:00 2001 From: bkfox Date: Tue, 13 Oct 2015 16:04:36 +0200 Subject: [PATCH] Previous diffusions; website styles; small templates change; VerboseFrequency --- aircox_cms/static/aircox_cms/styles.css | 2 +- .../templates/aircox_cms/base_site.html | 58 ++++++++++--------- aircox_cms/templates/aircox_cms/list.html | 2 +- aircox_cms/views.py | 5 +- aircox_programs/models.py | 30 +++++----- website/static/website/styles.css | 48 +++++++++++---- website/urls.py | 5 +- website/views.py | 30 ++++++++-- 8 files changed, 117 insertions(+), 63 deletions(-) diff --git a/aircox_cms/static/aircox_cms/styles.css b/aircox_cms/static/aircox_cms/styles.css index c3d9790..8c2406d 100644 --- a/aircox_cms/static/aircox_cms/styles.css +++ b/aircox_cms/static/aircox_cms/styles.css @@ -9,7 +9,7 @@ body { } .page .menu { - width: 15em; + width: 20em; } .page .menu_left { margin-right: 0.5em; } diff --git a/aircox_cms/templates/aircox_cms/base_site.html b/aircox_cms/templates/aircox_cms/base_site.html index 5f14dc4..6320787 100644 --- a/aircox_cms/templates/aircox_cms/base_site.html +++ b/aircox_cms/templates/aircox_cms/base_site.html @@ -21,40 +21,42 @@ {% endif %} {% endblock %} - {% if menus.top %} - {{ menus.top|safe }} - {% endif %} - -
- {% if menus.left %} - {{ menus.left|safe }} +
+ {% if menus.top %} + {{ menus.top|safe }} {% endif %} -
- {% block pre_title %} - {% endblock %} -

- {% block title %} - {{ title }} - {% endblock %} -

- {% block post_title %} - {% endblock %} -
- {% block content %} - {% endblock %} -
-
+
+ {% if menus.left %} + {{ menus.left|safe }} + {% endif %} - {% if menus.right %} - {{ menus.right|safe }} +
+ {% block pre_title %} + {% endblock %} +

+ {% block title %} + {{ title }} + {% endblock %} +

+ {% block post_title %} + {% endblock %} +
+ {% block content %} + {% endblock %} +
+
+ + {% if menus.right %} + {{ menus.right|safe }} + {% endif %} +
+ + {% if menus.page_bottom %} + {{ menus.page_bottom|safe }} {% endif %}
- {% if menus.page_bottom %} - {{ menus.page_bottom|safe }} - {% endif %} - {% block footer %} {% if menus.footer %} {{ menus.footer|safe }} diff --git a/aircox_cms/templates/aircox_cms/list.html b/aircox_cms/templates/aircox_cms/list.html index 6dfec85..072c5c2 100644 --- a/aircox_cms/templates/aircox_cms/list.html +++ b/aircox_cms/templates/aircox_cms/list.html @@ -8,7 +8,7 @@ {% for post in object_list %} - {% if 'date' in view.fields or 'time' in list.fields %} + {% if 'date' in view.fields or 'time' in view.fields %}