From: David ‘Bombe’ Roden Date: Fri, 23 Sep 2011 22:39:30 +0000 (+0200) Subject: Fix album browser include. X-Git-Tag: 0.7^2~2^2~6 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=06259898e5fa6d06a3a7183e79985180b3112891;p=Sone.git Fix album browser include. --- diff --git a/src/main/resources/templates/imageBrowser.html b/src/main/resources/templates/imageBrowser.html index d0badcd..d97fc25 100644 --- a/src/main/resources/templates/imageBrowser.html +++ b/src/main/resources/templates/imageBrowser.html @@ -358,7 +358,7 @@ <%/if> - <%include include/browseAlbums.html> + <%include include/browseAlbums.html albums=album.albums> <%if album.sone.local> @@ -553,7 +553,7 @@

<%= Page.ImageBrowser.Sone.Title|l10n|replace needle='{sone}' replacementKey=sone.niceName|html>

- <%include include/browseAlbums.html> + <%include include/browseAlbums.html albums=sone.albums> <%if sone.local> diff --git a/src/main/resources/templates/include/browseAlbums.html b/src/main/resources/templates/include/browseAlbums.html index 752dd6d..b77bcd1 100644 --- a/src/main/resources/templates/include/browseAlbums.html +++ b/src/main/resources/templates/include/browseAlbums.html @@ -1,4 +1,4 @@ -<%foreach album.albums album> +<%foreach albums album> <%first>

<%= Page.ImageBrowser.Header.Albums|l10n|html>

<%/first> <%if loop.count|mod divisor=3>
<%/if>