Skip to content

Commit

Permalink
#[2375] bug fix 2
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Aug 1, 2012
1 parent a555231 commit 275151c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/templates/snippets/package_list.html
Expand Up @@ -29,7 +29,7 @@
<div class="dataset-content">
<h3 class="dataset-heading">
{{ h.link_to(h.truncate(title, truncate_title), h.url_for(controller='package', action='read', id=package.get('name'))) }}
{% if package.state.startswith('draft') %}
{% if package.get(state, '').startswith('draft') %}
[{{ _('Draft') }}]
{% endif %}
{{ h.popular('recent views', package.tracking_summary.recent, min=10) if package.tracking_summary }}
Expand Down

0 comments on commit 275151c

Please sign in to comment.