You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

37 lines
1.1 KiB

<h1>{$page->title}</h1>
{if $commentslist}
{$pager}
<table style="margin-top:10px;" class="data Sortable highlight">
<tr>
<th>user</th>
<th>date</th>
<th>comment</th>
<th>host</th>
<th>options</th>
</tr>
{foreach $commentslist as $comment}
<tr class="{cycle values=",alt"}">
<td>
{if $comment.user_id > 0}
<a href="{$smarty.const.WWW_TOP}/user-edit.php?id={$comment.user_id}">{$comment.username}</a>
{else}
{$comment.username}
{/if}
</td>
<td title="{$comment.createddate}">{$comment.createddate|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}
{if $comment.host}<td>{$comment.host}</td> {else} <td> </td>{/if}
<td>
{if $comment.guid}<a href="{$smarty.const.WWW_TOP}/../details/{$comment.guid}#comments">view</a> |{/if}
<a href="{$smarty.const.WWW_TOP}/comments-delete.php?id={$comment.id}">delete</a>
</td>
</tr>
{/foreach}
</table>
{else}
<p>No comments available</p>
{/if}