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
1 changed files with 6 additions and 6 deletions

View File

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