Skip to content

Commit

Permalink
Move Header Bundle back to Original Location
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmed Belal committed May 21, 2019
1 parent 117423b commit 2a20b69
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
6 changes: 6 additions & 0 deletions courses/templates/course_app_base.html
@@ -1 +1,7 @@
{% extends "base.html" %}
{% load render_bundle %}

{% block headercontent %}
<div id="header"></div>
{% render_bundle 'header' %}
{% endblock %}
2 changes: 0 additions & 2 deletions mitxpro/templates/base.html
Expand Up @@ -26,8 +26,6 @@
{% include "partials/gtm_body.html" %}
{% hijack_notification %}
{% block headercontent %}
<div id="header"></div>
{% render_bundle 'header' %}
{% endblock %}
{% block content %}
{% block banner %}
Expand Down
7 changes: 6 additions & 1 deletion mitxpro/templates/resource_template.html
@@ -1,5 +1,10 @@
{% extends "base.html" %}
{% load wagtailcore_tags %}
{% load render_bundle wagtailcore_tags %}

{% block headercontent %}
<div id="header"></div>
{% render_bundle 'header' %}
{% endblock %}

{% block content %}

Expand Down
2 changes: 1 addition & 1 deletion mitxpro/views_test.py
Expand Up @@ -37,7 +37,7 @@ def test_webpack_url(mocker, settings, client):
response = client.get(reverse("login"))

bundles = {bundle[0][1] for bundle in get_bundle.call_args_list}
assert bundles == {"header", "root", "style"}
assert bundles == {"root", "style"}
js_settings = json.loads(response.context["js_settings_json"])
assert js_settings == {
"gaTrackingID": "fake",
Expand Down

0 comments on commit 2a20b69

Please sign in to comment.