Skip to content

Commit

Permalink
2442 localise popular in dataset read
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed May 29, 2012
1 parent c501374 commit ec0f081
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/templates/package/read.html
Expand Up @@ -42,8 +42,8 @@ <h3>Data and Resources</h3>
<li class="resource-item" py:for="res in c.pkg_dict.resources" py:with="url=h.url_for(controller='package', action='resource_read', id=c.pkg_dict['name'], resource_id=res['id'])">
<a class="heading" href="${url}" title="${res.name or res.description}">
${h.truncate(h.resource_display_name(res), 50)}<span class="format-label" property="dc:format" data-format="${res.format.lower() or 'data'}">${res.format}</span>
<!--! TODO: Correctly pass localised views into this snippet -->
<py:if test="True" py:with="title=('%s views' % 10)">${h.snippet('snippets/popular.html', title=title)}</py:if>
<!--! TODO: Use tracking data -->
<py:if test="True" >${h.snippet('snippets/popular.html', title=_('{num} views').format(num=10))}</py:if>
</a>
<p class="description">
<py:choose test="">
Expand Down

0 comments on commit ec0f081

Please sign in to comment.