Skip to content

Commit

Permalink
Merge pull request #1039 from Metro-Records/hcg/alert-cache
Browse files Browse the repository at this point in the history
Move alert rendering outside of the navigation cache
  • Loading branch information
hancush authored Nov 3, 2023
2 parents 62847ba + 8341791 commit 9f11d4e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lametro/templates/base.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% load adv_cache static %}
{% load adv_cache extras lametro_extras markdownify static %}

<!DOCTYPE html>
<html lang="en">
Expand Down Expand Up @@ -99,9 +99,8 @@
</div><!-- /.navbar-collapse -->
</div>
</nav>
{% endcache %}

{% load extras lametro_extras static %}
{% load markdownify %}
{% get_alerts as alerts %}
{% if alerts %}
{% for alert in alerts %}
Expand All @@ -111,8 +110,6 @@
{% endfor %}
{% endif %}

{% endcache %}

{% block full_content %}
{% endblock %}

Expand Down

0 comments on commit 9f11d4e

Please sign in to comment.