Navigation Menu

Skip to content

Commit

Permalink
Show facets only if it is available
Browse files Browse the repository at this point in the history
  • Loading branch information
darashi committed Aug 15, 2012
1 parent e6e64d6 commit ae883db
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions views/search.jade
Expand Up @@ -27,11 +27,12 @@ block content
!{record.data.desc}

.span3
.well(style="padding: 8px 0;")
ul.nav.nav-list
each facet, index in path_facets
li
a
= facet.value
|
span.badge.badge-info= facet.count
if path_facets.length > 0
.well(style="padding: 8px 0;")
ul.nav.nav-list
each facet, index in path_facets
li
a
= facet.value
|
span.badge.badge-info= facet.count

0 comments on commit ae883db

Please sign in to comment.