Deprecations: More {{#each x in y}} templates

This commit is contained in:
Robin Ward 2016-05-09 16:20:35 -04:00
parent b2bcefd906
commit b3c24e50e3
No known key found for this signature in database
GPG key ID: 0E091E2B4ED1B83D
5 changed files with 6 additions and 6 deletions

View file

@ -35,7 +35,7 @@
<th></th> <th></th>
</tr> </tr>
{{#each userBadge in groupedBadges}} {{#each groupedBadges as |userBadge|}}
<tr> <tr>
<td>{{user-badge badge=userBadge.badge count=userBadge.count}}</td> <td>{{user-badge badge=userBadge.badge count=userBadge.count}}</td>
<td> <td>

View file

@ -1,4 +1,4 @@
{{#each navItem in navItems}} {{#each navItems as |navItem|}}
{{navigation-item content=navItem filterMode=filterMode}} {{navigation-item content=navItem filterMode=filterMode}}
{{/each}} {{/each}}
{{custom-html "extraNavItem"}} {{custom-html "extraNavItem"}}

View file

@ -13,7 +13,7 @@
{{desc}} {{desc}}
</div> </div>
<div class="buttons"> <div class="buttons">
{{#each buttonData in enabledButtons}} {{#each enabledButtons as |buttonData|}}
{{d-button icon=buttonData.icon action=buttonData.action label=buttonData.key class=buttonData.classes}} {{d-button icon=buttonData.icon action=buttonData.action label=buttonData.key class=buttonData.classes}}
{{/each}} {{/each}}
{{conditional-loading-spinner condition=loading}} {{conditional-loading-spinner condition=loading}}

View file

@ -1,8 +1,8 @@
{{#if postNumbers}} {{#if postNumbers}}
<div class='post-actions {{className}}'> <div class='post-actions {{className}}'>
<i class='fa fa-{{icon}}'></i> <i class='fa fa-{{icon}}'></i>
{{#each postNumber in postNumbers}} {{#each postNumbers as |postNumber|}}
<a href='{{topic.url}}/{{postNumber}}'>#{{postNumber}}</a> <a href='{{topic.url}}/{{postNumber}}'>#{{postNumber}}</a>
{{/each}} {{/each}}
</div> </div>
{{/if}} {{/if}}

View file

@ -6,7 +6,7 @@
</li> </li>
{{#if expanded}} {{#if expanded}}
<ul class='drop'> <ul class='drop'>
{{#each navItem in navItems}} {{#each navItems as |navItem|}}
{{navigation-item content=navItem filterMode=filterMode}} {{navigation-item content=navItem filterMode=filterMode}}
{{/each}} {{/each}}
</ul> </ul>