X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2Finclude%2FbrowseAlbums.html;h=61eb6654607445dd39a71acf113c30156d94a36d;hb=0d68d165ed66e86fd57f09c8cfb744ccd64ed36a;hp=d925a3cf4b9fb551284a333cc9b9d2e693ec07ae;hpb=43a21f859e9fec31096c1540148bdd44a8e3702f;p=Sone.git diff --git a/src/main/resources/templates/include/browseAlbums.html b/src/main/resources/templates/include/browseAlbums.html index d925a3c..61eb665 100644 --- a/src/main/resources/templates/include/browseAlbums.html +++ b/src/main/resources/templates/include/browseAlbums.html @@ -1,45 +1,20 @@ -<%foreach albums album> - <%first>

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

<%/first> - <%if loop.count|mod divisor=3>
<%/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>
- -
-
<% album.title|html> (<%= View.Sone.Stats.Images|l10n 0=album.images.size>)
-
<% album.description|html>
-
- <%if album.sone.local> -
- - - - - -
- <%/if> + <%include include/viewAlbum.html>
- <%= false|store key=endRow> - <%if loop.count|mod divisor=3 offset=1><%= true|store key=endRow><%/if> - <%last><%= true|store key=endRow><%/last> + <%= false|store key==endRow> + <%if loop.odd><%= true|store key==endRow><%/if> + <%last><%= true|store key==endRow><%/last> <%if endRow>
<%/if> + <%last> +
+ <%include include/pagination.html pageParameter=="albumPage"> + <%/last> <%/foreach>