Skip to content

Commit

Permalink
2418 click removes chosen facet + remove duplicate facet error
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed May 24, 2012
1 parent 9f29ef8 commit 1934615
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ckan/templates/snippets/facet_list.html
Expand Up @@ -29,23 +29,24 @@ <h2 class="heading">${c.facet_titles.get(name)} <a href="${c.remove_field(name)}
<nav py:if="items">
<ul class="unstyled nav nav-simple nav-facet">
<py:for each="item in items">
<!--! I'd rather not do this but it seems to be the only way genshi is happy -->
<py:choose test="">
<py:if test="item.active">
<li class="active">
<a href="${c.drill_down_url(**{name: item.name})}">
<a href="${c.remove_field(name, item.name)}">
${label_function(item) if vars().has_key('label_function') else h.truncate(item.display_name, 22)}
${count_label(item['count']) if vars().has_key('count_label') else ('(%d)' % item['count'])}
</a>
</li>
</py:if>
<py:otherwise>
<py:if test="not item.active">
<li>
<a href="${c.drill_down_url(**{name: item.name})}">
${label_function(item) if vars().has_key('label_function') else h.truncate(item.display_name, 22)}
${count_label(item['count']) if vars().has_key('count_label') else ('(%d)' % item['count'])}
</a>
</li>
</py:if>
</py:otherwise>
</py:choose>
</py:for>
Expand Down

0 comments on commit 1934615

Please sign in to comment.