added /data/export
[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 items:
6 % foreach my $show ( glob 'templates/data/items/*.html.ep' ) {
7 %  $show =~ s{^.+/([^/]+)\.html\.ep$}{$1};
8 %  my $class = session('show') eq $show ? 'class=active' : '';
9 <a href="<%= url_for( controller => 'data', action => 'items' )->query( show => $show ) %>" <%= $class %>><%= $show %></a>
10 % }
11
12 <span class=changes>
13
14 % if ( my $path = session('save_path') ) {
15 <a class=save_changes title="<%= $path %>" href="<%= url_for( controller => 'data', action => 'save', path => $path ) %>">save</a>
16 % }
17 % if ( $self->can('_export_path') && glob $self->_export_path('*') ) {
18 <a href="<%= url_for( controller => 'data', action => 'export' ) %>">export</a>
19 % }
20 <a href="<%= url_for( controller => 'changes', action => 'edits' ) %>">edits</a>
21 <a href="<%= url_for( controller => 'changes', action => 'index' ) %>">changes</a>
22 </span>
23
24 </div>
25