comments: edit links with anchor and parameter

This commit is contained in:
Mathieu Jaumotte 2021-12-14 10:54:44 +01:00
parent 530267a9b0
commit 3c1c07dc64

View File

@ -7,12 +7,12 @@
{% if options.pinned is defined %}
<i class="fa fa-flag fa-fw" title="{{ 'pinned'|trans }}"></i>
{% endif %}
<a id="comment{{ comment.id }}" href="#comment{{ comment.id }}" class="fa fa-pencil-square-o fa-fw"></a>
<a id="comment{{ comment.id }}" href="{{ '#comment' ~ comment.id }}" class="fa fa-pencil-square-o fa-fw"></a>
{{ 'by'|trans }}<b>{{ comment.creator }}</b>{{ ', ' ~ 'on'|trans ~ ' ' ~ comment.createdAt|format_date('long') }}<br>
<i>{{ 'Last updated on'|trans ~ ' ' ~ comment.updatedAt|format_datetime('long', 'short') }}</i>
</div>
<ul class="record_actions">
<li><a class="btn btn-edit" title="{{ 'Edit'|trans }}" href=""></a></li>
<li><a class="btn btn-edit" title="{{ 'Edit'|trans }}" href="{{ '?edit=' ~ comment.id ~ '#comment' ~ comment.id }}"></a></li>
<li><a class="btn btn-delete" title="{{ 'Delete'|trans }}" href=""></a></li>
</ul>
</div>