# -*- encoding: utf-8 -*-
import os

from wafer.settings import *

try:
    from localsettings import *
except ImportError:
    pass

from django.utils.translation import ugettext_lazy as _
from django.core.urlresolvers import reverse_lazy

pyconzadir = os.path.dirname(__file__)


STATICFILES_DIRS = (
    os.path.join(pyconzadir, 'static'),
    os.path.join(pyconzadir, 'bower_components'),
)

TEMPLATE_DIRS = (
    os.path.join(pyconzadir, 'templates'),
) + TEMPLATE_DIRS


WAFER_MENUS += (
    {"menu": "about", "label": _("About"),
     "items": []},
    {"name": "venue", "label": _("Venue"),
     "url": reverse_lazy("wafer_page", args=("venue",))},
    {"menu": "sponsors", "label": _("Sponsors"),
     "items": [
         {"name": "praekelt", "label": _(u"» Praekelt ★"),
          "url": reverse_lazy("wafer_sponsor", args=(2,))},
         {"name": "google", "label": _(u"» Google ★"),
          "url": reverse_lazy("wafer_sponsor", args=(3,))},
         {"name": "amazon", "label": _(u"» Amazon ★"),
          "url": reverse_lazy("wafer_sponsor", args=(1,))},
         {"name": "oracle", "label": _(u"» Oracle ★"),
          "url": reverse_lazy("wafer_sponsor", args=(4,))},
         {"name": "psf", "label": _(u"PSF"),
          "url": reverse_lazy("wafer_sponsor", args=(5,))},
         {"name": "sponsors", "label": _("Our sponsors"),
          "url": reverse_lazy("wafer_sponsors")},
         {"name": "packages", "label": _("Sponsorship packages"),
          "url": reverse_lazy("wafer_sponsorship_packages")},
     ]},
    {"menu": "talks", "label": _("Talks"),
     "items": [
         {"name": "accepted-talks", "label": _("Accepted Talks"),
          "url": reverse_lazy("wafer_users_talks")},
     ]},
    {"menu": "previous-pycons", "label": _("Past PyConZAs"),
     "items": [
         {"name": "pyconza2012", "label": _("PyConZA 2012"),
          "url": "http://2012.za.pycon.org/"},
         {"name": "pyconza2013", "label": _("PyConZA 2013"),
          "url": "http://2013.za.pycon.org/"},
     ]},
    {"name": "twitter", "label": "Twitter",
     "image": "/static/img/twitter.png",
     "url": "https://twitter.com/pyconza"},
    {"name": "googleplus", "label": "Google+",
     "image": "/static/img/googleplus.png",
     "url": "https://plus.google.com/u/0/events/cpnt1h6tf6m59k8i4uvhmrvguis"},
    {"name": "facebook", "label": "Facebook",
     "image": "/static/img/facebook.png",
     "url": "https://www.facebook.com/events/1467196980209896/"},
)


CRISPY_TEMPLATE_PACK = 'bootstrap3'
MARKITUP_FILTER = ('markdown.markdown', {
    'safe_mode': False,
    'extensions': ['outline'],
})

@@ -1580,32 +1580,141 @@
      %22items%22: %5B%0A
+         %7B%22name%22: %22schedule%22, %22label%22: _(%22Schedule%22),%0A          %22url%22: reverse_lazy(%22wafer_full_schedule%22)%7D,%0A
          %7B%22name%22

Add schedule to links.