Skip to content
This repository was archived by the owner on Apr 12, 2020. It is now read-only.

Commit 9a64c93

Browse files
author
Alexandre Salomé
committed
Merge pull request #4 from francisbesset/fixed_assets
Used app.request.basepath to add assets
2 parents d49737a + e9b0bc6 commit 9a64c93

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Gitonomy/Browser/Resources/views/layout.html.twig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
<html>
33
<head>
44
<title>{% block title '' %}</title>
5-
<link rel="stylesheet" href="/css/git/log.css" />
6-
<link rel="stylesheet" href="/css/layout.css" />
5+
<link rel="stylesheet" href="{{ app.request.basepath }}/css/git/log.css" />
6+
<link rel="stylesheet" href="{{ app.request.basepath }}/css/layout.css" />
77
</head>
88
<body>
99
<div class="gitonomy-browser">
1010
<h1><a href="{{ path('repositories') }}">gitonomy browser</a></h1>
1111
<hr />
1212
{% block content '' %}
1313
<hr />
14-
<script type="text/javascript" src="/vendor/jquery-1.9.0.min.js"></script>
15-
<script type="text/javascript" src="/js/log.js"></script>
14+
<script type="text/javascript" src="{{ app.request.basepath }}/vendor/jquery-1.9.0.min.js"></script>
15+
<script type="text/javascript" src="{{ app.request.basepath }}/js/log.js"></script>
1616
</div>
1717
</body>
1818
</html>

0 commit comments

Comments
 (0)