<&| /_elements/wrapper, title => _('Jifty Administrative Console') &>

<h1><% _('Database Administration') %></h1>

<p><% _('This console lets you manage the records in your Jifty database. Below, you should see a list of all your database tables. Feel free to go through and add, delete or modify records.') %></p>

<p><% _('To disable this administrative console, add "AdminMode: 0" under the "framework:" settings in the config file (etc/config.yml).') %></p>
    
<h2><% _('Models') %></h2>
<ul>
% foreach my $model (Jifty->class_loader->models) {
% next unless $model->isa('Jifty::Record');
% next unless ($model =~ /^(?:.*)::(.*?)$/);
% my $type = $1;
<li><% Jifty->web->link( url => '/__jifty/admin/model/'.$type, label => $type)%>
%}
</ul>

<h2><% _('Actions') %></h2>
<ul>
% foreach my $action (Jifty->api->visible_actions) {
% next unless (Jifty::Util->try_to_require($action));
% next if ( Jifty::ClassLoader->autogenerated($action) );
<li><% Jifty->web->link( url => '/__jifty/admin/action/'.$action, label => $action) %></li>
% }
</ul>

<h2><% _('Done?') %></h2>
<% Jifty->web->return( to => "/", label => _('Back to the application')) %>

</&>