X-Git-Url: http://git.rot13.org/?p=MojoFacets.git;a=blobdiff_plain;f=templates%2Fadmin.html.ep;h=0cfb3789fbfb5342bc36bc76f4ef7c7a8a15a60c;hp=a8f9526d2ec0192fc8fac1fdae55fac4b16d9d63;hb=HEAD;hpb=4f1b2fd2f45b995eab30447c050dac748a54b2d3
diff --git a/templates/admin.html.ep b/templates/admin.html.ep
index a8f9526..0cfb378 100644
--- a/templates/admin.html.ep
+++ b/templates/admin.html.ep
@@ -1,16 +1,72 @@
-
load
-
columns
+% if ( my $datasets = stash('datasets' ) ) {
+
+
+% } else {
+
<%= session('path') %>
+% }
+
+
load
+
columns
+·
items:
% foreach my $show ( glob 'templates/data/items/*.html.ep' ) {
% $show =~ s{^.+/([^/]+)\.html\.ep$}{$1};
-% if ( session('show') eq $show ) {
-<%= $show %>
-% } else {
-
<%= $show %>
-% }
+% my $class = session('show') eq $show ? 'class=active' : '';
+
><%= $show %>
% }
+% if ( $self->can('_export_path') && glob $self->_export_path('*') ) {
+·
+
export
+% }
+
+·
+
code
+
console
+
+% if ( my $id = stash('nytprof.id') ) {
+·
+
profile
+% }
+
+
+
+
+
+
+config
+·
+
+changes
+actions
+
+% my $visible_class = session('modified') ? '' : 'hide';
+% my $path = session('path');
+
+·
+save
+
+
+
+