From 92638f1c1332ce3d823923039fee2c1f5f0dd1e2 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Wed, 2 Jun 2010 22:44:32 +0200 Subject: [PATCH] added faceted links --- public/mojo_facets.css | 7 +++++++ templates/data/items/list.html.ep | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/public/mojo_facets.css b/public/mojo_facets.css index 13402f0..f267455 100644 --- a/public/mojo_facets.css +++ b/public/mojo_facets.css @@ -156,3 +156,10 @@ form.action_filter { font-family: monospace; color: #444; } + +/* items/list.html.ep */ +a.facet { + font-family: monospace; + color: #666; + text-decoration: none; +} diff --git a/templates/data/items/list.html.ep b/templates/data/items/list.html.ep index 2f5a75c..a99776e 100644 --- a/templates/data/items/list.html.ep +++ b/templates/data/items/list.html.ep @@ -5,7 +5,10 @@ % next unless defined $row->{$col}; % my $v = ref $row->{$col} eq 'ARRAY' ? join(', ',@{ $row->{$col} }) : $row->{$col}; % next if $v =~ m/^\s*$/; -
  • <%= $col %> <%= $v %> +
  • +% my $count = defined $filters->{$col} ? $#{ $filters->{$col} } + 1 : ''; +<%= $col %> +<%= $v %> % } % } -- 2.20.1