[Rt-commit] rt branch, development, updated. 44e7fa9caaca81939eded8f04ea728a6c1848500
Thomas Sibley
trs at bestpractical.com
Mon Jul 19 16:01:26 EDT 2010
The branch, development has been updated
via 44e7fa9caaca81939eded8f04ea728a6c1848500 (commit)
from 32842079b5a8eaba4a601b6259892bb6d90e1809 (commit)
Summary of changes:
lib/RT/View/SetupWizard.pm | 28 +++++++++++++++++++++++++++-
1 files changed, 27 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 44e7fa9caaca81939eded8f04ea728a6c1848500
Author: Thomas Sibley <trs at bestpractical.com>
Date: Mon Jul 19 16:02:53 2010 -0400
Turn off Setup Mode on the last step and suggest other config
diff --git a/lib/RT/View/SetupWizard.pm b/lib/RT/View/SetupWizard.pm
index 075e707..70c3a7a 100644
--- a/lib/RT/View/SetupWizard.pm
+++ b/lib/RT/View/SetupWizard.pm
@@ -55,9 +55,10 @@ use base qw/ Jifty::Plugin::SetupWizard::View::Helpers /;
sub setup_page (&) {
my ($code) = @_;
page { title => "RT Setup Wizard" } content {
+ my $self = shift;
h1 { _("RT Setup Wizard") };
form {
- $code->();
+ $code->($self);
};
};
}
@@ -179,7 +180,32 @@ template 'basics' => sub {
};
template 'done' => setup_page {
+ my $self = shift;
+
h2 { _("Setup complete!") };
+
+ p {
+ _(<<'EOT');
+You probably want to turn off Setup Mode now and go see your new RT. You'll
+want to review the config generated for you in etc/site_config.yml and restart
+RT. Now would also be a good time to setup your mail server to hand off mail
+to RT.
+EOT
+ };
+
+ form_next_page( url => '/' );
+
+ my $action = $self->config_field(
+ field => 'SetupMode',
+ context => '/framework',
+ message => 'Setup Mode is now turned off.',
+ value_args => {
+ render_as => 'Hidden',
+ default_value => 0,
+ },
+ );
+
+ form_submit( label => 'Turn off Setup Mode and go to RT' );
};
1;
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list