Skip to content

Commit

Permalink
fix template to use h.url_for_static()
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Feb 20, 2012
1 parent e67cbef commit 5886a53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/templates/package/layout.html
Expand Up @@ -12,7 +12,7 @@
<py:choose>
<py:when test="len(c.pkg_dict.get('resources', []))==0">
<li class="disabled">
${h.icon('package-disabled') + _('Resources')} &nbsp;&nbsp;<img class="dropdown-arrow" src="${h.url_for('/images/icons/arrow-open.gif')}"/>
${h.icon('package-disabled') + _('Resources')} &nbsp;&nbsp;<img class="dropdown-arrow" src="${h.url_for_static('/images/icons/arrow-open.gif')}"/>
</li>
</py:when>
<py:otherwise>
Expand All @@ -27,7 +27,7 @@
<div class="dropdown-appears"><div class="white-box"></div></div>
<a href="${h.url_for(controller='package', action='resource_read', id=c.pkg_dict['name'], resource_id=c.pkg_dict.get('resources', [])[0]['id'])}">
${h.icon('package') + _('Resources')}</a>
&nbsp;&nbsp;<img class="dropdown-arrow" src="${h.url_for('/images/icons/arrow-open.gif')}"/>
&nbsp;&nbsp;<img class="dropdown-arrow" src="${h.url_for_static('/images/icons/arrow-open.gif')}"/>

</li>
</py:otherwise>
Expand Down

0 comments on commit 5886a53

Please sign in to comment.