mirror of
https://github.com/Southampton-RSG/breccia-mapper.git
synced 2026-03-03 03:17:07 +00:00
fix: Don't insert form CSS/JS when no form
This commit is contained in:
@@ -25,8 +25,7 @@
|
||||
crossorigin="anonymous" />
|
||||
|
||||
{% load staticfiles %}
|
||||
<link rel="stylesheet"
|
||||
href="{% static 'css/global.css' %}">
|
||||
<link rel="stylesheet" href="{% static 'css/global.css' %}">
|
||||
|
||||
{% if 'javascript_in_head'|bootstrap_setting %}
|
||||
{% if 'include_jquery'|bootstrap_setting %}
|
||||
@@ -38,7 +37,9 @@
|
||||
{% bootstrap_javascript %}
|
||||
{% endif %}
|
||||
|
||||
{% if form %}
|
||||
{{ form.media.css }}
|
||||
{% endif %}
|
||||
|
||||
{% block extra_head %}{% endblock %}
|
||||
|
||||
@@ -138,7 +139,8 @@
|
||||
{% if request.user.is_authenticated and not request.user.has_person %}
|
||||
<div class="alert alert-info rounded-0" role="alert">
|
||||
<p class="text-center mb-0">
|
||||
Your profile is currently blank. Please fill in your details so you can be part of the network.
|
||||
Your profile is currently blank.
|
||||
Please fill in your details so you can be part of the network.
|
||||
|
||||
<a class="btn btn-success"
|
||||
href="{% url 'people:person.create' %}?user">Profile</a>
|
||||
@@ -176,7 +178,9 @@
|
||||
{% bootstrap_javascript %}
|
||||
{% endif %}
|
||||
|
||||
{% if form %}
|
||||
{{ form.media.js }}
|
||||
{% endif %}
|
||||
|
||||
{% block extra_script %}{% endblock %}
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user