5d01f8ecfcdb235d771d84ea529e50f8ae549732
[MojoFacets.git] / templates / admin.html.ep
1 <div class=admin>
2
3 <a href="<%= url_for( controller => 'data', action => 'index', id => 0 ) %>">load</a>
4 <a href="<%= url_for( controller => 'data', action => 'columns', id => 0 ) %>">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', id => $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', id => 0 ) %>">export</a>
16 % }
17
18 &middot;
19 <a id=code href="<%= url_for( controller => 'code', action => 'index', id => 0 ) %>">code</a>
20 <a id=console href="#" style="display:none">console</a>
21
22 % if ( my $id = stash('nytprof.id') ) {
23 &middot;
24 <a href="<%= url_for( controller => 'profile', action => 'index', id => $id ) %>">profile</a>
25 % }
26
27 <span class=middle>
28 </span>
29
30 <span class=right>
31
32 <a href="<%= url_for( controller => 'config', action => 'index', id => 0 ) %>">config</a>
33 &middot;
34
35 <a href="<%= url_for( controller => 'changes', action => 'index', id => 0 ) %>">changes</a>
36 <a href="<%= url_for( controller => 'actions', action => 'index', id => 0 ) %>">actions</a>
37
38 % if ( session('modified') ) {
39 %  my $path = session('path');
40 &middot;
41 <a class=save_actions title="<%= $path %>" href="<%= url_for( controller => 'data', action => 'save', id => $path ) %>">save</a>
42 % }
43 </span>
44
45 </div>
46