<%init> # Set up application-specific parts my $ApplicationClass = Jifty->config->framework('ApplicationClass'); my @models; # This creates a sub "jifty_app_models" which when called, finds packages under # $ApplicationClass::Model, requires them, and returns a list of their # names. Module::Pluggable->import( require => 1, except => qr/\.#/, search_path => [ $ApplicationClass . "::Model" ], sub_name => 'jifty_app_models', ); for my $model ( __PACKAGE__->jifty_app_models ) { # We don't want to get the Collections, or models that have a # 'since' that is after the current application version. # TODO XXX FIXME: # This *will* try to generate SQL for abstract base classes you might # stick in $AC::Model::. next unless $model->isa( 'Jifty::Record' ); next if $model =~ /::SUPER$/; push @models, $model; } <&|/_elements/wrapper, title => 'Jifty Administrative Console' &>

<%_('Database Administration')%>

<%_('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.')%>

<%_(q{To disable this administrative console, add "framework: AdminMode: 0" to your application's configuration file.})%>

<%_('Models')%>

<%_('Actions')%>

Done?

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