mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
Deprecations: More {{#each x in y}}
templates
This commit is contained in:
parent
b2bcefd906
commit
b3c24e50e3
5 changed files with 6 additions and 6 deletions
|
@ -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>
|
||||||
|
|
|
@ -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"}}
|
||||||
|
|
|
@ -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}}
|
||||||
|
|
|
@ -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}}
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue