Use image link filter to generate album image.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 21 Sep 2011 05:47:51 +0000 (07:47 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 21 Sep 2011 05:47:51 +0000 (07:47 +0200)
src/main/resources/templates/imageBrowser.html

index 7e93f76..45836db 100644 (file)
@@ -73,7 +73,7 @@
                                                <%ifnull album.image>
                                                        <img src="images/unknown-image-0.png" width="200" height="150" alt="<% album.title|html>" title="<% album.title|html>" />
                                                <%else><!-- TODO -->
-                                                       <img src="images/unknown-image-0.png" width="200" height="150" alt="<% album.title|html>" title="<% album.title|html>" />
+                                                       <% album.albumImage|image-link max-width=200 max-height=150 title==album.title>
                                                <%/if>
                                        </a>
                                </div>
                                                <%ifnull album.image>
                                                        <img src="images/unknown-image-0.png" width="200" height="150" alt="<% album.title|html>" title="<% album.title|html>" />
                                                <%else><!-- TODO -->
-                                                       <img src="images/unknown-image-0.png" width="200" height="150" alt="<% album.title|html>" title="<% album.title|html>" />
+                                                       <% album.albumImage|image-link max-width=200 max-height=150 title==album.title>
                                                <%/if>
                                        </a>
                                </div>