Mail Index


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ApacheGallery] Text::Template instead of CGI::FastTemplate patch



On Fri, Jan 02, 2004 at 05:12:32AM -0800, Don Armstrong wrote:
> Attached is a bugfix for this patch (and a cleanup for two of the
> template files modified in 227) against revision 231.

Thanks - I'm working on it right now. There are a few problems with
the slideshow feature, but it's almost fixed.

/Michael

> Index: lib/Apache/Gallery.pm
> ===================================================================
> --- lib/Apache/Gallery.pm	(revision 231)
> +++ lib/Apache/Gallery.pm	(working copy)
> @@ -637,8 +636,10 @@
>  
>  		}
>  		else {
> -			$tpl_vars{PICTUREINFO} = 'nopictureinfo';
> -		}	
> +			$tpl_vars{PICTUREINFO} = fill_in_file($tpl_vars{nopictureinfo},
> +							      HASH => \%tpl_vars,
> +							     );
> +		}
>  
>  		my $scaleable = 0;
>  		foreach my $size (@sizes) {
> Index: templates/default/pictureinfo.tpl
> ===================================================================
> --- templates/default/pictureinfo.tpl	(revision 231)
> +++ templates/default/pictureinfo.tpl	(working copy)
> @@ -1,10 +1,10 @@
>  <td width="60%">
>            <center>
>              <table align="center" class="info">
> +              <tr>
> +                <td>
>  									{ $COMMENT }
>  									{ $INFO }
> -									{ $COMMENT }
> -									{ $INFO }
>                  </td>
>                </tr>
>              </table>
> Index: templates/default/file.tpl
> ===================================================================
> --- templates/default/file.tpl	(revision 231)
> +++ templates/default/file.tpl	(working copy)
> @@ -1 +1 @@
> -    <div id="folder"><a href="{ $FILEURL }"><img border="0" alt="{ $ALT }" src="/icons/gallery/{ $FILETYPE.png }"><br>{ $FILE }</a></div>
> +    <div id="folder"><a href="{ $FILEURL }"><img border="0" alt="{ $ALT }" src="/icons/gallery/{ $FILETYPE }.png"><br>{ $FILE }</a></div>
> Index: templates/new/file.tpl
> ===================================================================
> --- templates/new/file.tpl	(revision 231)
> +++ templates/new/file.tpl	(working copy)
> @@ -1 +1 @@
> -    <div class="folder"><a href="{ $FILEURL }"><img border="0" alt="{ $ALT }" src="/icons/gallery/{ $FILETYPE.png }"><br>{ $FILE }</a></div>
> +    <div class="folder"><a href="{ $FILEURL }"><img border="0" alt="{ $ALT }" src="/icons/gallery/{ $FILETYPE }.png "><br>{ $FILE }</a></div>



-- 
hestdesign.info - we put the hest in .com

Attachment: pgpxKM5PE1Env.pgp
Description: PGP signature