unbound if is not a perf gain

This commit is contained in:
Sam 2014-10-22 17:58:14 +11:00
parent de05012c76
commit 6c58cb982a

View File

@ -3,28 +3,28 @@
{{input type="checkbox" checked=checked}} {{input type="checkbox" checked=checked}}
</td> </td>
{{else}} {{else}}
{{#unboundIf canStar}} {{#if canStar}}
<td class='star'> <td class='star'>
<a {{bind-attr class=":star :fa :fa-star starred:starred"}} {{action "toggleStar"}} href='#' {{bind-attr title="starTooltip"}}></a> <a {{bind-attr class=":star :fa :fa-star starred:starred"}} {{action "toggleStar"}} href='#' {{bind-attr title="starTooltip"}}></a>
</td> </td>
{{/unboundIf}} {{/if}}
{{/if}} {{/if}}
<td class='main-link clearfix' {{bind-attr colspan="titleColSpan"}}> <td class='main-link clearfix' {{bind-attr colspan="titleColSpan"}}>
{{topic-status topic=this.model}} {{topic-status topic=this.model}}
{{topic-link this}} {{topic-link this}}
{{#unboundIf showTopicPostBadges}} {{#if showTopicPostBadges}}
{{topic-post-badges unread=unread newPosts=displayNewPosts unseen=unseen url=lastUnreadUrl}} {{topic-post-badges unread=unread newPosts=displayNewPosts unseen=unseen url=lastUnreadUrl}}
{{/unboundIf}} {{/if}}
{{#unboundIf hasExcerpt}} {{#if hasExcerpt}}
<div class="topic-excerpt"> <div class="topic-excerpt">
{{{excerpt}}} {{{excerpt}}}
{{#if excerptTruncated}} {{#if excerptTruncated}}
<a href="{{url}}">{{i18n read_more}}</a> <a href="{{url}}">{{i18n read_more}}</a>
{{/if}} {{/if}}
</div> </div>
{{/unboundIf}} {{/if}}
</td> </td>
{{#unless hideCategory}} {{#unless hideCategory}}