aboutsummaryrefslogtreecommitdiff
path: root/client/html/top_nav.hbs
diff options
context:
space:
mode:
authorrr-2016-05-09 20:07:54 +0200
committerrr-2016-05-09 22:36:29 +0200
commit6405fbe9f27e75014b94e9acae4f15ff38c47d36 (patch)
treea9ea1ad322b6a8fd4dbdc526ab0085d9bcfb3656 /client/html/top_nav.hbs
parentc34b1e3ccffd4bc52976e80b47cb4814f312219a (diff)
client/general: replace handlebars with underscore
Diffstat (limited to 'client/html/top_nav.hbs')
-rw-r--r--client/html/top_nav.hbs16
1 files changed, 8 insertions, 8 deletions
diff --git a/client/html/top_nav.hbs b/client/html/top_nav.hbs
index 750e524..24084b3 100644
--- a/client/html/top_nav.hbs
+++ b/client/html/top_nav.hbs
@@ -1,14 +1,14 @@
<nav id='top-nav' class='text-nav'>
<ul><!--
- -->{{#each items}}<!--
- -->{{#if this.available}}<!--
- --><li data-name='{{@key}}'><!--
- --><a href='{{this.url}}' accesskey='{{this.accessKey}}'><!--
- -->{{#if this.imageUrl}}{{thumbnail this.imageUrl}}{{/if}}<!--
- --><span class='text'>{{this.name}}</span><!--
+ --><% _.each(items, (item, key) => { %><!--
+ --><% if (item.available) { %><!--
+ --><li data-name='<%= key %>'><!--
+ --><a href='<%= item.url %>' accesskey='<%= item.accessKey %>'><!--
+ --><% if (item.imageUrl) { print(makeThumbnail(item.imageUrl)); } %><!--
+ --><span class='text'><%- item.name %></span><!--
--></a><!--
--></li><!--
- -->{{/if}}<!--
- -->{{/each}}<!--
+ --><% } %><!--
+ --><% }) %><!--
--></ul>
</nav>

© 2015 - 2026 Jakob L. Kreuze