component changes

main
barisusakli 10 years ago
parent d21597ad01
commit 594ddd0f85

@ -20,13 +20,8 @@
<small>[[global:views]]</small>
</div>
<!-- IF privileges.topics:reply -->
<a component="topic/reply" class="btn btn-primary post_reply">[[topic:reply]]</a>
<!-- ELSE -->
<!-- IF !loggedIn -->
<a href="/login?next=topic/{slug}" class="btn btn-primary">[[topic:guest-login-reply]]</a>
<!-- ENDIF !loggedIn -->
<!-- ENDIF privileges.topics:reply -->
<!-- IMPORT partials/topic/reply-button.tpl -->
<!-- IMPORT partials/thread_tools.tpl -->
</div>

@ -13,15 +13,25 @@
</a>
</li>
<li>
<a component="topic/pin" href="#">
<a component="topic/pin" href="#" class="<!-- IF pinned -->hidden<!-- ENDIF pinned -->">
<i class="fa fa-fw fa-thumb-tack"></i> [[topic:thread_tools.pin]]
</a>
</li>
<li>
<a component="topic/lock" href="#">
<a component="topic/unpin" href="#" class="<!-- IF !pinned -->hidden<!-- ENDIF !pinned -->">
<i class="fa fa-fw fa-thumb-tack fa-rotate-90"></i> [[topic:thread_tools.unpin]]
</a>
</li>
<li>
<a component="topic/lock" href="#" class="<!-- IF locked -->hidden<!-- ENDIF locked -->">
<i class="fa fa-fw fa-lock"></i> [[topic:thread_tools.lock]]
</a>
</li>
<li>
<a component="topic/unlock" href="#" class="<!-- IF !locked -->hidden<!-- ENDIF !locked -->">
<i class="fa fa-fw fa-unlock"></i> [[topic:thread_tools.unlock]]
</a>
</li>
<li class="divider"></li>
<li>
<a component="topic/move" href="#">
@ -38,10 +48,15 @@
<!-- IF privileges.deletable -->
<li>
<a component="topic/delete" href="#">
<a component="topic/delete" href="#" class="<!-- IF deleted -->hidden<!-- ENDIF deleted -->">
<i class="fa fa-fw fa-trash-o"></i> [[topic:thread_tools.delete]]
</a>
</li>
<li>
<a component="topic/restore" href="#" class="<!-- IF !deleted -->hidden<!-- ENDIF !deleted -->">
<i class="fa fa-fw fa-history"></i> [[topic:thread_tools.restore]]
</a>
</li>
<li>
<a component="topic/purge" href="#" class="<!-- IF !deleted -->hidden<!-- ENDIF !deleted -->">
<i class="fa fa-fw fa-eraser"></i> [[topic:thread_tools.purge]]

@ -20,8 +20,8 @@
[[global:posted_ago, <a class="permalink" href="{config.relative_path}/topic/{slug}/{function.getBookmarkFromIndex}"><span class="timeago" title="{posts.relativeTime}"></span></a>]]
<span class="post-tools">
<a component="post/reply">[[topic:reply]]</a>
<a component="post/quote">[[topic:quote]]</a>
<a component="post/reply" class="<!-- IF !privileges.topics:reply -->hidden<!--ENDIF !privileges.topics:reply -->">[[topic:reply]]</a>
<a component="post/quote" class="<!-- IF !privileges.topics:reply -->hidden<!--ENDIF !privileges.topics:reply -->">[[topic:quote]]</a>
</span>
</div>

@ -0,0 +1,6 @@
<!-- IF !loggedIn -->
<a href="/login?next=topic/{slug}" class="btn btn-primary">[[topic:guest-login-reply]]</a>
<!-- ELSE -->
<a component="topic/reply" class="btn btn-primary post_reply <!-- IF !privileges.topics:reply -->hidden<!-- ENDIF !privileges.topics:reply -->">[[topic:reply]]</a>
<a component="topic/reply/locked" class="btn btn-primary post_reply <!-- IF !locked --><!-- IF privileges.topics:reply -->hidden<!-- ENDIF privileges.topics:reply --><!-- ENDIF !locked -->" disabled><i class="fa fa-lock"></i> [[topic:locked]]</a>
<!-- ENDIF !loggedIn -->

@ -2,17 +2,18 @@
<!-- IMPORT partials/breadcrumbs.tpl -->
<h1 component="post/header" itemprop="name">
<i class="fa fa-thumb-tack hide"></i> <i class="fa fa-lock hide"></i> {title}
<i class="fa fa-thumb-tack <!-- IF !pinned -->hidden<!-- ENDIF !pinned -->"></i> <i class="fa fa-lock <!-- IF !locked -->hidden<!-- ENDIF !locked -->"></i> {title}
<!-- IMPORT partials/thread_sort.tpl -->
<button component="topic/follow" class="btn hidden-xs hidden-sm">
<!-- IF isFollowing -->
<button component="topic/follow" class="btn hidden-xs hidden-sm <!-- IF isFollowing -->hidden<!-- ENDIF isFollowing -->">
<span>[[topic:watch]]</span> <i class="fa fa-eye"></i>
</button>
<button component="topic/unfollow" class="btn hidden-xs hidden-sm <!-- IF !isFollowing -->hidden<!-- ENDIF !isFollowing -->">
<span>[[topic:unwatch]]</span> <i class="fa fa-eye-slash"></i>
<!-- ELSE -->
[[topic:watch]]</span> <i class="fa fa-eye"></i>
<!-- ENDIF isFollowing -->
</button>
<span class="browsing-users hidden hidden-xs hidden-sm pull-right">
<span>[[category:browsing]]</span>
<div component="topic/browsing/list" class="thread_active_users active-users inline-block"></div>
@ -22,6 +23,8 @@
</span>
</h1>
<div component="topic/deleted/message" class="alert alert-warning<!-- IF !deleted --> hidden<!-- ENDIF !deleted -->">[[topic:deleted_message]]</div>
<ul component="topic" class="posts" data-tid="{tid}">
<!-- BEGIN posts -->
<li component="post" class="clearfix <!-- IF posts.deleted -->deleted<!-- ENDIF posts.deleted -->" <!-- IMPORT partials/data/topic.tpl -->>
@ -41,7 +44,7 @@
<!-- END posts -->
</ul>
<div class="post-bar bottom-post-bar <!-- IF unreplied -->hide<!-- ENDIF unreplied -->">
<div class="post-bar bottom-post-bar <!-- IF unreplied -->hidden<!-- ENDIF unreplied -->">
<!-- IMPORT partials/post_bar.tpl -->
</div>

Loading…
Cancel
Save