Skip to content

Commit 7bc640e

Browse files
committed
Load main.js only templates using tabs #908
This limit the flickering to the vulnerability details. Signed-off-by: Philippe Ombredanne <[email protected]>
1 parent 8bafcb6 commit 7bc640e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

vulnerabilities/templates/base.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
<body class="Site">
2020
<div class="container max-desktop-width is-fullheight">
2121
{% block content %}{% endblock %}
22-
<script src="{% static 'js/main.js' %}" crossorigin="anonymous"></script>
2322

2423
<footer class="footer">
2524
<div class="content has-text-centered">
@@ -33,7 +32,6 @@
3332
</div>
3433

3534
{% block scripts %}
36-
3735
{% endblock %}
3836
</body>
3937

vulnerabilities/templates/vulnerability_details.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{% extends "base.html" %}
22
{% load humanize %}
33
{% load widget_tweaks %}
4+
{% load static %}
45

56
{% block title %}
67
VulnerableCode Vulnerability Details - {{ vulnerability.vulnerability_id }}
@@ -268,4 +269,6 @@
268269
</section>
269270
{% endif %}
270271

272+
<script src="{% static 'js/main.js' %}" crossorigin="anonymous"></script>
273+
271274
{% endblock %}

0 commit comments

Comments
 (0)