Skip to content

Commit

Permalink
[#368] Refactor truncate in revisions table
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Mar 6, 2013
1 parent f9ad67d commit fdceaa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/templates/package/snippets/revisions_table.html
Expand Up @@ -18,7 +18,7 @@
{{ h.radio('selected2', rev.id, checked=(loop.last)) }}
</td>
<td class="dataset-label">
<a href="{{ h.url_for(controller='revision', action='read', id=rev.id) }}">{{rev.id[:4]}}&#8230;</a>
{% link_for rev.id | truncate(6), controller='revision', action='read', id=rev.id %}
</td>
<td class="dataset-details">
<a href="{{ h.url_for(controller='package', action='read',id='%s@%s' % (pkg_dict.name, rev.timestamp))}}" title="{{_('Read dataset as of %s') % rev.timestamp }}">{{ h.render_datetime(rev.timestamp, with_hours=True) }}</a>
Expand Down

0 comments on commit fdceaa0

Please sign in to comment.