rename changes to actions
[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=actions>
13
14 % if ( session('modified') ) {
15 %  my $path = session('path');
16 <a class=save_actions title="<%= $path %>" href="<%= url_for( controller => 'data', action => 'save', path => $path ) %>">save</a>
17 % }
18 % if ( $self->can('_export_path') && glob $self->_export_path('*') ) {
19 <a href="<%= url_for( controller => 'data', action => 'export' ) %>">export</a>
20 % }
21 <a href="<%= url_for( controller => 'actions', action => 'edits' ) %>">edits</a>
22 <a href="<%= url_for( controller => 'actions', action => 'index' ) %>">actions</a>
23 </span>
24
25 </div>
26