From: David ‘Bombe’ Roden Date: Thu, 23 Jun 2016 18:14:52 +0000 (+0200) Subject: Show a random image from an album instead of the album image X-Git-Tag: 0.9.5^2~27 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=3a86d8894d306039e8d523763420350997fafa2e Show a random image from an album instead of the album image --- diff --git a/src/main/resources/templates/imageBrowser.html b/src/main/resources/templates/imageBrowser.html index 7dd4c29..c49c633 100644 --- a/src/main/resources/templates/imageBrowser.html +++ b/src/main/resources/templates/imageBrowser.html @@ -623,7 +623,7 @@ <%ifnull album.albumImage> <% album.title|html> (<%album.sone.niceName|html>) <%else> - <% 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> diff --git a/src/main/resources/templates/include/browseAlbums.html b/src/main/resources/templates/include/browseAlbums.html index 9aacad3..a22505f 100644 --- a/src/main/resources/templates/include/browseAlbums.html +++ b/src/main/resources/templates/include/browseAlbums.html @@ -8,7 +8,7 @@ <%ifnull album.albumImage> <% album.title|html> <%else> - <% 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>