From 4f66c8d1fc41f3191478e4698492f94cc776edfd Mon Sep 17 00:00:00 2001 From: Ram Zallan Date: Thu, 26 Jan 2017 16:45:37 -0500 Subject: [PATCH] Opened lockdown to eboard, changed lockdown page content --- conditional/templates/base.html | 10 ++++++++-- conditional/util/flask.py | 2 +- frontend/images/material_lock.svg | 14 ++++++++++++++ 3 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 frontend/images/material_lock.svg diff --git a/conditional/templates/base.html b/conditional/templates/base.html index 79faf4b7..7ede4465 100644 --- a/conditional/templates/base.html +++ b/conditional/templates/base.html @@ -23,8 +23,14 @@ {% block body %} {% endblock %} {% else %} -
- +
+
+ Attention! +

Congratulations or I'm Sorry...

+

We cannot reveal the results of your evaluation!

+

Evaluations underway:

+

Conditional is in Lockdown

+
{% endif %} diff --git a/conditional/util/flask.py b/conditional/util/flask.py index d7a621dc..4d1e356f 100644 --- a/conditional/util/flask.py +++ b/conditional/util/flask.py @@ -40,7 +40,7 @@ def render_template(request, template_name, **kwargs): ts_review = len(TechnicalSeminar.query.filter( TechnicalSeminar.approved == False).all()) # pylint: disable=singleton-comparison - if is_eval: + if is_eboard: lockdown = False return flask_render_template( diff --git a/frontend/images/material_lock.svg b/frontend/images/material_lock.svg new file mode 100644 index 00000000..f72f7b5c --- /dev/null +++ b/frontend/images/material_lock.svg @@ -0,0 +1,14 @@ + + + + Untitled + Created with Sketch. + + + + + + + + +