You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
975 B
Smarty

<ul id="quick-search-results" class="quick-search-results">
{{{each posts}}}
6 years ago
<li>
<a href="{config.relative_path}/post/{posts.pid}">
{buildAvatar(posts.user, "sm", true)}
<span class="quick-search-title">{posts.topic.title}</span>
<br/>
<p class="snippet">
{posts.snippet}
</p>
<small class="post-info pull-right">
<span class="fa-stack" style="{function.generateCategoryBackground, posts.category}"><i style="color:{posts.category.color};" class="fa {posts.category.icon} fa-stack-1x"></i></span> {posts.category.name} &bull;
<span class="timeago" title="{posts.timestampISO}"></span>
</small>
</a>
6 years ago
</li>
<!-- IF !@last -->
6 years ago
<li role="separator" class="divider"></li>
<!-- ENDIF -->
{{{end}}}
</ul>
6 years ago
<!-- IF multiplePages -->
<div class="text-center">
<a href="{url}">
[[search:see-more-results, {matchCount}]]
</a>
</div>
<!-- ENDIF multiplePages -->
{{{if !posts.length}}}
<div class="text-center no-results">[[search:no-matches]]</li>
{{{end}}}