Files
newznab-tmux/resources/views/themes/admin/comments-list.tpl
T
2019-08-09 10:42:35 +02:00

41 lines
1.2 KiB
Smarty

<h1>{$title}</h1>
<div class="card card-body">
{if $commentslist}
{$commentslist->onEachSide(5)->links()}
<table style="margin-top:10px;" class="data table table-striped responsive-utilities jambo-table Sortable">
<tr>
<th>user</th>
<th>date</th>
<th>comment</th>
<th>host</th>
<th>options</th>
</tr>
{foreach from=$commentslist item=comment}
<tr class="{cycle values=",alt"}">
<td>
{if $comment.users_id > 0}
<a href="{{url("/admin/user-edit?id={$comment.users_id}")}}">{$comment.username}</a>
{else}
{$comment.username}
{/if}
</td>
<td title="{$comment.created_at}">{$comment.created_at|timeago}</td>
{if $comment.shared == 2}
<td style="color:#6B2447">{$comment.text|escape:"htmlall"|nl2br}</td>
{else}
<td>{$comment.text|escape:"htmlall"|nl2br}</td>
{/if}
<td>{$comment.host}</td>
<td>
{if $comment.guid}<a href="{{url("/details/{$comment.guid}#comments")}}">
view</a> |{/if}
<a href="{{url("/admin/comments-delete?id={$comment.id}")}}">delete</a>
</td>
</tr>
{/foreach}
</table>
{else}
<p>No comments available</p>
{/if}
</div>