Skip to content

Commit e3dab17

Browse files
authored
Merge pull request #248 from MasterChief-John-117/granular-lockdown
Use protected and not protected templates for lockdown
2 parents 25ff260 + ae9759f commit e3dab17

19 files changed

+177
-30
lines changed

conditional/templates/attendance_history.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% extends "nav.html" %}
1+
{% extends "nav_protected.html" %}
22
{% block title %}
33
Attendance History
44
{% endblock %}

conditional/templates/attendance_hm.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% extends "nav.html" %}
1+
{% extends "nav_protected.html" %}
22
{% block title %}
33
House Meeting Attendance
44
{% endblock %}

conditional/templates/base.html

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,9 @@
2020
<body>
2121
{% block nav %}
2222
{% endblock %}
23-
{% if not lockdown %}
24-
{% block body %}
25-
{% endblock %}
26-
{% else %}
27-
<div class="container main error-page align-center">
28-
<div class="col-xs-12">
29-
<img src="/static/images/material_lock.svg" alt="Attention!">
30-
<h1>Congratulations or I'm Sorry...</h1>
31-
<h2>We cannot reveal the results of your evaluation!</h2>
32-
<h3>Evaluations underway:</h3>
33-
<p>Conditional is in Lockdown</p>
34-
</div>
35-
</div>
36-
{% endif %}
23+
24+
{% block body %}
25+
{% endblock %}
3726

3827
<footer>
3928
<a class="footer-version" href="https://github.com/ComputerScienceHouse/conditional/tree/v{{config["VERSION"]}}">Conditional (v{{config["VERSION"]}})</a>
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5+
<meta charset="utf-8">
6+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
7+
<meta name="viewport" content="width=device-width, initial-scale=1">
8+
<meta name="description" content="">
9+
<meta name="author" content="">
10+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
11+
12+
<link rel="shortcut icon" href="https://assets.csh.rit.edu/uploads/favicon.ico" type="image/x-icon">
13+
<link href="/static/css/app.css" rel="stylesheet">
14+
{% block extraHeader %}
15+
{% endblock %}
16+
17+
<title>{% block title %}{% endblock %}</title>
18+
</head>
19+
20+
<body>
21+
{% block nav %}
22+
{% endblock %}
23+
{% if not lockdown %}
24+
{% block body %}
25+
{% endblock %}
26+
{% else %}
27+
<div class="container main error-page align-center">
28+
<div class="col-xs-12">
29+
<img src="/static/images/material_lock.svg" alt="Attention!">
30+
<h1>Congratulations or I'm Sorry...</h1>
31+
<h2>We cannot reveal the results of your evaluation!</h2>
32+
<h3>Evaluations underway:</h3>
33+
<p>Conditional is in Lockdown</p>
34+
</div>
35+
</div>
36+
{% endif %}
37+
38+
<footer>
39+
<a class="footer-version" href="https://github.com/ComputerScienceHouse/conditional/tree/v{{config["VERSION"]}}">Conditional (v{{config["VERSION"]}})</a>
40+
</footer>
41+
<script src="/static/js/app.js"></script>
42+
</body>
43+
</html>

conditional/templates/co_op_management.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% extends "nav.html" %}
1+
{% extends "nav_protected.html" %}
22
{% block title %}
33
Co-Op Management
44
{% endblock %}

conditional/templates/conditional.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% extends "nav.html" %}
1+
{% extends "nav_protected.html" %}
22
{% block title %}
33
Conditionals
44
{% endblock %}

conditional/templates/dashboard.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% extends "nav.html" %}
1+
{% extends "nav_protected.html" %}
22
{% block title %}
33
Dashboard
44
{% endblock %}

conditional/templates/errors.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% extends "nav.html" %}
1+
{% extends "nav_protected.html" %}
22
{% block title %}Error {{ error_code }}{% endblock %}
33
{% block body %}
44
<div class="container main error-page align-center">

conditional/templates/financial.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% extends "nav.html" %}
1+
{% extends "nav_protected.html" %}
22
{% block title %}
33
Financial
44
{% endblock %}

conditional/templates/housing.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% extends "nav.html" %}
1+
{% extends "nav_protected.html" %}
22
{% block title %}
33
Housing
44
{% endblock %}

0 commit comments

Comments
 (0)