[vhffs-dev] [793] Welcome message is now less laconic

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 793
Author:   gradator
Date:     2007-08-29 02:43:19 +0000 (Wed, 29 Aug 2007)

Log Message:
-----------
Welcome message is now less laconic

Modified Paths:
--------------
    trunk/vhffs-api/src/Vhffs/Panel/Main.pm
    trunk/vhffs-panel/panel.pl
    trunk/vhffs-panel/templates/misc/welcome.tmpl


Modified: trunk/vhffs-api/src/Vhffs/Panel/Main.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Panel/Main.pm	2007-08-29 01:25:07 UTC (rev 792)
+++ trunk/vhffs-api/src/Vhffs/Panel/Main.pm	2007-08-29 02:43:19 UTC (rev 793)
@@ -464,16 +464,18 @@
     $self->{infos} = [];
 }
 
-sub right_first
+sub welcome
 {
-	my ( $class , $vhffs , $session , $user ) = @_;
+	my $panel = shift;
+	my $vhffs = $panel->{'vhffs'};
+	my $user = $panel->{'user'};
+	my $templatedir = $panel->{'templatedir'};
 
-	my $templatedir = $vhffs->get_config->get_templatedir;
+	$panel->set_title( sprintf( gettext('Hello %s, welcome in VHFFS !'), $user->get_username() ) );
+
 	my $template = new HTML::Template( filename => $templatedir."/panel/misc/welcome.tmpl" );
+	$template->param( TEXT_WELCOME => gettext("If you are new to VHFFS, you should start to read quickly the whole help available by clicking on the buoy button on the upper right of the screen") );
 
-	$template->param( TEXT_WELCOME => gettext("Welcome") );
-	$template->param( USERNAME => $user->get_username() );
-
 	return $template;
 }
 

Modified: trunk/vhffs-panel/panel.pl
===================================================================
--- trunk/vhffs-panel/panel.pl	2007-08-29 01:25:07 UTC (rev 792)
+++ trunk/vhffs-panel/panel.pl	2007-08-29 02:43:19 UTC (rev 793)
@@ -105,7 +105,7 @@
 	}
 	else
 	{
-		$template = right_first Vhffs::Panel::Main($vhffs , $session , $user);
+		$template = $panel->welcome;
 	}
 }
 

Modified: trunk/vhffs-panel/templates/misc/welcome.tmpl
===================================================================
--- trunk/vhffs-panel/templates/misc/welcome.tmpl	2007-08-29 01:25:07 UTC (rev 792)
+++ trunk/vhffs-panel/templates/misc/welcome.tmpl	2007-08-29 02:43:19 UTC (rev 793)
@@ -1,3 +1 @@
-		<h1 class="message">
-			<tmpl_var name="TEXT_WELCOME"> <tmpl_var name="USERNAME"> !
-		</h1>
+<tmpl_var name="TEXT_WELCOME">


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/