Fixed missing $thmb for .photo. Enlarged photo display to 640px

This commit is contained in:
Knut Forkalsrud 2009-01-12 00:35:12 -08:00
parent c4edb58cab
commit 0771d77e2c
3 changed files with 6 additions and 1 deletions

View file

@ -93,6 +93,7 @@ public class AlbumServlet
try {
res.setContentType("text/html");
req.setAttribute("entry", entry);
req.setAttribute("thmb", new Integer(640));
RequestDispatcher rd = req.getRequestDispatcher("/WEB-INF/velocity/photo.vm");
rd.forward(req, res);
} catch (Exception ex) {

View file

@ -0,0 +1,5 @@
velocimacro.permissions.allow.inline=true
velocimacro.permissions.allow.inline.to.replace.global=false
velocimacro.permissions.allow.inline.local.scope=true
velocimacro.context.localscope=false
velocimacro.library.autoreload=true

View file

@ -53,7 +53,6 @@
<hr/>
#if($entry.isFile())
#set($thmb = 480)
#set($dim = $entry.thumbnail.size.scaled($thmb))
#set($thpath = $mapper.map(${entry.thumbnail.getPath()}))
#set($enpath = $mapper.map(${entry.getPath()}))