Add a waffle, for flipping and switching
This commit is contained in:
parent
b6af9e27d4
commit
54f53cd2c6
3 changed files with 21 additions and 15 deletions
|
@ -162,6 +162,7 @@ MIDDLEWARE_CLASSES = [
|
||||||
"django.contrib.messages.middleware.MessageMiddleware",
|
"django.contrib.messages.middleware.MessageMiddleware",
|
||||||
"debug_toolbar.middleware.DebugToolbarMiddleware",
|
"debug_toolbar.middleware.DebugToolbarMiddleware",
|
||||||
"reversion.middleware.RevisionMiddleware",
|
"reversion.middleware.RevisionMiddleware",
|
||||||
|
"waffle.middleware.WaffleMiddleware",
|
||||||
"django.middleware.clickjacking.XFrameOptionsMiddleware",
|
"django.middleware.clickjacking.XFrameOptionsMiddleware",
|
||||||
"django.contrib.flatpages.middleware.FlatpageFallbackMiddleware",
|
"django.contrib.flatpages.middleware.FlatpageFallbackMiddleware",
|
||||||
'pinaxcon.monkey_patch.MonkeyPatchMiddleware',
|
'pinaxcon.monkey_patch.MonkeyPatchMiddleware',
|
||||||
|
@ -227,8 +228,9 @@ INSTALLED_APPS = [
|
||||||
"jquery",
|
"jquery",
|
||||||
"djangoformsetjs",
|
"djangoformsetjs",
|
||||||
|
|
||||||
# testing
|
# testing and rollout
|
||||||
"django_nose",
|
"django_nose",
|
||||||
|
"waffle",
|
||||||
]
|
]
|
||||||
|
|
||||||
DEBUG_TOOLBAR_PANELS = [
|
DEBUG_TOOLBAR_PANELS = [
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{% load lca2018_tags %}
|
{% load lca2018_tags %}
|
||||||
|
{% load waffle_tags %}
|
||||||
<table class="calendar table table-bordered">
|
<table class="calendar table table-bordered">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -35,6 +36,7 @@
|
||||||
<span class="speaker">
|
<span class="speaker">
|
||||||
{{ slot.content.speakers|join:", " }}
|
{{ slot.content.speakers|join:", " }}
|
||||||
</span>
|
</span>
|
||||||
|
{% flag "session_chair" %}
|
||||||
{% if slot.sessions %}
|
{% if slot.sessions %}
|
||||||
<div>
|
<div>
|
||||||
{% for session in slot.sessions.all %}
|
{% for session in slot.sessions.all %}
|
||||||
|
@ -49,6 +51,7 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endflag %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% elif slot.kind.label == "shortbreak" %}
|
{% elif slot.kind.label == "shortbreak" %}
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
|
@ -42,3 +42,4 @@ pinax-stripe==3.2.1
|
||||||
requests>=2.11.1
|
requests>=2.11.1
|
||||||
stripe==1.38.0
|
stripe==1.38.0
|
||||||
|
|
||||||
|
django-waffle>=0.12.0
|
||||||
|
|
Loading…
Reference in a new issue