PERF: unbind some stuff to speed up topic list

This commit is contained in:
Sam 2014-10-22 16:37:13 +11:00
parent d4224a64e8
commit 30a814b105

View file

@ -3,21 +3,21 @@
{{input type="checkbox" checked=checked}} {{input type="checkbox" checked=checked}}
</td> </td>
{{else}} {{else}}
{{#if canStar}} {{#unboundIf 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>
{{/if}} {{/unboundIf}}
{{/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}}
{{#if showTopicPostBadges}} {{#unboundIf showTopicPostBadges}}
{{topic-post-badges unread=unread newPosts=displayNewPosts unseen=unseen url=lastUnreadUrl}} {{topic-post-badges unread=unread newPosts=displayNewPosts unseen=unseen url=lastUnreadUrl}}
{{/if}} {{/unboundIf}}
{{#if hasExcerpt}} {{#unboundIf hasExcerpt}}
<div class="topic-excerpt"> <div class="topic-excerpt">
{{{excerpt}}} {{{excerpt}}}
{{#if excerptTruncated}} {{#if excerptTruncated}}
@ -27,7 +27,7 @@
<a href="#" {{action "clearPin" this}} title="{{i18n topic.clear_pin.help}}">{{i18n topic.clear_pin.title}}</a> <a href="#" {{action "clearPin" this}} title="{{i18n topic.clear_pin.help}}">{{i18n topic.clear_pin.title}}</a>
{{/if}} {{/if}}
</div> </div>
{{/if}} {{/unboundIf}}
</td> </td>
{{#unless hideCategory}} {{#unless hideCategory}}