From be2bbe35cf49763ad0258c005f3cbdddd7a21d75 Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Wed, 13 Jun 2018 16:43:42 +0100 Subject: Compile as much JS with Gulp as possible This will concatenate ALL of our JS, and minify it - thus leaving us with a single file to be loaded. There's a few libraries we can't do this with, unfortunately - these are now added in fouc.js: * Ace Editor * Flatpickr * Font-Awesome --- templates/errors/error.html | 4 +--- templates/main/base.html | 9 +-------- templates/main/jams/profile.html | 5 ----- templates/staff/jams/edit_ending.html | 3 --- templates/staff/jams/edit_info.html | 3 --- templates/staff/jams/forms/preamble_edit.html | 3 --- templates/staff/jams/forms/questions_edit.html | 3 --- templates/staff/jams/forms/questions_view.html | 5 +---- templates/staff/jams/forms/view.html | 5 +---- templates/staff/jams/index.html | 5 +---- templates/staff/jams/infractions/view.html | 5 +---- templates/staff/jams/participants.html | 5 +---- templates/staff/tables/edit.html | 3 --- templates/wiki/base.html | 11 ++++------- templates/wiki/page_edit.html | 3 --- templates/wiki/revision_list.html | 2 +- 16 files changed, 12 insertions(+), 62 deletions(-) (limited to 'templates') diff --git a/templates/errors/error.html b/templates/errors/error.html index 6132aea1..dbb7e3b4 100644 --- a/templates/errors/error.html +++ b/templates/errors/error.html @@ -9,10 +9,8 @@ window._Code = {{ code }}; window._ErrorMsg = "{{ error_message | safe }}"; window._Path = "{{ request.path }}"; + window.onload = error_typewriter; - - - {% endblock %} {% block content %} diff --git a/templates/main/base.html b/templates/main/base.html index 9c58fefa..bb12fc9b 100644 --- a/templates/main/base.html +++ b/templates/main/base.html @@ -6,12 +6,7 @@ - - - - - - + @@ -54,7 +49,5 @@ - - diff --git a/templates/main/jams/profile.html b/templates/main/jams/profile.html index 660f1540..40d22490 100644 --- a/templates/main/jams/profile.html +++ b/templates/main/jams/profile.html @@ -2,11 +2,6 @@ {% block title %}Code Jams | My Profile{% endblock %} {% block og_title %}Code Jams | My Profile{% endblock %} -{% block extra_head %} - - -{% endblock %} - {% block content %}
diff --git a/templates/staff/jams/edit_ending.html b/templates/staff/jams/edit_ending.html index 82d46978..4e70776e 100644 --- a/templates/staff/jams/edit_ending.html +++ b/templates/staff/jams/edit_ending.html @@ -4,9 +4,6 @@ {% block og_description %}Edit the ending comments for a code jam{% endblock %} {% block page_classes %}uses-rst{% endblock %} -{% block extra_head %} - -{% endblock %} {% block content %}
diff --git a/templates/staff/jams/edit_info.html b/templates/staff/jams/edit_info.html index e7abeb54..471f7aaf 100644 --- a/templates/staff/jams/edit_info.html +++ b/templates/staff/jams/edit_info.html @@ -4,9 +4,6 @@ {% block og_description %}Edit the basic info for a code jam{% endblock %} {% block page_classes %}uses-rst{% endblock %} -{% block extra_head %} - -{% endblock %} {% block content %}
diff --git a/templates/staff/jams/forms/preamble_edit.html b/templates/staff/jams/forms/preamble_edit.html index 4108481b..c2245b35 100644 --- a/templates/staff/jams/forms/preamble_edit.html +++ b/templates/staff/jams/forms/preamble_edit.html @@ -3,9 +3,6 @@ {% block og_title %}Staff | Forms | Edit Preamble{% endblock %} {% block page_classes %}uses-rst{% endblock %} -{% block extra_head %} - -{% endblock %} {% block content %}
diff --git a/templates/staff/jams/forms/questions_edit.html b/templates/staff/jams/forms/questions_edit.html index d029cc33..d6fe082c 100644 --- a/templates/staff/jams/forms/questions_edit.html +++ b/templates/staff/jams/forms/questions_edit.html @@ -2,9 +2,6 @@ {% block title %}Staff | Jams | Question Edit{% endblock %} {% block og_title %}Staff | Jams | Question Edit{% endblock %} {% block og_description %}Edit a question{% endblock %} -{% block extra_head %} - -{% endblock %} {% block content %}

Question Edit

diff --git a/templates/staff/jams/forms/questions_view.html b/templates/staff/jams/forms/questions_view.html index bebdde40..f8eeea40 100644 --- a/templates/staff/jams/forms/questions_view.html +++ b/templates/staff/jams/forms/questions_view.html @@ -2,9 +2,6 @@ {% block title %}Staff | Jams | Questions{% endblock %} {% block og_title %}Staff | Jams | Questions{% endblock %} {% block og_description %}Manage all created questions{% endblock %} -{% block extra_head %} - -{% endblock %} {% block content %}

Questions List

@@ -215,7 +212,7 @@ -{% endblock %} {% block content %}

Application Form {{ jam.number }}: {{ jam.title }}

@@ -243,7 +240,7 @@ -{% endblock %} {% block content %}

Code Jams

@@ -159,7 +156,7 @@ -{% endblock %} {% block content %}

Infractions

@@ -125,7 +122,7 @@ -{% endblock %} {% block content %} {% macro card_header(app) %}
@@ -78,7 +75,7 @@
-{% endblock %} {% block content %}
{% if message %} diff --git a/templates/wiki/base.html b/templates/wiki/base.html index f9aa251e..0e5e9733 100644 --- a/templates/wiki/base.html +++ b/templates/wiki/base.html @@ -6,11 +6,7 @@ - - - - - + @@ -216,7 +212,8 @@
- - + diff --git a/templates/wiki/page_edit.html b/templates/wiki/page_edit.html index 69726d93..70f426e1 100644 --- a/templates/wiki/page_edit.html +++ b/templates/wiki/page_edit.html @@ -4,9 +4,6 @@ {% block og_description %}{% endblock %} {% block page_classes %}uses-rst{% endblock %} -{% block extra_head %} - -{% endblock %} {% block content %}
diff --git a/templates/wiki/revision_list.html b/templates/wiki/revision_list.html index a1936c32..cd6767db 100644 --- a/templates/wiki/revision_list.html +++ b/templates/wiki/revision_list.html @@ -31,6 +31,6 @@
- {% endblock %} -- cgit v1.2.3