# HG changeset patch # User neko259 # Date 2013-09-24 07:49:05 # Node ID 2b1879ad000ba5b26eea0f5eef556a51630419ea # Parent 5b2002ce1d59f77406e2c0f0759e75acf03ba64b Added a centered MD theme (with maximum thread width). diff --git a/boards/static/css/md_centered/base_page.css b/boards/static/css/md_centered/base_page.css new file mode 100644 --- /dev/null +++ b/boards/static/css/md_centered/base_page.css @@ -0,0 +1,12 @@ +@import url("../md/base_page.css"); + +.thread, .post-form-w, .image-mode-tab { + max-width: 1000px; + margin-left: auto; + margin-right: auto; +} + +.thread { + border-left: solid 2px #888; + border-right: solid 2px #888; +} diff --git a/boards/templates/boards/thread.html b/boards/templates/boards/thread.html --- a/boards/templates/boards/thread.html +++ b/boards/templates/boards/thread.html @@ -15,8 +15,8 @@ {% if posts %} {% cache 600 thread_view posts.0.last_edit_time moderator LANGUAGE_CODE %} -
- {% for post in posts %} +
+ {% for post in posts %} {% if bumpable %}
{% else %} diff --git a/neboard/settings.py b/neboard/settings.py --- a/neboard/settings.py +++ b/neboard/settings.py @@ -24,13 +24,6 @@ DATABASES = { } } -CACHES = { - 'default': { - 'BACKEND': 'django.core.cache.backends.db.DatabaseCache', - 'LOCATION': 'neboard_cache', - } -} - # Local time zone for this installation. Choices can be found here: # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name # although not all choices may be available on all operating systems. @@ -196,6 +189,7 @@ SITE_NAME = 'Neboard' THEMES = [ ('md', 'Mystic Dark'), + ('md_centered', 'Mystic Dark (centered)'), ('sw', 'Snow White'), ('pg', 'Photon Gray'), ]