2015-10-22 22:48:30 +02:00
|
|
|
<div id="comments_list">
|
2021-12-20 17:46:50 +01:00
|
|
|
<form action="{if isset($admin)}{poll_url id=$admin_poll_id admin=true}{else}{poll_url id=$poll_id}{/if}" method="POST">
|
2015-10-22 22:48:30 +02:00
|
|
|
{if $comments|count > 0}
|
|
|
|
<h3>{__('Comments', 'Comments of polled people')}</h3>
|
|
|
|
{foreach $comments as $comment}
|
|
|
|
<div class="comment">
|
2021-12-20 17:46:50 +01:00
|
|
|
{if isset($admin) && !$expired}
|
2015-10-22 22:48:30 +02:00
|
|
|
<button type="submit" name="delete_comment" value="{$comment->id|html}" class="btn btn-link" title="{__('Comments', 'Remove the comment')}"><span class="glyphicon glyphicon-remove text-danger"></span><span class="sr-only">{__('Generic', 'Remove')}</span></button>
|
|
|
|
{/if}
|
|
|
|
<span class="comment_date">{$comment->date|date_format:$date_format['txt_datetime_short']}</span>
|
|
|
|
<b>{$comment->name|html}</b>
|
|
|
|
<span>{$comment->comment|escape|nl2br}</span>
|
|
|
|
</div>
|
|
|
|
{/foreach}
|
|
|
|
{/if}
|
2016-04-12 00:19:15 +02:00
|
|
|
</form>
|
2015-10-22 22:48:30 +02:00
|
|
|
<div id="comments_alerts"></div>
|
2021-12-20 17:46:50 +01:00
|
|
|
</div>
|