Show a random image from an album instead of the album image
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 23 Jun 2016 18:14:52 +0000 (20:14 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 23 Jun 2016 18:14:52 +0000 (20:14 +0200)
src/main/resources/templates/imageBrowser.html
src/main/resources/templates/include/browseAlbums.html

index 7dd4c29..c49c633 100644 (file)
                                                <%ifnull album.albumImage>
                                                        <img src="images/unknown-image-0.png" width="333" height="250" alt="<% album.title|html> (<%album.sone.niceName|html>)" title="<% album.title|html> (<%album.sone.niceName|html>)" style="position: relative; top: 0px; left: -41px;" />
                                                <%else><!-- TODO -->
-                                                       <% album.albumImage|image-link max-width==250 max-height==250 mode==enlarge title=album.title>
+                                                       <% album.randomImage|image-link max-width==250 max-height==250 mode==enlarge title=album.title>
                                                <%/if>
                                        </a>
                                </div>
index 9aacad3..a22505f 100644 (file)
@@ -8,7 +8,7 @@
                                <%ifnull album.albumImage>
                                        <img src="images/unknown-image-0.png" width="333" height="250" alt="<% album.title|html>" title="<% album.title|html>" style="position: relative; top: 0px; left: -41px;" />
                                <%else><!-- TODO -->
-                                       <% album.albumImage|image-link max-width==250 max-height==250 mode==enlarge title=album.title>
+                                       <% album.randomImage|image-link max-width==250 max-height==250 mode==enlarge title=album.title>
                                <%/if>
                        </a>
                </div>