Show links to images like links to albums.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 25 Mar 2011 23:41:09 +0000 (00:41 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 25 Mar 2011 23:41:09 +0000 (00:41 +0100)
src/main/resources/templates/imageBrowser.html

index 53126a8..bc1cb72 100644 (file)
 
                        <%foreach album.albums album>
                                <div class="album">
-                                       <div class="image">
-                                               <a href="imageBrowser.html?album=<% album.id|html>">
-                                                       <%ifnull album.image>
-                                                               <img src="images/unknown-image-0.png" width="200" height="150" alt="<% album.name|html>" title="<% album.name|html>" />
-                                                       <%else><!-- TODO -->
-                                                               <img src="images/unknown-image-0.png" width="200" height="150" alt="<% album.name|html>" title="<% album.name|html>" />
-                                                       <%/if>
-                                               </a>
-                                       </div>
+                                       <a href="imageBrowser.html?album=<% album.id|html>">
+                                               <%ifnull album.image>
+                                                       <img src="images/unknown-image-0.png" width="200" height="150" alt="<% album.name|html>" title="<% album.name|html>" />
+                                               <%else><!-- TODO -->
+                                                       <img src="images/unknown-image-0.png" width="200" height="150" alt="<% album.name|html>" title="<% album.name|html>" />
+                                               <%/if>
+                                       </a>
+                               </div>
+                       <%/foreach>
+
+                       <%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>
+                                       </a>
                                </div>
                        <%/foreach>