Unbundle bootstrap.js and use xstatic packaged version
Change-Id: Ie92325f426ee65ad5636758c73c961cf0da077b4
This commit is contained in:
parent
5224000f08
commit
7b1c5bf0c7
@ -15,6 +15,7 @@
|
||||
import os
|
||||
import xstatic.main
|
||||
import xstatic.pkg.jquery
|
||||
import xstatic.pkg.bootstrap_scss
|
||||
|
||||
from ansible import __version__ as ansible_version
|
||||
from ansible.constants import get_config
|
||||
@ -128,5 +129,6 @@ DB_MIGRATIONS = os.path.join(INSTALL_PATH, 'db')
|
||||
|
||||
# Xstatic configuration
|
||||
XSTATIC = dict(
|
||||
jquery=xstatic.main.XStatic(xstatic.pkg.jquery).base_dir
|
||||
jquery=xstatic.main.XStatic(xstatic.pkg.jquery).base_dir,
|
||||
bootstrap=xstatic.main.XStatic(xstatic.pkg.bootstrap_scss).base_dir
|
||||
)
|
||||
|
7
ara/static/js/bootstrap.min.js
vendored
7
ara/static/js/bootstrap.min.js
vendored
File diff suppressed because one or more lines are too long
@ -12,7 +12,7 @@
|
||||
{% block scripts %}
|
||||
<script src="{{ url_for('static.serve', module='jquery', file='jquery.min.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/jquery.dataTables.min.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/bootstrap.min.js') }}"></script>
|
||||
<script src="{{ url_for('static.serve', module='bootstrap', file='js/bootstrap.min.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/ara.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/patternfly.min.js') }}"></script>
|
||||
{% endblock %}
|
||||
|
@ -14,4 +14,5 @@ debtcollector>=1.2.0
|
||||
junit-xml>=1.7
|
||||
|
||||
XStatic>=1.0.0 # MIT License
|
||||
XStatic-Bootstrap-SCSS>=3.3.7.1 # Apache 2.0 License
|
||||
XStatic-jQuery>=1.8.2.1 # MIT License
|
||||
|
Loading…
Reference in New Issue
Block a user