Skip to content

Commit

Permalink
[#817] Only shows title if it's truncated
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmartin committed Apr 24, 2013
1 parent 6131ec7 commit 87b3e80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/templates/snippets/facet_list.html
Expand Up @@ -61,7 +61,7 @@ <h2 class="module-heading">
{% set label_truncated = h.truncate(label, 22) if not label_function else label %}
{% set count = count_label(item['count']) if count_label else ('(%d)' % item['count']) %}
<li class="{{ nav_item_class or 'nav-item' }}{% if item.active %} active{% endif %}">
<a href="{{ href }}" title="{{ label }}">
<a href="{{ href }}" title="{{ label if label != label_truncated else '' }}">
<span>{{ label_truncated }} {{ count }}</span>
</a>
</li>
Expand Down

0 comments on commit 87b3e80

Please sign in to comment.