From c4145f98b533695651376fb98239b011a7721926 Mon Sep 17 00:00:00 2001 From: Doug Bell Date: Tue, 27 Apr 2010 11:01:07 -0500 Subject: [PATCH] changed wizard style, fixed some bugs --- lib/WebGUI/Wizard/HomePage.pm | 12 ++++++++++-- lib/WebGUI/Wizard/Setup.pm | 21 +++++++++++++++++---- 2 files changed, 27 insertions(+), 6 deletions(-) diff --git a/lib/WebGUI/Wizard/HomePage.pm b/lib/WebGUI/Wizard/HomePage.pm index cb5f24806..2884ae7f9 100644 --- a/lib/WebGUI/Wizard/HomePage.pm +++ b/lib/WebGUI/Wizard/HomePage.pm @@ -104,12 +104,19 @@ sub www_pickStyle { push @styles, $style; } + my $row = 0; for my $style ( sort { $a->getTitle cmp $b->getTitle } @styles ) { + my $class = ++$row % 2 ? " odd" : ""; + + # Prepare the synopsis + my $synopsis = WebGUI::HTML::format( $style->get('synopsis') ); + $synopsis =~ s{(https?://\S+)}{$1}g; + $f->raw( - '