X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=templates%2Fdata%2Ffacet.html.ep;h=65d316f213a999f52cf8dfc875b21b3da08688b9;hb=a13ac2b2860144d8dc70b768dcc49aab5f13900e;hp=9ca61480afab1e5323b9712fa3adf2baacf850b4;hpb=24aa54e6d528c93266cd397b0fe188dc7e255708;p=MojoFacets.git diff --git a/templates/data/facet.html.ep b/templates/data/facet.html.ep index 9ca6148..65d316f 100644 --- a/templates/data/facet.html.ep +++ b/templates/data/facet.html.ep @@ -1,22 +1,98 @@ -% layout 'default'; - -<%#= dumper $facet %> +% layout 'ui';
+ +% my $checked_count = scalar keys %$checked; +% my $facet_count = $#{ $facet_names } + 1; +% if ( $checked_count ) { +% if ( $checked_count == $facet_count ) { +all +% } else { +<%= $checked_count %> +% } +% } else { +0 +% } +<%= $facet_count %> + + +<%= include 'all_checkboxes' %> + +<%= include 'sorting' %> -