fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix
[wolnelektury.git]
/
src
/
experiments
/
views.py
diff --git
a/src/experiments/views.py
b/src/experiments/views.py
index
001b32a
..
50c6f1e
100644
(file)
--- a/
src/experiments/views.py
+++ b/
src/experiments/views.py
@@
-3,3
+3,11
@@
from django.views.generic import TemplateView
class MainSwitchView(TemplateView):
template_name = 'experiments/main_switch.html'
+
+ def get_context_data(self):
+ return {
+ 'experiments': [
+ e for e in self.request.EXPERIMENTS.values()
+ if e.switchable or self.request.user.is_staff
+ ]
+ }