Skip to content

Commit

Permalink
fix notifications in home
Browse files Browse the repository at this point in the history
  • Loading branch information
octavioamu authored and owocki committed Feb 28, 2019
1 parent 19eb619 commit fc77933
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
8 changes: 5 additions & 3 deletions app/retail/templates/shared/footer_scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
</script>
<script type="text/javascript" src="{% url 'javascript-catalog' %}"></script>
<script src="{% static "v2/js/jquery.js" %}"></script>
{% if env == 'prod' %}
{% if user.is_authenticated and env == 'prod' %}
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
{% else %}
{% elif user.is_authenticated %}
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
{% endif %}
{% include 'shared/sentry.html' %}
Expand All @@ -46,7 +46,9 @@
<script src="{% static "v2/js/note.js" %}"></script>
<script src="{% static "v2/js/ajax-helper.js" %}"></script>
<script src="{% static "v2/js/pages/carousel.js" %}"></script>
<script src="{% static "v2/js/notifications.js" %}"></script>
{% if user.is_authenticated %}
<script src="{% static "v2/js/notifications.js" %}"></script>
{% endif %}
<script src="{% static "cookielaw/js/cl.js" %}"></script>

<script>
Expand Down
8 changes: 4 additions & 4 deletions app/retail/templates/shared/footer_scripts_lite.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
</script>
<script type="text/javascript" src="{% url 'javascript-catalog' %}"></script>
<script src="{% static "v2/js/jquery.js" %}"></script>
{% if user_logged_in and env == 'prod' %}
{% if user.is_authenticated and env == 'prod' %}
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
{% elif user_logged_in %}
{% elif user.is_authenticated %}
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
{% endif %}
{% include 'shared/sentry.html' %}
Expand All @@ -42,8 +42,8 @@
<script src="{% static "v2/js/note.js" %}"></script>
<script src="{% static "v2/js/base.js" %}"></script>
<script src="{% static "v2/js/ajax-helper.js" %}"></script>
{% if user_logged_in %}
<script src="{% static "v2/js/notifications.js" %}"></script>
{% if user.is_authenticated %}
<script src="{% static "v2/js/notifications.js" %}"></script>
{% endif %}

<script src="{% static "cookielaw/js/cl.js" %}"></script>
Expand Down

0 comments on commit fc77933

Please sign in to comment.