diff options
| author | rr- <rr-@sakuya.pl> | 2016-06-11 09:59:06 +0200 |
|---|---|---|
| committer | rr- <rr-@sakuya.pl> | 2016-06-11 17:36:02 +0200 |
| commit | 0842d90ca2cebda8d85a39f504e1f7cd79a167d1 (patch) | |
| tree | 62678b0598e5eabaf287f6fef096b83a80704809 /client/html/posts_page.tpl | |
| parent | abd679888af5dd32ecc2896ff4dddd3eed85f3d7 (diff) | |
client/general: ditch underscore for loops
Diffstat (limited to 'client/html/posts_page.tpl')
| -rw-r--r-- | client/html/posts_page.tpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/html/posts_page.tpl b/client/html/posts_page.tpl index 1518980..97a4b65 100644 --- a/client/html/posts_page.tpl +++ b/client/html/posts_page.tpl @@ -1,7 +1,7 @@ <div class='post-list'> <% if (ctx.results.length) { %> <ul> - <% _.each(ctx.results, post => { %> + <% for (let post of ctx.results) { %> <li> <a href='/post/<%= post.id %>' title='@<%= post.id %> (<%= post.type %>) Tags: <%= post.tags.map(tag => '#' + tag).join(' ') %>'> <%= ctx.makeThumbnail(post.thumbnailUrl) %> @@ -32,7 +32,7 @@ <% } %> </a> </li> - <% }) %> + <% } %> <%= ctx.makeFlexboxAlign() %> </ul> <% } %> |