Skip to content

Commit

Permalink
[xs] fix static files using h.url_for_static()
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Feb 29, 2012
1 parent 8919213 commit 8346d5d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions ckan/templates/package/resource_read.html
Expand Up @@ -13,8 +13,8 @@

<py:def function="optional_head">
<!-- data preview -->
<link rel="stylesheet" href="${h.url_for('/scripts/vendor/recline/css/data-explorer.css')}" />
<link rel="stylesheet" href="${h.url_for('/scripts/vendor/recline/css/graph-flot.css')}" />
<link rel="stylesheet" href="${h.url_for_static('/scripts/vendor/recline/css/data-explorer.css')}" />
<link rel="stylesheet" href="${h.url_for_static('/scripts/vendor/recline/css/graph-flot.css')}" />
<!-- /data preview -->
<script type="text/javascript">
var preload_resource = ${h.literal(c.resource_json)};
Expand Down Expand Up @@ -117,9 +117,9 @@ <h3>Additional Information</h3>

<py:def function="optional_footer">
<!-- data preview -->
<script type="text/javascript" src="${h.url_for('/scripts/vendor/jquery.mustache/jquery.mustache.js')}"></script>
<script type="text/javascript" src="${h.url_for('/scripts/vendor/flot/0.7/jquery.flot.js')}"></script>
<script src="${h.url_for('/scripts/vendor/recline/recline.js')}"></script>
<script type="text/javascript" src="${h.url_for_static('/scripts/vendor/jquery.mustache/jquery.mustache.js')}"></script>
<script type="text/javascript" src="${h.url_for_static('/scripts/vendor/flot/0.7/jquery.flot.js')}"></script>
<script src="${h.url_for_static('/scripts/vendor/recline/recline.js')}"></script>
</py:def>

<xi:include href="layout.html" />
Expand Down
4 changes: 2 additions & 2 deletions ckan/templates/user/login.html
Expand Up @@ -5,10 +5,10 @@

<py:def function="optional_head">
<!-- Simple OpenID Selector -->
<link rel="stylesheet" href="${h.url_for('/scripts/vendor/openid-selector/css/openid.css')}" />
<link rel="stylesheet" href="${h.url_for_script('/scripts/vendor/openid-selector/css/openid.css')}" />
</py:def>
<py:def function="optional_footer">
<script type="text/javascript" src="${h.url_for('/scripts/vendor/openid-selector/js/openid-jquery.js')}"></script>
<script type="text/javascript" src="${h.url_for_script('/scripts/vendor/openid-selector/js/openid-jquery.js')}"></script>
<script type="text/javascript">
$(document).ready(function() {
openid.init('openid_identifier');
Expand Down

0 comments on commit 8346d5d

Please sign in to comment.