store show in session and show current one
[MojoFacets.git] / templates / admin.html.ep
index b5ddc48..a8f9526 100644 (file)
@@ -5,7 +5,11 @@
 items:
 % foreach my $show ( glob 'templates/data/items/*.html.ep' ) {
 %  $show =~ s{^.+/([^/]+)\.html\.ep$}{$1};
+%  if ( session('show') eq $show ) {
+<%= $show %>
+%  } else {
 <a href="<%= url_for( action => 'items' )->query( show => $show ) %>"><%= $show %></a>
+%  }
 % }
 
 </div>