Use correct attribute to check for presence of album image.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 21 Sep 2011 05:49:16 +0000 (07:49 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 21 Sep 2011 05:49:16 +0000 (07:49 +0200)
src/main/resources/templates/imageBrowser.html

index c205877..3b36e03 100644 (file)
@@ -70,7 +70,7 @@
                        <%foreach album.albums album>
                                <div class="album image">
                                        <a href="imageBrowser.html?album=<% album.id|html>">
-                                               <%ifnull album.image>
+                                               <%ifnull album.albumImage>
                                                        <img src="images/unknown-image-0.png" width="200" height="150" alt="<% album.title|html>" title="<% album.title|html>" />
                                                <%else><!-- TODO -->
                                                        <% album.albumImage|image-link max-width=200 max-height=150 title==album.title>
                        <%foreach sone.albums album>
                                <div class="album image">
                                        <a href="imageBrowser.html?album=<% album.id|html>">
-                                               <%ifnull album.image>
+                                               <%ifnull album.albumImage>
                                                        <img src="images/unknown-image-0.png" width="200" height="150" alt="<% album.title|html>" title="<% album.title|html>" />
                                                <%else><!-- TODO -->
                                                        <% album.albumImage|image-link max-width=200 max-height=150 title==album.title>