mirror of
https://framagit.org/framasoft/framadate/framadate
synced 2026-01-23 02:14:06 +00:00
Merge branch 'fix-573' into 'v1.1.x'
Fix templating issues in comments list Closes #573 See merge request framasoft/framadate/framadate!506
This commit is contained in:
commit
854e91ea56
1 changed files with 2 additions and 2 deletions
|
|
@ -1,10 +1,10 @@
|
|||
<div id="comments_list">
|
||||
<form action="{if isset($admin)}{poll_url id=$admin_poll_id admin=true}{else}{poll_url id=$poll_id}{/if}" method="POST">
|
||||
<form action="{if isset($admin) && $admin}{poll_url id=$admin_poll_id admin=true}{else}{poll_url id=$poll_id}{/if}" method="POST">
|
||||
{if $comments|count > 0}
|
||||
<h3>{__('Comments', 'Comments of polled people')}</h3>
|
||||
{foreach $comments as $comment}
|
||||
<div class="comment">
|
||||
{if isset($admin) && !$expired}
|
||||
{if isset($admin) && $admin && !$expired}
|
||||
<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|intl_date_format:$date_format['txt_datetime_short']}</span>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue