{{!-- {{#if view.action}}
{{partial view.action}}
{{/if}} --}}
{{#if discussion.unread}}
{{discussion.unread}}
{{/if}}
{{#link-to "discussion" discussion.content (query-params searchQuery=searchQuery) class="info"}}
{{#if discussion.category}}
{{discussion.category}}
{{/if}}
{{!-- {{#if discussion.following}}{{fa-icon "star" class="icon icon-following"}}{{/if}} --}}
{{#if discussion.sticky}}{{fa-icon "thumb-tack" class="icon icon-sticky"}}{{/if}}
{{#if discussion.locked}}{{fa-icon "lock" class="icon icon-locked"}}{{/if}}
{{highlight-words discussion.title searchQuery}}
{{#if discussion.sticky}}
{{discussion.excerpt}}
{{/if}}
{{/link-to}}
{{#if displayStartPosts}}
{{#link-to "user" discussion.startUser}}{{user-avatar discussion.startUser class="avatar-thumb"}}{{/link-to}}
{{#link-to "discussion" discussion.content}}{{abbreviate-time discussion.startTime}}{{/link-to}}
{{else}}
{{#link-to "user" discussion.lastUser}}{{user-avatar discussion.lastUser class="avatar-thumb"}}{{/link-to}}
{{#link-to "discussion" discussion.content (query-params start="last")}}{{abbreviate-time discussion.lastTime}}{{/link-to}}
{{/if}}
{{abbreviate-number discussion.repliesCount}}
{{#if view.relevantPosts}}
{{#each post in view.relevantPosts}}
{{#link-to "discussion" discussion.content (query-params start=post.number) class="post item"}}
{{user-avatar post.user class="avatar-thumb"}}
{{highlight-words post.relevantContent searchQuery}}
{{/link-to}}
{{/each}}
{{/if}}
{{render-hook "discussions-result"}}