diff --git a/CTFd/static/admin/js/templates/challenges/standard/standard-challenge-create.js b/CTFd/static/admin/js/templates/challenges/standard/standard-challenge-create.js
index dbd575c5..154f4d5c 100644
--- a/CTFd/static/admin/js/templates/challenges/standard/standard-challenge-create.js
+++ b/CTFd/static/admin/js/templates/challenges/standard/standard-challenge-create.js
@@ -16,4 +16,8 @@ $("#solve-attempts-checkbox").change(function() {
$('#solve-attempts-input').hide();
$('#max_attempts').val('');
}
-});
\ No newline at end of file
+});
+
+$(document).ready(function(){
+ $('[data-toggle="tooltip"]').tooltip();
+});
diff --git a/CTFd/static/admin/js/templates/challenges/standard/standard-challenge-update.hbs b/CTFd/static/admin/js/templates/challenges/standard/standard-challenge-update.hbs
index d4c87508..fc10fe5c 100644
--- a/CTFd/static/admin/js/templates/challenges/standard/standard-challenge-update.hbs
+++ b/CTFd/static/admin/js/templates/challenges/standard/standard-challenge-update.hbs
@@ -10,11 +10,15 @@
-
+
-
-
+
diff --git a/CTFd/static/admin/js/templates/challenges/standard/standard-challenge-update.js b/CTFd/static/admin/js/templates/challenges/standard/standard-challenge-update.js
index ed634e42..0160ab9d 100644
--- a/CTFd/static/admin/js/templates/challenges/standard/standard-challenge-update.js
+++ b/CTFd/static/admin/js/templates/challenges/standard/standard-challenge-update.js
@@ -388,3 +388,6 @@ function openchal(id){
loadfiles(id);
}
+$(document).ready(function(){
+ $('[data-toggle="tooltip"]').tooltip();
+});
diff --git a/CTFd/static/original/css/style.css b/CTFd/static/original/css/style.css
index 63fdd47c..98238072 100644
--- a/CTFd/static/original/css/style.css
+++ b/CTFd/static/original/css/style.css
@@ -18,6 +18,10 @@ a {
outline: 0;
}
+img {
+ max-width: 100%;
+}
+
.body-container {
min-height: 100%;
position: relative;
diff --git a/CTFd/templates/admin/base.html b/CTFd/templates/admin/base.html
index 5a215ec9..543e7dbc 100644
--- a/CTFd/templates/admin/base.html
+++ b/CTFd/templates/admin/base.html
@@ -2,82 +2,83 @@
-
Admin Panel
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {% block stylesheets %} {% endblock %}
+
Admin Panel
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {% block stylesheets %} {% endblock %}
-
-
+
+
-
- {% block content %}
- {% endblock %}
-
-
-
-
-
-
- {% block scripts %} {% endblock %}
+
+ {% block content %}
+ {% endblock %}
+
+
+
+
+
+
+
+ {% block scripts %} {% endblock %}
diff --git a/CTFd/templates/admin/chals.html b/CTFd/templates/admin/chals.html
index 45408f1f..98063f40 100644
--- a/CTFd/templates/admin/chals.html
+++ b/CTFd/templates/admin/chals.html
@@ -11,46 +11,46 @@
{% endblock %}
{% block content %}
-
+
-
+
-
+
-
-
+
+
-
+
{% endblock %}
{% block scripts %}
-
-
-
+
+
+
{% endblock %}
diff --git a/CTFd/templates/admin/chals/create.html b/CTFd/templates/admin/chals/create.html
index 3e1c4985..1f594514 100644
--- a/CTFd/templates/admin/chals/create.html
+++ b/CTFd/templates/admin/chals/create.html
@@ -12,61 +12,61 @@
{% block content %}
-
Create Challenge
-
-
-
-
-
-
-
-
-
-
+
Create Challenge
+
+
+
+
+
+
+
+
+
+
{% endblock %}
{% block scripts %}
-
-
-
+
+
+ nonce = "{{ nonce }}";
+ $.get(script_root + '/admin/chal_types', function(data){
+ console.log(data);
+ $("#create-chals-select").empty();
+ var chal_type_amt = Object.keys(data).length;
+ if (chal_type_amt > 1){
+ var option = "
";
+ $("#create-chals-select").append(option);
+ for (var key in data){
+ var option = "
".format(key, data[key]);
+ $("#create-chals-select").append(option);
+ }
+ } else if (chal_type_amt == 1) {
+ var key = Object.keys(data)[0];
+ $("#create-chals-select").parent().parent().parent().empty();
+ load_chal_template(data[key]);
+ }
+ });
+ $('#create-chals-select').change(function(){
+ var chal_type_name = $(this).find("option:selected").text();
+ load_chal_template(chal_type_name);
+ });
+
{% endblock %}
diff --git a/CTFd/templates/admin/config.html b/CTFd/templates/admin/config.html
index 02884721..a4024798 100644
--- a/CTFd/templates/admin/config.html
+++ b/CTFd/templates/admin/config.html
@@ -2,630 +2,630 @@
{% block content %}
{% endblock %}
{% block scripts %}
-
+ var start = $('#start').val();
+ var end = $('#end').val();
+ var freeze = $('#freeze').val();
+ console.log(start);
+ console.log(end);
+ if (start){
+ load_timestamp('start', start);
+ }
+ if (end){
+ load_timestamp('end', end);
+ }
+ if (freeze) {
+ load_timestamp('freeze', freeze);
+ }
+ });
+
{% endblock %}
diff --git a/CTFd/templates/admin/containers.html b/CTFd/templates/admin/containers.html
index 604d0a43..82496aae 100644
--- a/CTFd/templates/admin/containers.html
+++ b/CTFd/templates/admin/containers.html
@@ -2,109 +2,109 @@
{% block content %}
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
Containers
-
-
-
+
+
+
Containers
+
+
+
{% if containers %}
-
-
-
- | Status
- |
- Name
- |
- Ports
- |
- Settings
- |
-
-
-
- {% for c in containers %}
-
- | {{ c.status }} |
- {{ c.name }} |
- {{ c.ports }} |
-
-
- {% if c.status != 'running' %}
-
- {% else %}
-
- {% endif %}
-
-
- |
-
- {% endfor %}
-
-
+
+
+
+ | Status
+ |
+ Name
+ |
+ Ports
+ |
+ Settings
+ |
+
+
+
+ {% for c in containers %}
+
+ | {{ c.status }} |
+ {{ c.name }} |
+ {{ c.ports }} |
+
+
+ {% if c.status != 'running' %}
+
+ {% else %}
+
+ {% endif %}
+
+
+ |
+
+ {% endfor %}
+
+
{% endif %}
{% endblock %}
@@ -113,46 +113,50 @@
diff --git a/CTFd/templates/admin/correct_keys.html b/CTFd/templates/admin/correct_keys.html
index f340496c..4f8c8c55 100644
--- a/CTFd/templates/admin/correct_keys.html
+++ b/CTFd/templates/admin/correct_keys.html
@@ -10,102 +10,102 @@
{% block content %}
-
-
Correct Key Submissions
-
-
-
-
-
-
-
-
-
-
-
-
-
- | Team
- |
- Challenge
- |
- Date
- |
- Key Submitted
- |
- Delete
- |
-
-
-
- {% for solve in solves %}
-
- | {{ solve.team_name }}
- | {{ solve.chal_name }} |
- |
- {{ solve.flag }} |
- |
-
- {% endfor %}
-
-
- {% if pages > 1 %}
-
Page
-
- {% if curr_page != 1 %}
<<<{% endif %}
- {% for page in range(1, pages + 1) %}
- {% if curr_page != page %}
-
{{ page }}
- {% else %}
-
{{ page }}
- {% endif %}
- {% endfor %}
- {% if curr_page != pages %}
>>>{% endif %}
-
-
- {% endif %}
+
+
Correct Key Submissions
+
+
+
+
+
+
+
+
+
+
+
+
+
+ | Team
+ |
+ Challenge
+ |
+ Date
+ |
+ Key Submitted
+ |
+ Delete
+ |
+
+
+
+ {% for solve in solves %}
+
+ | {{ solve.team_name }}
+ | {{ solve.chal_name }} |
+ |
+ {{ solve.flag }} |
+ |
+
+ {% endfor %}
+
+
+ {% if pages > 1 %}
+
Page
+
+ {% if curr_page != 1 %}
<<<{% endif %}
+ {% for page in range(1, pages + 1) %}
+ {% if curr_page != page %}
+
{{ page }}
+ {% else %}
+
{{ page }}
+ {% endif %}
+ {% endfor %}
+ {% if curr_page != pages %}
>>>{% endif %}
+
+
+ {% endif %}
{% endblock %}
{% block scripts %}
-
-
+
+ $('.fa-times').click(function(){
+ var elem = $(this).parent().parent();
+ var chal = elem.find('.chal').attr('id');
+ var chal_name = elem.find('.chal').text().trim();
+ var team = elem.find('.team').attr('id');
+ var team_name = elem.find('.team').text().trim();
+ var key_id = elem.find('.flag').attr('id');
+ load_confirm_modal(key_id, team_name, chal_name)
+ });
+
{% endblock %}
diff --git a/CTFd/templates/admin/editor.html b/CTFd/templates/admin/editor.html
index f1024916..f000bbc1 100644
--- a/CTFd/templates/admin/editor.html
+++ b/CTFd/templates/admin/editor.html
@@ -1,130 +1,130 @@
{% extends "admin/base.html" %}
{% block stylesheets %}
-
-
+
+
{% endblock %}
{% block content %}
-
- {% for error in errors %}
-
- {% endfor %}
-
+
+ {% for error in errors %}
+
+ {% endfor %}
+
-
{% endblock %}
@@ -132,158 +132,158 @@
{% endblock %}
diff --git a/CTFd/templates/admin/graphs.html b/CTFd/templates/admin/graphs.html
index 70f42d57..91ecfd68 100644
--- a/CTFd/templates/admin/graphs.html
+++ b/CTFd/templates/admin/graphs.html
@@ -1,178 +1,178 @@
{% extends "admin/base.html" %}
{% block content %}
-
-
+
+
{% endblock %}
{% block scripts %}
-
-
-
+
+
{% endblock %}
diff --git a/CTFd/templates/admin/page.html b/CTFd/templates/admin/page.html
index d22236eb..f763f731 100644
--- a/CTFd/templates/admin/page.html
+++ b/CTFd/templates/admin/page.html
@@ -2,78 +2,78 @@
-
Admin Panel
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {% block stylesheets %} {% endblock %}
+
Admin Panel
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {% block stylesheets %} {% endblock %}
-
-
+
+
-
- {{ content | safe }}
-
+
+ {{ content | safe }}
+
-
-
-
- {% block scripts %} {% endblock %}
+
+
+
+ {% block scripts %} {% endblock %}
diff --git a/CTFd/templates/admin/pages.html b/CTFd/templates/admin/pages.html
index 846385d5..7c3746da 100644
--- a/CTFd/templates/admin/pages.html
+++ b/CTFd/templates/admin/pages.html
@@ -1,79 +1,79 @@
{% extends "admin/base.html" %}
{% block stylesheets %}
-
-
+
+
{% endblock %}
{% block content %}
-
-
-
-
-
-
-
-
-
-
-
-
-
Are you sure you want to delete ?
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
Are you sure you want to delete ?
+
+
+
+
+
+
+
+
+
+
-
-
-
CSS editor
-
-
-
-
-
+
+
CSS editor
+
+
+
+
+
{% endblock %}
@@ -81,44 +81,44 @@
diff --git a/CTFd/templates/admin/scoreboard.html b/CTFd/templates/admin/scoreboard.html
index cdc581e3..baa253c8 100644
--- a/CTFd/templates/admin/scoreboard.html
+++ b/CTFd/templates/admin/scoreboard.html
@@ -2,40 +2,40 @@
{% block content %}
-
-
Scoreboard
-
-
-
- | Place |
- Team |
- Score |
- Status |
-
-
-
- {% for team in teams %}
-
- | {{ loop.index }} |
- {{ team.name }} |
- {{ team.score }} |
-
- {% if not team.banned %}
-
- Ban
-
-
- {%else %}
-
- Unban
-
-
- {% endif %}
- |
-
- {% endfor %}
-
-
+
+
Scoreboard
+
+
+
+ | Place |
+ Team |
+ Score |
+ Status |
+
+
+
+ {% for team in teams %}
+
+ | {{ loop.index }} |
+ {{ team.name }} |
+ {{ team.score }} |
+
+ {% if not team.banned %}
+
+ Hide
+
+
+ {%else %}
+
+ Unhide
+
+
+ {% endif %}
+ |
+
+ {% endfor %}
+
+
{% endblock %}
diff --git a/CTFd/templates/admin/statistics.html b/CTFd/templates/admin/statistics.html
index ffcc666e..fa128358 100644
--- a/CTFd/templates/admin/statistics.html
+++ b/CTFd/templates/admin/statistics.html
@@ -3,19 +3,19 @@
{% block content %}
-
-
Statistics
+
+
Statistics
-
{{ team_count }} teams registered
-
{{ wrong_count }} wrong keys submitted
-
{{ solve_count }} right keys submitted
-
{{ challenge_count }} challenges
- {% if most_solved %}
-
Most solved: {{ most_solved }} with {{ solve_data[most_solved] }} solves
- {% endif %}
- {% if least_solved %}
-
Least solved: {{ least_solved }} with {{ solve_data[least_solved] }} solves
- {% endif %}
+
{{ team_count }} teams registered
+
{{ wrong_count }} wrong keys submitted
+
{{ solve_count }} right keys submitted
+
{{ challenge_count }} challenges
+ {% if most_solved %}
+
Most solved: {{ most_solved }} with {{ solve_data[most_solved] }} solves
+ {% endif %}
+ {% if least_solved %}
+
Least solved: {{ least_solved }} with {{ solve_data[least_solved] }} solves
+ {% endif %}
diff --git a/CTFd/templates/admin/team.html b/CTFd/templates/admin/team.html
index c8dc41d3..31b1401a 100644
--- a/CTFd/templates/admin/team.html
+++ b/CTFd/templates/admin/team.html
@@ -2,355 +2,355 @@
{% block stylesheets %}
{% endblock %}
{% block content %}
-
+
-
{{ team.name }}
-
{{ team.email }}
-
- {%if place %}
- {{ place }} place
- {% endif %}
-
-
- {%if score %}
- {{ score }} points
- {% endif %}
-
+
{{ team.name }}
+
{{ team.email }}
+
+ {%if place %}
+ {{ place }} place
+ {% endif %}
+
+
+ {%if score %}
+ {{ score }} points
+ {% endif %}
+
-
-
-
+
+
+
-
- IP Addresses
-
-
- | IP Address |
- Last Seen |
-
-
-
- {% for addr in addrs %}
-
- | {{ addr[0]|long2ip }} |
- |
-
- {% endfor %}
-
-
+
+ IP Addresses
+
+
+ | IP Address |
+ Last Seen |
+
+
+
+ {% for addr in addrs %}
+
+ | {{ addr[0]|long2ip }} |
+ |
+
+ {% endfor %}
+
+
-
- Awards
-
-
- | Name |
- Description |
- Date |
- Value |
- Category |
- Icon |
- Delete |
-
-
-
- {% for award in awards %}
-
- | {{ award.name }} |
- {{ award.description }} |
- |
- {{ award.value }} |
- {{ award.category }} |
- {{ award.icon }} |
+
+ Awards
+
+
+ | Name |
+ Description |
+ Date |
+ Value |
+ Category |
+ Icon |
+ Delete |
+
+
+
+ {% for award in awards %}
+
+ | {{ award.name }} |
+ {{ award.description }} |
+ |
+ {{ award.value }} |
+ {{ award.category }} |
+ {{ award.icon }} |
- |
-
- {% endfor %}
-
-
+ |
+
+ {% endfor %}
+
+
-
-
-
+
+
+
-
- Solves
-
-
- | Challenge |
- Submitted |
- Category |
- Value |
- Time |
- Delete |
-
-
-
- {% for solve in solves %}
-
- | {{ solve.chal.name }} |
- {{ solve.flag }} |
- {{ solve.chal.category }} |
- {{ solve.chal.value }} |
- |
- |
-
- {% endfor %}
-
-
+
+ Solves
+
+
+ | Challenge |
+ Submitted |
+ Category |
+ Value |
+ Time |
+ Delete |
+
+
+
+ {% for solve in solves %}
+
+ | {{ solve.chal.name }} |
+ {{ solve.flag }} |
+ {{ solve.chal.category }} |
+ {{ solve.chal.value }} |
+ |
+ |
+
+ {% endfor %}
+
+
-
- Missing
-
-
- | Challenge |
- Category |
- Value |
- Mark Solved |
-
-
-
- {% for chal in missing %}
-
- | {{ chal.name }} |
- {{ chal.category }} |
- {{ chal.value }} |
- |
-
- {% endfor %}
-
-
+
+ Missing
+
+
+ | Challenge |
+ Category |
+ Value |
+ Mark Solved |
+
+
+
+ {% for chal in missing %}
+
+ | {{ chal.name }} |
+ {{ chal.category }} |
+ {{ chal.value }} |
+ |
+
+ {% endfor %}
+
+
-
- Wrong Keys
-
-
- | Challenge |
- Submitted |
- Time |
- Delete |
-
-
-
- {% for wrong_key in wrong_keys %}
-
- | {{ wrong_key.chal.name }} |
- {{ wrong_key.flag }} |
- |
- |
-
- {% endfor %}
-
-
+
+ Wrong Keys
+
+
+ | Challenge |
+ Submitted |
+ Time |
+ Delete |
+
+
+
+ {% for wrong_key in wrong_keys %}
+
+ | {{ wrong_key.chal.name }} |
+ {{ wrong_key.flag }} |
+ |
+ |
+
+ {% endfor %}
+
+
{% endblock %}
{% block scripts %}
-
-
-
-
-
+
+
+
+
+
{% endblock %}
diff --git a/CTFd/templates/admin/teams.html b/CTFd/templates/admin/teams.html
index 623f9416..7fc2f713 100644
--- a/CTFd/templates/admin/teams.html
+++ b/CTFd/templates/admin/teams.html
@@ -10,299 +10,302 @@ input[type="checkbox"] { margin: 0px !important; position: relative; top: 5px; }
{% block content %}
-
-
Teams
-
-
-
-
-
-
-
-
-
-
-
-
Are you sure you want to delete ?
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
Teams
+
+
+
+
+
+
+
+
+
+
+
+
Are you sure you want to delete ?
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
- {% if pages > 1 %}
-
Page
-
- {% if curr_page != 1 %}
<<<{% endif %}
- {% for page in range(1, pages + 1) %}
- {% if curr_page != page %}
-
{{ page }}
- {% else %}
-
{{ page }}
- {% endif %}
- {% endfor %}
- {% if curr_page != pages %}
>>>{% endif %}
-
- {% endif %}
+
+
+
+
+
+
+
+
+ {% if pages > 1 %}
+
Page
+
+ {% if curr_page != 1 %}
<<<{% endif %}
+ {% for page in range(1, pages + 1) %}
+ {% if curr_page != page %}
+
{{ page }}
+ {% else %}
+
{{ page }}
+ {% endif %}
+ {% endfor %}
+ {% if curr_page != pages %}
>>>{% endif %}
+
+ {% endif %}
{% endblock %}
{% block scripts %}
{% endblock %}
diff --git a/CTFd/templates/original/base.html b/CTFd/templates/original/base.html
index f6aaf799..0a27986c 100644
--- a/CTFd/templates/original/base.html
+++ b/CTFd/templates/original/base.html
@@ -1,78 +1,78 @@
-
{{ ctf_name() }}
-
-
-
-
-
-
-
-
-
-
- {% block stylesheets %}{% endblock %}
-
-
-
+
{{ ctf_name() }}
+
+
+
+
+
+
+
+
+
+
+ {% block stylesheets %}{% endblock %}
+
+
+
-
-
-
-
-
-
-
- {% if username is defined %}
- {% if admin %}
- - Admin
- {% endif %}
- - Team
- - Profile
- - Logout
- {% else %}
- {% if can_register() %}
- - Register
- - |
- {% endif %}
- - Login
- {% endif %}
-
-
-
-
+
+
+
+
+
+
+
+ {% if username is defined %}
+ {% if admin %}
+ - Admin
+ {% endif %}
+ - Team
+ - Profile
+ - Logout
+ {% else %}
+ {% if can_register() %}
+ - Register
+ - |
+ {% endif %}
+ - Login
+ {% endif %}
+
+
+
+
- {% block content %}
- {% endblock %}
+ {% block content %}
+ {% endblock %}
-
-
-
-
-
- {% block scripts %}
- {% endblock %}
+
+
+
+
+
+ {% block scripts %}
+ {% endblock %}
diff --git a/CTFd/templates/original/chals.html b/CTFd/templates/original/chals.html
index 9c1c14c0..917ad660 100644
--- a/CTFd/templates/original/chals.html
+++ b/CTFd/templates/original/chals.html
@@ -2,80 +2,80 @@
{% block stylesheets %}
{% endblock %}
@@ -83,37 +83,37 @@
{% if errors %}
-
+
{% for error in errors %}
-
{{ error }}
+ {{ error }}
{% endfor %}
-
+
{% else %}
-
-
Challenges
-
+
+
Challenges
+
@@ -122,8 +122,8 @@
{% endblock %}
{% block scripts %}
-
-
- {% if not errors %}{% endif %}
-
+
+
+ {% if not errors %}{% endif %}
+
{% endblock %}
diff --git a/CTFd/templates/original/confirm.html b/CTFd/templates/original/confirm.html
index 3e9a1774..291cfd10 100644
--- a/CTFd/templates/original/confirm.html
+++ b/CTFd/templates/original/confirm.html
@@ -1,49 +1,49 @@
{% extends "base.html" %}
{% block stylesheets %}
-
+ .done-row {
+ padding-top: 15px;
+ margin: 0px;
+ }
+
{% endblock %}
{% block content %}
-
-
-
-
- {% for error in errors %}
-
- Error:
- {{ error }}
-
-
- {% endfor %}
-
- We've sent a confirmation email to {{ team.email }}
-
+
+
+
+
+ {% for error in errors %}
+
+ Error:
+ {{ error }}
+
+
+ {% endfor %}
+
+ We've sent a confirmation email to {{ team.email }}
+
-
- Please click the link in that email to confirm your account and access the rest of the CTF.
-
-
-
-
+
+ Please click the link in that email to confirm your account and access the rest of the CTF.
+
+
+
+
{% endblock %}
{% block scripts %}
-
+
{% endblock %}
diff --git a/CTFd/templates/original/errors/403.html b/CTFd/templates/original/errors/403.html
index 2db93db4..9af6eec7 100644
--- a/CTFd/templates/original/errors/403.html
+++ b/CTFd/templates/original/errors/403.html
@@ -3,9 +3,9 @@
{% block content %}
-
403
- An authorization error has occured
- Please try again
+ 403
+ An authorization error has occured
+ Please try again
diff --git a/CTFd/templates/original/errors/404.html b/CTFd/templates/original/errors/404.html
index dc851202..5a8c1bc3 100644
--- a/CTFd/templates/original/errors/404.html
+++ b/CTFd/templates/original/errors/404.html
@@ -3,9 +3,9 @@
{% block content %}
-
404
- Whoops, looks like we can't find that.
- Sorry about that
+ 404
+ Whoops, looks like we can't find that.
+ Sorry about that
diff --git a/CTFd/templates/original/errors/500.html b/CTFd/templates/original/errors/500.html
index 66835164..13a24369 100644
--- a/CTFd/templates/original/errors/500.html
+++ b/CTFd/templates/original/errors/500.html
@@ -3,8 +3,8 @@
{% block content %}
-
500
- An Internal Server Error has occured
+ 500
+ An Internal Server Error has occured
diff --git a/CTFd/templates/original/errors/502.html b/CTFd/templates/original/errors/502.html
index b15e9cc6..87261d02 100644
--- a/CTFd/templates/original/errors/502.html
+++ b/CTFd/templates/original/errors/502.html
@@ -3,8 +3,8 @@
{% block content %}
-
502
- That action isn't allowed
+ 502
+ That action isn't allowed
diff --git a/CTFd/templates/original/login.html b/CTFd/templates/original/login.html
index fad46565..e44e3fcf 100644
--- a/CTFd/templates/original/login.html
+++ b/CTFd/templates/original/login.html
@@ -1,72 +1,72 @@
{% extends "base.html" %}
{% block stylesheets %}
-
+ .done-row {
+ padding-top: 15px;
+ margin: 0px;
+ }
+
{% endblock %}
{% block content %}
-
-
- {% for error in errors %}
-
- Error:
- {{ error }}
-
-
- {% endfor %}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+ {% for error in errors %}
+
+ Error:
+ {{ error }}
+
+
+ {% endfor %}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{% endblock %}
{% block scripts %}
-
+
{% endblock %}
diff --git a/CTFd/templates/original/page.html b/CTFd/templates/original/page.html
index ef446237..6f0b8811 100644
--- a/CTFd/templates/original/page.html
+++ b/CTFd/templates/original/page.html
@@ -1,7 +1,7 @@
{% extends "base.html" %}
{% block content %}
-
- {{ content | safe }}
-
+
+ {{ content | safe }}
+
{% endblock %}
diff --git a/CTFd/templates/original/profile.html b/CTFd/templates/original/profile.html
index 990737a2..11198963 100644
--- a/CTFd/templates/original/profile.html
+++ b/CTFd/templates/original/profile.html
@@ -1,140 +1,140 @@
{% extends "base.html" %}
{% block stylesheets %}
-
+
{% endblock %}
{% block content %}
-
-
Profile
-
+
+
Profile
+
-
-
- {% if success %}
-
- Success!
- Your profile has been updated
-
-
- {% else %}
- {% for error in errors %}
-
-
- Error:
- {{ error }}
-
-
-
- {% endfor %}
- {% endif %}
- {% if confirm_email %}
-
- Your email address isn't confirmed!
- Please check your email to confirm your email address.
-
-
- To have the confirmation email resent please
click
- here.
-
-
- {% endif %}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+ {% if success %}
+
+ Success!
+ Your profile has been updated
+
+
+ {% else %}
+ {% for error in errors %}
+
+
+ Error:
+ {{ error }}
+
+
+
+ {% endfor %}
+ {% endif %}
+ {% if confirm_email %}
+
+ Your email address isn't confirmed!
+ Please check your email to confirm your email address.
+
+
+ To have the confirmation email resent please
click
+ here.
+
+
+ {% endif %}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{% endblock %}
{% block scripts %}
-
+
{% endblock %}
diff --git a/CTFd/templates/original/register.html b/CTFd/templates/original/register.html
index e6571941..97dc79ac 100644
--- a/CTFd/templates/original/register.html
+++ b/CTFd/templates/original/register.html
@@ -5,60 +5,60 @@
{% block content %}
-
-
Register
-
+
+
Register
+
-
-
- {% for error in errors %}
-
- Error:
- {{ error }}
-
-
- {% endfor %}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+ {% for error in errors %}
+
+ Error:
+ {{ error }}
+
+
+ {% endfor %}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{% endblock %}
diff --git a/CTFd/templates/original/reset_password.html b/CTFd/templates/original/reset_password.html
index 9767ba9a..281c26a9 100644
--- a/CTFd/templates/original/reset_password.html
+++ b/CTFd/templates/original/reset_password.html
@@ -5,55 +5,55 @@
{% block content %}
-
-
Reset Password
-
+
+
Reset Password
+
-
-
- {% for error in errors %}
-
- Error:
- {{ error }}
-
-
- {% endfor %}
-
-
- {% if mode %}
-
- {% else %}
-
- {% endif %}
-
-
-
-
+
+
+ {% for error in errors %}
+
+ Error:
+ {{ error }}
+
+
+ {% endfor %}
+
+
+ {% if mode %}
+
+ {% else %}
+
+ {% endif %}
+
+
+
+
{% endblock %}
{% block scripts %}
-
+
{% endblock %}
diff --git a/CTFd/templates/original/scoreboard.html b/CTFd/templates/original/scoreboard.html
index 71bdae34..a4315560 100644
--- a/CTFd/templates/original/scoreboard.html
+++ b/CTFd/templates/original/scoreboard.html
@@ -2,55 +2,55 @@
{% block content %}
-
-
Scoreboard
-
+
+
Scoreboard
+
- {% if errors %}
-
-
- {% for error in errors %}
-
{{ error }}
- {% endfor %}
-
-
- {% else %}
+ {% if errors %}
+
+
+ {% for error in errors %}
+
{{ error }}
+ {% endfor %}
+
+
+ {% else %}
- {% if score_frozen %}
-
-
-
Scoreboard has been frozen.
-
-
- {% endif %}
+ {% if score_frozen %}
+
+
+
Scoreboard has been frozen.
+
+
+ {% endif %}
-
-
+
+
-
-
-
- | Place
- |
- Team
- |
- Score
- |
-
-
-
- {% for team in teams %}
- | {{ loop.index }} | {{ team.name }} | {{ team.score }} |
- {% endfor %}
-
-
- {% endif %}
+
+
+
+ | Place
+ |
+ Team
+ |
+ Score
+ |
+
+
+
+ {% for team in teams %}
+ | {{ loop.index }} | {{ team.name }} | {{ team.score }} |
+ {% endfor %}
+
+
+ {% endif %}
{% endblock %}
{% block scripts %}
-
-
-
+
+
+
{% endblock %}
diff --git a/CTFd/templates/original/setup.html b/CTFd/templates/original/setup.html
index a20d8f4f..1e1c76ab 100644
--- a/CTFd/templates/original/setup.html
+++ b/CTFd/templates/original/setup.html
@@ -5,58 +5,58 @@
{% block content %}
{% endblock %}
{% block scripts %}
-
+
{% endblock %}
diff --git a/CTFd/templates/original/team.html b/CTFd/templates/original/team.html
index 576ce52b..0bb4d4da 100644
--- a/CTFd/templates/original/team.html
+++ b/CTFd/templates/original/team.html
@@ -5,99 +5,99 @@
{% block content %}
-
-
{{ team.name }}
-
+
+
{{ team.name }}
+
- {% if errors %}
-
- {% for error in errors %}
-
{{ error }}
- {% endfor %}
-
- {% else %}
+ {% if errors %}
+
+ {% for error in errors %}
+
{{ error }}
+ {% endfor %}
+
+ {% else %}
- {% if score_frozen %}
-
-
-
Scoreboard has been frozen.
-
-
- {% endif %}
+ {% if score_frozen %}
+
+
+
Scoreboard has been frozen.
+
+
+ {% endif %}
-
-
- {%if place %}
- {{ place }} place
- {% endif %}
-
-
- {%if score %}
- {{ score }} points
- {% endif %}
-
-
+
+
+ {%if place %}
+ {{ place }} place
+ {% endif %}
+
+
+ {%if score %}
+ {{ score }} points
+ {% endif %}
+
+
-
+
-
-
-
-
+
+
+
+
-
+
- {% if awards %}
-
-
Awards
- {% for award in awards %}
- {% set count= awards|length - loop.index %}
- {% set rem = awards|length % 4 %}
- {% if count < rem %}
-
- {% else %}
-
- {% endif %}
-
{{ award.name }}
- {% if award.category %}
{{ award.category }}
{% endif %}
-
{{ award.description }}
-
{{ award.value }}
-
- {% endfor %}
-
+ {% if awards %}
+
+
Awards
+ {% for award in awards %}
+ {% set count= awards|length - loop.index %}
+ {% set rem = awards|length % 4 %}
+ {% if count < rem %}
+
+ {% else %}
+
+ {% endif %}
+
{{ award.name }}
+ {% if award.category %}
{{ award.category }}
{% endif %}
+
{{ award.description }}
+
{{ award.value }}
+
+ {% endfor %}
+
-
- {% endif %}
+
+ {% endif %}
-
-
Solves
-
-
-
- | Challenge |
- Category |
- Value |
- Time |
-
-
-
- {% for solve in solves %}
-
- | {{ solve.chal.name }} |
- {{ solve.chal.category }} | {{ solve.chal.value }} |
- |
-
- {% endfor %}
-
-
-
- {% endif %}
+
+
Solves
+
+
+
+ | Challenge |
+ Category |
+ Value |
+ Time |
+
+
+
+ {% for solve in solves %}
+
+ | {{ solve.chal.name }} |
+ {{ solve.chal.category }} | {{ solve.chal.value }} |
+ |
+
+ {% endfor %}
+
+
+
+ {% endif %}
{% endblock %}
{% block scripts %}
-
-
-
+
+
+
{% endblock %}
diff --git a/CTFd/templates/original/teams.html b/CTFd/templates/original/teams.html
index 0e92d5e5..f91b8568 100644
--- a/CTFd/templates/original/teams.html
+++ b/CTFd/templates/original/teams.html
@@ -5,52 +5,52 @@
{% block content %}
-
-
-
- | Team |
- Website |
- Affiliation |
- Country |
-
-
-
- {% for team in teams %}
-
- |
- {% if hide_scores() %}
- {{ team.name }}
- {% else %}
- {{ team.name }}
- {% endif %}
- |
- {% if team.website and (team.website.startswith('http://') or team.website.startswith('https://')) %}{{ team.website }}{% endif %} |
- {% if team.affiliation %}{{ team.affiliation }}{% endif %} |
- {% if team.country %}{{ team.country }}{% endif %} |
-
- {% endfor %}
-
-
- {% if team_pages > 1 %}
-
Page
-
- {% if curr_page != 1 %}
<<<{% endif %}
- {% for page in range(1, team_pages + 1) %}
- {% if curr_page != page %}
-
{{ page }}
- {% else %}
-
{{page}}
- {% endif %}
- {% endfor %}
- {% if curr_page != team_pages %}
>>>{% endif %}
-
-
- {% endif %}
+
+
+
+ | Team |
+ Website |
+ Affiliation |
+ Country |
+
+
+
+ {% for team in teams %}
+
+ |
+ {% if hide_scores() %}
+ {{ team.name }}
+ {% else %}
+ {{ team.name }}
+ {% endif %}
+ |
+ {% if team.website and (team.website.startswith('http://') or team.website.startswith('https://')) %}{{ team.website }}{% endif %} |
+ {% if team.affiliation %}{{ team.affiliation }}{% endif %} |
+ {% if team.country %}{{ team.country }}{% endif %} |
+
+ {% endfor %}
+
+
+ {% if team_pages > 1 %}
+
Page
+
+ {% if curr_page != 1 %}
<<<{% endif %}
+ {% for page in range(1, team_pages + 1) %}
+ {% if curr_page != page %}
+
{{ page }}
+ {% else %}
+
{{page}}
+ {% endif %}
+ {% endfor %}
+ {% if curr_page != team_pages %}
>>>{% endif %}
+
+
+ {% endif %}
{% endblock %}