edit will just mark stats invalid by modified == 2
[MojoFacets.git] / templates / admin.html.ep
index 9dc92f0..b0aea4c 100644 (file)
@@ -9,10 +9,18 @@ items:
 <a href="<%= url_for( controller => 'data', action => 'items' )->query( show => $show ) %>" <%= $class %>><%= $show %></a>
 % }
 
-% if ( my $path = session('save_path') ) {
-<a class=save_changes title="<%= $path %>" href="<%= url_for( controller => 'data', action => 'save', path => $path ) %>">save</a>
+<span class=actions>
+
+% if ( session('modified') ) {
+%  my $path = session('path');
+<a class=save_actions title="<%= $path %>" href="<%= url_for( controller => 'data', action => 'save', path => $path ) %>">save</a>
+% }
+% if ( $self->can('_export_path') && glob $self->_export_path('*') ) {
+<a href="<%= url_for( controller => 'data', action => 'export' ) %>">export</a>
 % }
-<a class=changes href="<%= url_for( controller => 'changes', action => 'index' ) %>">changes</a>
+<a href="<%= url_for( controller => 'actions', action => 'changes' ) %>">changes</a>
+<a href="<%= url_for( controller => 'actions', action => 'index' ) %>">actions</a>
+</span>
 
 </div>