Skip to content

Commit

Permalink
[master][html] Altered facet_sidebar function to have use a custom ti…
Browse files Browse the repository at this point in the history
…tle for the facet header
  • Loading branch information
Ian Murray committed Jan 25, 2012
1 parent 3f7d4a5 commit f878ffe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/templates/facets.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
py:strip=""
>

<py:def function="facet_sidebar(code, limit=5, label=lambda n: n)">
<py:def function="facet_sidebar(code, limit=5, label=lambda n: n, title=h.facet_title)">
<div py:if="len(h.facet_items(c, code, limit=limit))" class="facet-box">
<h2>${h.facet_title(code)}</h2>
<h2>${title(code)}</h2>
<ul class="facet-options">
<li py:for="name, count in h.facet_items(c, code, limit=limit)"
py:if="not (code, name) in c.fields">
Expand Down

0 comments on commit f878ffe

Please sign in to comment.