add setting in chill.yaml to enable or disable new assets (bootstrap, ckeditor and forkawesome)

This commit is contained in:
Mathieu Jaumotte 2021-03-20 22:28:55 +01:00
parent cb712f4814
commit 142f8bdfb5

View File

@ -29,11 +29,15 @@
<title>{{ installation.name }} - {% block title %}{% endblock %}</title> <title>{{ installation.name }} - {% block title %}{% endblock %}</title>
<link rel="shortcut icon" href="{{ asset('build/images/favicon.ico') }}" type="image/x-icon"> <link rel="shortcut icon" href="{{ asset('build/images/favicon.ico') }}" type="image/x-icon">
<link rel="stylesheet" href="{{ asset('build/chill.css') }}"/> <link rel="stylesheet" href="{{ asset('build/chill.css') }}"/>
{% if active_bootstrap == 1 %}
<link rel="stylesheet" href="{{ asset('build/bootstrap.css') }}" type="text/css"/> <link rel="stylesheet" href="{{ asset('build/bootstrap.css') }}" type="text/css"/>
<link rel="stylesheet" href="{{ asset('build/forkawesome.css') }}" type="text/css"/> {% endif %}
<link rel="stylesheet" href="{{ asset('build/ckeditor5.css') }}" type="text/css"/> {% if active_forkawesome == 1 %}
<link rel="stylesheet" href="{{ asset('build/forkawesome.css') }}" type="text/css"/>
{% endif %}
{% if active_ckeditor == 1 %}
<link rel="stylesheet" href="{{ asset('build/ckeditor5.css') }}" type="text/css"/>
{% endif %}
{% block css%}<!-- nothing added to css -->{% endblock %} {% block css%}<!-- nothing added to css -->{% endblock %}
</head> </head>
@ -149,10 +153,15 @@
<script type="text/javascript" src="{{ asset('build/runtime.js') }}"></script> <script type="text/javascript" src="{{ asset('build/runtime.js') }}"></script>
<script type="text/javascript" src="{{ asset('build/chill.js') }}"></script> <script type="text/javascript" src="{{ asset('build/chill.js') }}"></script>
{% if active_bootstrap == 1 %}
<script text="text/javascript" src="{{ asset('build/bootstrap.js') }}"></script> <script type="text/javascript" src="{{ asset('build/bootstrap.js') }}"></script>
<script text="text/javascript" src="{{ asset('build/ckeditor5.js') }}"></script> {% endif %}
{% if active_forkawesome == 1 %}
<script type="text/javascript" src="{{ asset('build/forkawesome.js') }}"></script>
{% endif %}
{% if active_ckeditor == 1 %}
<script type="text/javascript" src="{{ asset('build/ckeditor5.js') }}"></script>
{% endif %}
<script type="text/javascript"> <script type="text/javascript">
chill.initPikaday('{{ app.request.locale }}'); chill.initPikaday('{{ app.request.locale }}');
chill.emulateSticky(); chill.emulateSticky();
@ -160,7 +169,6 @@
$('.select2').select2({allowClear: true}); $('.select2').select2({allowClear: true});
chill.categoryLinkParentChildSelect(); chill.categoryLinkParentChildSelect();
</script> </script>
{% block js%}<!-- nothing added to js -->{% endblock %} {% block js%}<!-- nothing added to js -->{% endblock %}
</body> </body>
</html> </html>