szurubooru/client/html/pools_page.tpl

20 lines
815 B
Smarty
Raw Normal View History

2021-05-08 14:04:39 +02:00
<% if (ctx.postFlow) { %><div class='pool-list post-flow'><% } else { %><div class='pool-list'><% } %>
2020-05-04 04:53:28 +02:00
<% if (ctx.response.results.length) { %>
2021-05-08 14:04:39 +02:00
<ul>
<% for (let pool of ctx.response.results) { %>
<li data-pool-id='<%= pool.id %>'>
<a class='thumbnail-wrapper' href='<%= ctx.canViewPools ? ctx.formatClientLink("pool", pool.id) : "" %>'>
<% if (ctx.canViewPosts) { %>
<%= ctx.makePoolThumbnails(pool.posts, ctx.postFlow) %>
2020-05-04 04:53:28 +02:00
<% } %>
2021-05-08 14:04:39 +02:00
</a>
<div class='pool-name'>
<%= ctx.makePoolLink(pool.id, false, false, pool, name) %>
</div>
</li>
<% } %>
<%= ctx.makeFlexboxAlign() %>
</ul>
2020-05-04 04:53:28 +02:00
<% } %>
</div>