Display images in image browser.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 10 Apr 2011 18:16:40 +0000 (20:16 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 13 Apr 2011 04:41:04 +0000 (06:41 +0200)
src/main/resources/templates/imageBrowser.html

index 72fd340..ea6fdec 100644 (file)
                        <%foreach album.images image>
                                <div class="image">
                                        <a href="imageBrowser.html?image=<%image.id|html>">
-                                               <%ifnull image.key>
-                                                       <img src="images/unknown-image-0.png" width="200" height="150" alt="<% image.title|html>" title="<% image.title|html>" />
-                                               <%else>
-                                                       <img src="images/unknown-image-0.png" width="200" height="150" alt="<% image.title|html>" title="<% image.title|html>" />
-                                               <%/if>
+                                               <% image|image-link max-width=200 max-height=150>
                                        </a>
                                </div>
                        <%/foreach>
 
        <%elseif imageRequested>
 
+               <%ifnull image>
+
+               <%else>
+
+                       <div class="image">
+                               <a href="imageBrowser.html?image=<%image.id|html>">
+                                       <% image|image-link max-width=200 max-height=150>
+                               </a>
+                       </div>
+
+               <%/if>
+
        <%elseif soneRequested>
 
                <%ifnull sone>