X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2Finclude%2FbrowseAlbums.html;h=4961e74300662b724d40820fe8181443fc1bc87f;hb=a404c9c2b1908f4b9181d8e60f11b846812757fb;hp=b77bcd145cda8989ad4bb9f86b1e2eebee319d34;hpb=38cb6c5ec82298ee351d0eb15ddd8331db273af2;p=Sone.git diff --git a/src/main/resources/templates/include/browseAlbums.html b/src/main/resources/templates/include/browseAlbums.html index b77bcd1..4961e74 100644 --- a/src/main/resources/templates/include/browseAlbums.html +++ b/src/main/resources/templates/include/browseAlbums.html @@ -1,45 +1,47 @@ -<%foreach albums album> - <%first>

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

<%/first> - <%if loop.count|mod divisor=3>
<%/if> -
- -
- - <%ifnull album.albumImage> - <% album.title|html> - <%else> - <% album.albumImage|image-link max-width=250 max-height=250 mode=enlarge title==album.title> - <%/if> - +<%foreach albums album|paginate pageSize=core.preferences.imagesPerPage page=albumPage> + <%first> +

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

+ <%include include/pagination.html pageParameter=="albumPage"> +
+ <%/first> + <%if loop.even>
<%/if> +
+ + <%include include/viewAlbum.html>
-
-
<% album.title|html>
-
<% album.description|html>
+ <%= false|store key==endRow> + <%if loop.odd><%= true|store key==endRow><%/if> + <%last><%= true|store key==endRow><%/last> + <%if endRow>
<%/if> + <%last>
- <%if album.sone.local> -
- - - + <%include include/pagination.html pageParameter=="albumPage"> + <%/last> + + <%if album.sone.local> + + + + + +
+ + +
-
<%/if> +
+ +
+
+ + + +
+
+ + <%/if> <%/foreach>