<h1>{{$lang.Comments}}</h1>
{{if count( $aComments ) > 0}}
	<table class="list" id="comments">
		<thead>
			<tr><th class="author">{{$lang.Author}}</th><th class="content">{{$lang.Content}}</th><th class="actions">{{$lang.Actions}}</th></tr>
		</thead>
		<tbody>
			{{foreach from=$aComments item=aComment}}
				<tr>
					<td class="author">
						{{$lang.First_and_last_name}}: {{$aComment.sName}}<br/>
						{{$lang.IP}}: <a href="http://www.ripe.net/perl/whois?form_type=simple&amp;full_query_string=&amp;searchtext={{$aComment.sIp}}&amp;do_search=Search" target="_blank">{{$aComment.sIp}}</a><br/>
						{{$lang.Date}}: {{$aComment.sDate}}<br/>
						{{$lang.Rating}}: {{$aComment.iRating}}
					</td>
					<td class="content">
						{{$aComment.sContent}}
					</td>
					<td class="actions">
						{{if empty( $aComment.iAccepted )}}
							<a href="?p={{$aActions.f}}-accept&amp;iComment={{$aComment.iComment}}&amp;{{$sLink}}={{$aComment.iLink}}"><img src="{{$config.dir_templates}}admin/images/ico/accept.png" alt="{{$lang.Accept}}" title="{{$lang.Accept}}" /></a>
						{{/if}}
						<a href="?p={{$aActions.f}}-edit&amp;iComment={{$aComment.iComment}}&amp;{{$sLink}}={{$aComment.iLink}}"><img src="{{$config.dir_templates}}admin/images/ico/edit.png" alt="{{$lang.Edit}}" title="{{$lang.Edit}}" /></a>
						<a href="?p={{$aActions.f}}-delete&amp;iComment={{$aComment.iComment}}&amp;{{$sLink}}={{$aComment.iLink}}" class="del delete"><img src="{{$config.dir_templates}}admin/images/ico/delete.png" alt="{{$lang.Delete}}" title="{{$lang.Delete}}" /></a>	
					</td>
				</tr>
			{{/foreach}}
		</tbody>
	</table>
{{else}}
<div class="msg" id="error">
	<img src="{{$config.dir_templates}}admin/images/ico/msg_error.png" class="imgv" alt="" /> {{$lang.Data_not_found}}
</div>
{{/if}}