X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2Finclude%2FbrowseAlbums.html;h=10de318a9a5f57ac0b54362552e063fd4dbf5f63;hb=2f076637a0285be930645de449b2d5f70c7c9368;hp=cb9abbacc76fe18cce84eca8531f195c4bc1fb14;hpb=7d5aff5d52afa5d9725ce252c846b1aca6f1a761;p=Sone.git diff --git a/src/main/resources/templates/include/browseAlbums.html b/src/main/resources/templates/include/browseAlbums.html index cb9abba..10de318 100644 --- a/src/main/resources/templates/include/browseAlbums.html +++ b/src/main/resources/templates/include/browseAlbums.html @@ -1,50 +1,47 @@ -<%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|parse sone=album.sone>
+ <%include include/viewAlbum.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>