all values must be arrays
[MojoFacets.git] / templates / admin.html.ep
1 <div class=admin>
2
3 <a href="<%= url_for( controller => 'data', action => 'index' ) %>">load</a>
4 <a href="<%= url_for( controller => 'data', action => 'columns' ) %>">columns</a>
5 &middot;
6 items:
7 % foreach my $show ( glob 'templates/data/items/*.html.ep' ) {
8 %  $show =~ s{^.+/([^/]+)\.html\.ep$}{$1};
9 %  my $class = session('show') eq $show ? 'class=active' : '';
10 <a href="<%= url_for( controller => 'data', action => 'items' )->query( show => $show ) %>" <%= $class %>><%= $show %></a>
11 % }
12
13 % if ( $self->can('_export_path') && glob $self->_export_path('*') ) {
14 &middot;
15 <a href="<%= url_for( controller => 'data', action => 'export' ) %>">export</a>
16 % }
17
18 <span class=middle>
19 </span>
20
21 <span class=right>
22
23 <a href="<%= url_for( controller => 'config', action => 'index' ) %>">config</a>
24 &middot;
25
26 <a href="<%= url_for( controller => 'actions', action => 'changes' ) %>">changes</a>
27 <a href="<%= url_for( controller => 'actions', action => 'index' ) %>">actions</a>
28
29 % if ( session('modified') ) {
30 %  my $path = session('path');
31 <a class=save_actions title="<%= $path %>" href="<%= url_for( controller => 'data', action => 'save', path => $path ) %>">save</a>
32 % }
33 </span>
34
35 </div>
36