diff --git a/humbug/settings.py b/humbug/settings.py index 48b25483b3..bdcb85cb20 100644 --- a/humbug/settings.py +++ b/humbug/settings.py @@ -238,6 +238,7 @@ PIPELINE_CSS = { }, 'portico': { 'source_filenames': ( + 'third/zocial/zocial.css', 'styles/portico.css', 'styles/pygments.css', 'styles/fonts.css', @@ -246,44 +247,44 @@ PIPELINE_CSS = { }, 'app': { 'source_filenames': ( + 'third/spectrum/spectrum.css', 'styles/zephyr.css', 'styles/pygments.css', 'styles/fonts.css', ), 'output_filename': 'min/app.css' }, - 'third_common': { + 'common': { 'source_filenames': ( 'third/bootstrap/css/bootstrap.css', 'third/bootstrap/css/bootstrap-responsive.css', ), - 'output_filename': 'min/third_common.css' - }, - 'third_portico': { - 'source_filenames': ( - 'third/zocial/zocial.css', - ), - 'output_filename': 'min/third_portico.css' - }, - 'third_app': { - 'source_filenames': ( - 'third/spectrum/spectrum.css', - ), - 'output_filename': 'min/third_app.css' + 'output_filename': 'min/common.css' }, } PIPELINE_JS = { 'common': { - 'source_filenames': ('js/common.js',), + 'source_filenames': ( + 'third/jquery/jquery-1.7.2.js', + 'js/blueslip.js', + 'third/bootstrap/js/bootstrap.js', + 'js/common.js', + ), 'output_filename': 'min/common.js' }, 'landing-page': { - 'source_filenames': ('js/landing-page.js',), + 'source_filenames': ( + 'third/jquery-form/jquery.form.js', + 'js/landing-page.js', + ), 'output_filename': 'min/landing-page.js' }, 'signup': { - 'source_filenames': ('js/signup.js',), + 'source_filenames': ( + 'js/signup.js', + 'third/jquery-validate/jquery.validate.js', + ), 'output_filename': 'min/signup.js' }, 'api': { @@ -296,6 +297,22 @@ PIPELINE_JS = { }, 'app': { 'source_filenames': [ + 'third/jquery-validate/jquery.validate.js', + 'third/jquery-form/jquery.form.js', + 'third/jquery-highlight/jquery.highlight.js', + 'third/jquery-filedrop/jquery.filedrop.js', + 'third/jquery-caret/jquery.caret.1.02.js', + 'third/xdate/xdate.dev.js', + 'third/spin/spin.js', + 'third/jquery-mousewheel/jquery.mousewheel.js', + 'third/jquery-throttle-debounce/jquery.ba-throttle-debounce.js', + 'third/jquery-idle/jquery.idle.js', + 'third/jquery-autosize/jquery.autosize.js', + 'third/spectrum/spectrum.js', + ('third/handlebars/handlebars.runtime.js' + if PIPELINE + else 'third/handlebars/handlebars.js'), + 'js/util.js', 'js/setup.js', 'js/viewport.js', @@ -330,48 +347,11 @@ PIPELINE_JS = { ], 'output_filename': 'min/app.js' }, - 'blueslip': { - 'source_filenames': ('js/blueslip.js',), - 'output_filename': 'min/blueslip.js' - }, - 'third_common': { - 'source_filenames': ( - 'third/jquery/jquery-1.7.2.js', - 'third/bootstrap/js/bootstrap.js', - ), - 'output_filename': 'min/third_common.js' - }, - 'third_signup': { - 'source_filenames': ( - 'third/jquery-validate/jquery.validate.js', - ), - 'output_filename': 'min/third_signup.js' - }, - 'third_activity': { + 'activity': { 'source_filenames': ( 'third/sorttable/sorttable.js', ), - 'output_filename': 'min/third_activity.js' - }, - 'third_app': { - 'source_filenames': ( - 'third/jquery-validate/jquery.validate.js', - 'third/jquery-form/jquery.form.js', - 'third/jquery-highlight/jquery.highlight.js', - 'third/jquery-filedrop/jquery.filedrop.js', - 'third/jquery-caret/jquery.caret.1.02.js', - 'third/xdate/xdate.dev.js', - 'third/spin/spin.js', - 'third/jquery-mousewheel/jquery.mousewheel.js', - 'third/jquery-throttle-debounce/jquery.ba-throttle-debounce.js', - 'third/jquery-idle/jquery.idle.js', - 'third/jquery-autosize/jquery.autosize.js', - 'third/spectrum/spectrum.js', - ('third/handlebars/handlebars.runtime.js' - if PIPELINE - else 'third/handlebars/handlebars.js'), - ), - 'output_filename': 'min/third_app.js' + 'output_filename': 'min/activity.js' }, } diff --git a/templates/zephyr/activity.html b/templates/zephyr/activity.html index a141885f39..29b141b730 100644 --- a/templates/zephyr/activity.html +++ b/templates/zephyr/activity.html @@ -6,7 +6,7 @@ {% block customhead %} {{ block.super }} -{% compressed_js 'third_activity' %} +{% compressed_js 'activity' %} {% compressed_css 'activity' %} {% endblock %} diff --git a/templates/zephyr/base.html b/templates/zephyr/base.html index 6bf3f543ab..548dd8039c 100644 --- a/templates/zephyr/base.html +++ b/templates/zephyr/base.html @@ -63,15 +63,13 @@ mixpanel.init("{{ mixpanel_token }}", {verbose: true}); {# We need to import jQuery before Bootstrap #} - {% compressed_css 'third_common' %} - {% compressed_js 'third_common' %} + {% compressed_css 'common' %} {% block page_params %} {# blueslip needs page_params.debug_mode. Set it to false by default. #} {% endblock %} - {% compressed_js 'blueslip' %} {% compressed_js 'common' %} {% block customhead %} {% endblock %} diff --git a/templates/zephyr/index.html b/templates/zephyr/index.html index 4a43b11cca..6596980130 100644 --- a/templates/zephyr/index.html +++ b/templates/zephyr/index.html @@ -17,9 +17,7 @@ var page_params = {{ page_params }}; {% block customhead %} -{% compressed_css 'third_app' %} {% compressed_css 'app' %} -{% compressed_js 'third_app' %} {% compressed_js 'app' %} {% if debug %} diff --git a/templates/zephyr/portico.html b/templates/zephyr/portico.html index c883702dd2..e6f29255a5 100644 --- a/templates/zephyr/portico.html +++ b/templates/zephyr/portico.html @@ -10,7 +10,6 @@ hence the name. {% endcomment %} {% block customhead %} - {% compressed_css 'third_portico' %} {% compressed_css 'portico' %} {% endblock %} diff --git a/templates/zephyr/portico_signup.html b/templates/zephyr/portico_signup.html index f428fa0f4a..78fa5d53a9 100644 --- a/templates/zephyr/portico_signup.html +++ b/templates/zephyr/portico_signup.html @@ -6,6 +6,5 @@ {% block customhead %} {{ block.super }} - {% compressed_js 'third_signup' %} {% compressed_js 'signup' %} {% endblock %} diff --git a/templates/zephyr/signup.html b/templates/zephyr/signup.html index d15744059d..c4f4188400 100644 --- a/templates/zephyr/signup.html +++ b/templates/zephyr/signup.html @@ -3,7 +3,6 @@ {% block customhead %} {% compressed_css 'portico' %} - {% compressed_js 'landing-page' %} {% endblock %}