Fix album browser include.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 23 Sep 2011 22:39:30 +0000 (00:39 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 23 Sep 2011 22:39:30 +0000 (00:39 +0200)
src/main/resources/templates/imageBrowser.html
src/main/resources/templates/include/browseAlbums.html

index d0badcd..d97fc25 100644 (file)
                                </div>
                        <%/if>
 
-                       <%include include/browseAlbums.html>
+                       <%include include/browseAlbums.html albums=album.albums>
 
                        <%if album.sone.local>
                                <div class="show-create-album hidden toggle-link"><a class="small-link">» <%= View.CreateAlbum.Title|l10n|html></a></div>
 
                        <h1><%= Page.ImageBrowser.Sone.Title|l10n|replace needle='{sone}' replacementKey=sone.niceName|html></h1>
 
-                       <%include include/browseAlbums.html>
+                       <%include include/browseAlbums.html albums=sone.albums>
 
                        <%if sone.local>
                                <div class="show-create-album hidden toggle-link"><a class="small-link">» <%= View.CreateAlbum.Title|l10n|html></a></div>
index 752dd6d..b77bcd1 100644 (file)
@@ -1,4 +1,4 @@
-<%foreach album.albums album>
+<%foreach albums album>
        <%first><h2><%= Page.ImageBrowser.Header.Albums|l10n|html></h2><%/first>
        <%if loop.count|mod divisor=3><div class="album-row"><%/if>
        <div id="album-<% album.id|html>" class="album">