mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 15:08:56 +08:00
unbound if is not a perf gain
This commit is contained in:
parent
de05012c76
commit
6c58cb982a
|
@ -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}}
|
||||
|
|
Loading…
Reference in New Issue
Block a user