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.
99 lines
3.4 KiB
Smarty
99 lines
3.4 KiB
Smarty
<div class="category">
|
|
<!-- IMPORT partials/breadcrumbs.tpl -->
|
|
|
|
<div class="subcategories row">
|
|
<!-- BEGIN children -->
|
|
<!-- IMPORT partials/category/subcategory.tpl -->
|
|
<!-- END children -->
|
|
</div>
|
|
|
|
<div class="header category-tools clearfix">
|
|
<!-- IF privileges.topics:create -->
|
|
<button id="new_post" class="btn btn-primary">[[category:new_topic_button]]</button>
|
|
<!-- ELSE -->
|
|
<!-- IF !loggedIn -->
|
|
<a href="/login?next=category/{slug}" class="btn btn-primary">[[category:guest-login-post]]</a>
|
|
<!-- ENDIF !loggedIn -->
|
|
<!-- ENDIF privileges.topics:create -->
|
|
|
|
<span class="pull-right">
|
|
<!-- IMPORT partials/category/watch.tpl -->
|
|
<!-- IMPORT partials/category/tools.tpl -->
|
|
<!-- IMPORT partials/category/sort.tpl -->
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<!-- IF !topics.length -->
|
|
<div class="alert alert-warning" id="category-no-topics">
|
|
[[category:no_topics]]
|
|
</div>
|
|
<!-- ENDIF !topics.length -->
|
|
|
|
<ul id="topics-container" itemscope itemtype="http://www.schema.org/ItemList" data-nextstart="{nextStart}">
|
|
<meta itemprop="itemListOrder" content="descending">
|
|
<!-- BEGIN topics -->
|
|
<li class="category-item {function.generateTopicClass}" itemprop="itemListElement" data-tid="{topics.tid}" data-index="{topics.index}">
|
|
|
|
<div class="topic-row">
|
|
<!-- IF privileges.editable -->
|
|
<i class="fa fa-fw fa-square-o pull-left select pointer"></i>
|
|
<!-- ENDIF privileges.editable -->
|
|
<a href="{relative_path}/user/{topics.user.userslug}" class="pull-left">
|
|
<img src="{topics.user.picture}" class="img-circle user-img" title="{topics.user.username}"/>
|
|
</a>
|
|
|
|
<h3>
|
|
<a href="{relative_path}/topic/{topics.slug}" itemprop="url">
|
|
<meta itemprop="name" content="{topics.title}">
|
|
|
|
<strong>
|
|
<i class="fa fa-thumb-tack <!-- IF !topics.pinned -->hide<!-- ENDIF !topics.pinned -->"></i>
|
|
<i class="fa fa-lock <!-- IF !topics.locked -->hide<!-- ENDIF !topics.locked -->"></i>
|
|
</strong>
|
|
<span class="topic-title">{topics.title}</span>
|
|
</a>
|
|
</h3>
|
|
|
|
<small>
|
|
<span class="topic-stats">
|
|
[[global:posts]]
|
|
<strong class="human-readable-number" title="{topics.postcount}">{topics.postcount}</strong>
|
|
</span>
|
|
|
|
|
<span class="topic-stats">
|
|
[[global:views]]
|
|
<strong class="human-readable-number" title="{topics.viewcount}">{topics.viewcount}</strong>
|
|
</span>
|
|
|
|
|
<span>
|
|
[[global:posted_ago, <span class="timeago" title="{topics.relativeTime}"></span>]]
|
|
</span>
|
|
|
|
<span class="pull-right">
|
|
<!-- IF topics.unreplied -->
|
|
[[category:no_replies]]
|
|
<!-- ELSE -->
|
|
<a href="<!-- IF topics.teaser.user.userslug -->{relative_path}/user/{topics.teaser.user.userslug}<!-- ELSE -->#<!-- ENDIF topics.teaser.user.userslug -->">
|
|
<img class="teaser-pic img-circle" src="{topics.teaser.user.picture}" title="{topics.teaser.user.username}"/>
|
|
</a>
|
|
<a href="{relative_path}/topic/{topics.slug}/{topics.teaser.index}">
|
|
[[global:replied_ago, <span class="timeago" title="{topics.teaser.timestamp}"></span>]]
|
|
</a>
|
|
<!-- ENDIF topics.unreplied -->
|
|
</span>
|
|
|
|
<!-- IMPORT partials/category/tags.tpl -->
|
|
</small>
|
|
</div>
|
|
</li>
|
|
<!-- END topics -->
|
|
</ul>
|
|
<!-- IF config.usePagination -->
|
|
<!-- IMPORT partials/paginator.tpl -->
|
|
<!-- ENDIF config.usePagination -->
|
|
</div>
|
|
|
|
<!-- IMPORT partials/move_thread_modal.tpl -->
|
|
<!-- IMPORT partials/noscript/paginator.tpl -->
|
|
<!-- IMPORT partials/variables/category.tpl --> |