Skip to content

Commit

Permalink
Load main.js only templates using tabs #908
Browse files Browse the repository at this point in the history
This limit the flickering to the vulnerability details.

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
  • Loading branch information
pombredanne committed Sep 8, 2022
1 parent 8bafcb6 commit 7bc640e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 0 additions & 2 deletions vulnerabilities/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
<body class="Site">
<div class="container max-desktop-width is-fullheight">
{% block content %}{% endblock %}
<script src="{% static 'js/main.js' %}" crossorigin="anonymous"></script>

<footer class="footer">
<div class="content has-text-centered">
Expand All @@ -33,7 +32,6 @@
</div>

{% block scripts %}

{% endblock %}
</body>

Expand Down
3 changes: 3 additions & 0 deletions vulnerabilities/templates/vulnerability_details.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{% extends "base.html" %}
{% load humanize %}
{% load widget_tweaks %}
{% load static %}

{% block title %}
VulnerableCode Vulnerability Details - {{ vulnerability.vulnerability_id }}
Expand Down Expand Up @@ -268,4 +269,6 @@
</section>
{% endif %}

<script src="{% static 'js/main.js' %}" crossorigin="anonymous"></script>

{% endblock %}

0 comments on commit 7bc640e

Please sign in to comment.