Barış Soner Uşaklı 4 years ago
parent 29df0e827a
commit 2968e1a017

@ -2,78 +2,75 @@
<div class="btn-toolbar"> <div class="btn-toolbar">
<!-- IMPORT partials/category-filter.tpl --> <!-- IMPORT partials/category-filter.tpl -->
</div> </div>
<hr class="hidden-xs"/> <hr/>
<div class="row"> <div class="row">
<div class="col-xs-12"> <div class="col-xs-12">
<div class="post-queue panel panel-primary preventSlideout"> <div class="post-queue preventSlideout posts-list">
<div class="panel-heading"> {{{ if !posts.length }}}
[[post-queue:post-queue]]
</div>
<!-- IF !posts.length -->
<p class="panel-body"> <p class="panel-body">
[[post-queue:description, {config.relative_path}/admin/settings/post#post-queue]] [[post-queue:description, {config.relative_path}/admin/settings/post#post-queue]]
</p> </p>
<!-- ENDIF !posts.length --> {{{ end }}}
{{{ each posts }}}
<div class="panel panel-default" data-id="{posts.id}">
<div class="panel-heading">
<strong>{{{ if posts.data.tid }}}[[post-queue:reply]]{{{ else }}}[[post-queue:topic]]{{{ end }}}</strong>
<span class="timeago pull-right" title={posts.data.timestampISO}></span>
</div>
<div class="panel-body">
<div class="table-responsive"> <div class="row">
<table class="table table-striped posts-list"> <div class="col-lg-2 col-xs-12">
<thead> <strong>[[post-queue:user]]</strong>
<tr> <div>
<th>[[post-queue:user]]</th> {{{ if posts.user.userslug}}}
<th>[[post-queue:category]]</th> <a href="{config.relative_path}/uid/{posts.user.uid}">{buildAvatar(posts.user, "24", true, "not-responsive")} {posts.user.username}</a>
<th>[[post-queue:title]]</th> {{{ else }}}
<th>[[post-queue:content]] <i class="fa fa-info-circle" data-toggle="tooltip" title="[[post-queue:content-editable]]"></i></th>
<th>[[post-queue:posted]]</th>
<th></th>
</tr>
</thead>
<tbody>
<!-- BEGIN posts -->
<tr data-id="{posts.id}">
<td class="col-md-1">
<!-- IF posts.user.userslug -->
<a href="{config.relative_path}/uid/{posts.user.uid}">{posts.user.username}</a>
<!-- ELSE -->
{posts.user.username} {posts.user.username}
<!-- ENDIF posts.user.userslug --> {{{ end }}}
</td> </div>
<td class="col-md-2 topic-category" {{{if posts.data.cid}}}data-editable="editable"{{{end}}}"> </div>
<i class="pointer fa fa-fw {{{ if posts.data.cid}}}fa-edit{{{ end }}}" data-toggle="tooltip" title="[[post-queue:category-editable]]"></i> <div class="col-lg-3 col-xs-12">
<a href="{config.relative_path}/category/{posts.category.slug}"><span class="category-text">{posts.category.name}</span></a> <strong>[[post-queue:category]]{{{ if posts.data.cid}}} <i class="fa fa-fw fa-edit" data-toggle="tooltip" title="[[post-queue:category-editable]]"></i>{{{ end }}}</strong>
</td> <div class="topic-category" {{{if posts.data.cid}}}data-editable="editable"{{{end}}}">
<td class="col-md-3 topic-title"> <a href="{config.relative_path}/category/{posts.category.slug}"><!-- IF posts.category.icon --><span class="fa-stack"><i style="color: {posts.category.bgColor};" class="fa fa-circle fa-stack-2x"></i><i style="color: {posts.category.color};" class="fa fa-stack-1x fa-fw {posts.category.icon}"></i></span><!-- ENDIF posts.category.icon --> {posts.category.name}</a>
<i class="pointer fa fa-fw {{{ if !posts.data.tid}}}fa-edit{{{ end }}}" data-toggle="tooltip" title="[[post-queue:title-editable]]"></i> </div>
<!-- IF posts.data.tid --> </div>
<a href="{config.relative_path}/topic/{posts.data.tid}">[[post-queue:reply-to, {posts.topic.title}]]</a> <div class="col-lg-7 col-xs-12">
<!-- ENDIF posts.data.tid --> <strong>{{{ if posts.data.tid }}}[[post-queue:topic]]{{{ else }}}[[post-queue:title]] <i class="fa fa-fw fa-edit" data-toggle="tooltip" title="[[post-queue:title-editable]]"></i>{{{ end }}}</strong>
<div class="topic-title">
{{{ if posts.data.tid }}}
<a href="{config.relative_path}/topic/{posts.data.tid}">{posts.topic.title}</a>
{{{ end }}}
<span class="title-text">{posts.data.title}</span> <span class="title-text">{posts.data.title}</span>
</td> </div>
{{{if !posts.data.tid}}} {{{if !posts.data.tid}}}
<td class="col-md-3 topic-title-editable hidden"> <div class="topic-title-editable hidden">
<input class="form-control" type="text" value="{posts.data.title}"/> <input class="form-control" type="text" value="{posts.data.title}"/>
</td> </div>
{{{end}}} {{{end}}}
<td class="col-md-4 post-content">{posts.data.content}</td> </div>
<td class="col-md-4 post-content-editable hidden"> </div>
<textarea class="form-control">{posts.data.rawContent}</textarea> <hr/>
</td> <div>
<td class="col-md-1"> <strong>[[post-queue:content]] <i class="fa fa-fw fa-edit" data-toggle="tooltip" title="[[post-queue:content-editable]]"></i></strong>
<span class="timeago" title={posts.data.timestampISO}></span> <div class="post-content">{posts.data.content}</div>
</td> <div class="post-content-editable hidden">
<td class="col-md-1"> <textarea class="form-control">{posts.data.rawContent}</textarea>
<div class="btn-group pull-right"> </div>
<button class="btn btn-success btn-xs" data-action="accept"><i class="fa fa-check"></i></button> </div>
<button class="btn btn-danger btn-xs" data-action="reject"><i class="fa fa-times"></i></button> </div>
</div> <div class="panel-footer text-right">
</td> <div class="btn-group">
</tr> <button class="btn btn-success btn-xs" data-action="accept"><i class="fa fa-check"></i> [[post-queue:accept]] </button>
<!-- END posts --> <button class="btn btn-danger btn-xs" data-action="reject"><i class="fa fa-times"></i> [[post-queue:reject]]</button>
</tbody> </div>
</table> </div>
</div> </div>
{{{ end }}}
<!-- IMPORT partials/paginator.tpl -->
</div> </div>
<!-- IMPORT partials/paginator.tpl -->
</div> </div>
</div> </div>
Loading…
Cancel
Save