Skip to content
Browse files

Edited Resources/views/layout.html.twig via GitHub

  • Loading branch information...
1 parent a05fea1 commit 93498bbd8ba4906ade1e79bc2d957d138708f3a8 @brikou committed
Showing with 10 additions and 6 deletions.
  1. +10 −6 Resources/views/layout.html.twig
View
16 Resources/views/layout.html.twig
@@ -7,9 +7,11 @@
<meta content="Chess, Chess game, play Chess, online Chess, free Chess, quick Chess, anonymous Chess, opensource, PHP, JavaScript, artificial intelligence" name="keywords">
<meta content="{% block robots %}index, follow{% endblock %}" name="robots">
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
+
{% block stylesheets %}
- <link href="/bundles/lichess/css/common.css{{ lichess_assetsVersion() }}" type="text/css" rel="stylesheet" />
+ <link rel="stylesheet" type="text/css" href="{{ asset('bundles/lichess/css/common.css') }}" />
{% endblock %}
+
</head>
<body data-sound-enabled="{{ lichess_session('lichess.sound.enabled') ? 'on' : 'off' }}" data-sound-file="{{ asset('bundles/lichess/sound/alert.ogg') }}">
{% include "LichessBundle::top.html.twig" with {"active": block("menu_active")} %}
@@ -48,12 +50,14 @@
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
{% endif %}
- <script>!window.jQuery && document.write(unescape('%3Cscript src="/bundles/lichess/vendor/jquery.min.js{{ lichess_assetsVersion() }}"%3E%3C/script%3E'))</script>
- <script>!jQuery.ui && document.write(unescape('%3Cscript src="/bundles/lichess/vendor/jquery-ui.min.js{{ lichess_assetsVersion() }}"%3E%3C/script%3E'))</script>
+
+ <script>!window.jQuery && document.write(unescape('%3Cscript src="{{ asset('bundles/lichess/vendor/jquery.min.js') }}"%3E%3C/script%3E'))</script>
+ <script>!jQuery.ui && document.write(unescape('%3Cscript src="{{ asset('bundles/lichess/vendor/jquery-ui.min.js') }}"%3E%3C/script%3E'))</script>
{% block javascripts %}
- <script src="/bundles/lichess/js/tipsy.min.js{{ lichess_assetsVersion() }}"></script>
- <script src="/bundles/lichess/js/bundles.js{{ lichess_assetsVersion() }}"></script>
- <script src="/bundles/lichess/js/ctrl.js{{ lichess_assetsVersion() }}"></script>
+ <script type="text/javascript" src="{{ asset('bundles/lichess/js/tipsy.min.js') }}"></script>
+ <script type="text/javascript" src="{{ asset('bundles/lichess/js/bundles.js') }}"></script>
+ <script type="text/javascript" src="{{ asset('bundles/lichess/js/ctrl.js') }}"></script>
{% endblock %}
+
</body>
</html>

0 comments on commit 93498bb

Please sign in to comment.
Something went wrong with that request. Please try again.