mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-01 02:38:55 +00:00
41 lines
1.2 KiB
Smarty
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>
|