mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 20:01:11 +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}}
|
{{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}}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user