Skip to content

Commit

Permalink
[2375] Add "clear all" button to facet headings
Browse files Browse the repository at this point in the history
  • Loading branch information
aron committed May 14, 2012
1 parent 2d130eb commit 02efd52
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions ckan/public/base/less/module.less
Expand Up @@ -17,6 +17,13 @@
#gradient > .vertical(@module-heading-background-color-start, @module-heading-background-color-end);
}

.module > .heading .btn {
float: right;
position: relative;
top: 4px;
right: -20px;
}

.module > .content {
padding: @module-margin-y @module-margin-x;
}
Expand Down
2 changes: 1 addition & 1 deletion ckan/templates/snippets/facet_list.html
Expand Up @@ -24,7 +24,7 @@
-->
<section class="module" xmlns:py="http://genshi.edgewall.org/" py:with="items=h.unselected_facet_items(name, 10)">
<h2 class="heading">${h.facet_title(title)}</h2>
<h2 class="heading">${h.facet_title(title)} <a class="btn btn-small">Clear All</a></h2>
<nav>
<ul class="unstyled nav nav-simple">
<py:for each="item in items">
Expand Down

0 comments on commit 02efd52

Please sign in to comment.