X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=templates%2Fdata%2Ffacet.html.ep;h=65d316f213a999f52cf8dfc875b21b3da08688b9;hb=a13ac2b2860144d8dc70b768dcc49aab5f13900e;hp=943b16b76aeec0690a6eaed8587d664bdcd39d11;hpb=dd94053ca40642c627077aadfed0ad7fb28ba070;p=MojoFacets.git diff --git a/templates/data/facet.html.ep b/templates/data/facet.html.ep index 943b16b..65d316f 100644 --- a/templates/data/facet.html.ep +++ b/templates/data/facet.html.ep @@ -1,49 +1,98 @@ % layout 'ui'; -<%#= dumper $facet %> -
+ -sort: - -% if ( $sort eq 'c' ) { -count -% } else { -count +% if ( $#$facet_names < 5000 ) { + % } + -% if ( $sort eq 'a' ) { -ascending -% } else { -asceding +% if ( $#$facet_names < 100 ) { +<%#= dumper $facet %>% } -% if ( $sort eq 'd' ) { -desceding -% } else { -desceding -% } + -<%= $numeric ? 'numeric' : '' %>