szurubooru/client/html/comments_page.tpl
rr- 1acceb941d client: refactor linking and routing
Print all links through new uri.js component
Refactor the router to use more predictable parsing
Fix linking to entities with weird names (that contain slashes, + etc.)
2017-01-21 00:13:35 +01:00

18 lines
744 B
Smarty

<div class='global-comment-list'>
<ul><!--
--><% for (let post of ctx.results) { %><!--
--><li><!--
--><div class='post-thumbnail'><!--
--><% if (ctx.canViewPosts) { %><!--
--><a href='<%- ctx.formatClientLink('post', post.id) %>'><!--
--><% } %><!--
--><%= ctx.makeThumbnail(post.thumbnailUrl) %><!--
--><% if (ctx.canViewPosts) { %><!--
--></a><!--
--><% } %><!--
--></div><!--
--><div class='comments-container' data-for='<%- post.id %>'></div><!--
--></li><!--
--><% } %><!--
--></ul>
</div>