Skip to content

Commit 71ecf9a

Browse files
committed
Moved the Twig block from top to bottom in the body
1 parent ee6baf0 commit 71ecf9a

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ To get the diff for a specific change, go to https://github.com/LIN3S/AdminBundl
66
To get the diff between two versions, go to https://github.com/LIN3S/AdminBundle/compare/v0.4.0...v0.5.0
77

88
* 0.6.0
9+
* Moved the `javascripts` Twig block from top to bottom in the body.
910
* Extracted panel independent Twig component.
1011
* Improved button component adding type parameter.
1112
* Full refactor of AdminBundle's JavaScript.

src/LIN3S/AdminBundle/Resources/views/layout.html.twig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@
2424
</head>
2525

2626
<body class="layout">
27-
{% block javascripts %}
28-
<script async defer src="{{ asset('bundles/lin3sadmin/js/bundle.min.js') }}"></script>
29-
{% include 'Lin3sAdminBundle:partial:javascripts.html.twig' %}
30-
{% endblock %}
31-
3227
{% block body %}
3328
<section class="layout__header">
3429
{% include 'Lin3sAdminBundle:partial:layout_header.html.twig' %}
@@ -71,5 +66,10 @@
7166
</main>
7267
</section>
7368
{% endblock %}
69+
70+
{% block javascripts %}
71+
<script async defer src="{{ asset('bundles/lin3sadmin/js/bundle.min.js') }}"></script>
72+
{% include 'Lin3sAdminBundle:partial:javascripts.html.twig' %}
73+
{% endblock %}
7474
</body>
7575
</html>

0 commit comments

Comments
 (0)