openlucius-2.0.0-alpha3/modules/core/ol_main/templates/comment-item-small.html.twig
modules/core/ol_main/templates/comment-item-small.html.twig
<!--- Comment-->
<div class="d-flex justify-content-between align-items-center">
<div class="d-flex justify-content-between align-items-center">
<div class="mr-2">
<img class="rounded-circle" src="{{ vars.user_picture }}" alt="" height="25">
</div>
<div class="ml-2 small-comment-body">
<div class="m-0">
<a href="/user/{{ vars.user_id }}/profile" class="username">{{ vars.username }}</a>
<span class="body-text">{{ vars.body|striptags('<a>')|raw }}</span>
<span class="badge badge-light created"><i class="fas fa-clock"></i> {{ vars.created }} </span>
{# {{ vars.like_button }}#}
{% if vars.owner == TRUE %}
<span class="dropdown">
<button class="btn btn-link dropdown-toggle" type="button" id="ol-drop2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fa fa-ellipsis-h"></i>
</button>
<span class="dropdown-menu dropdown-menu-right" aria-labelledby="ol-drop2">
<a class="dropdown-item" href="#" data-toggle="modal" data-target="#editCommentModal_{{ vars.comment_id }}">{{ 'Edit'|t }}</a>
</span>
</span>
{% endif %}
</div>
</div>
</div>
</div>
<!-- / Comment -->
{% if vars.owner == TRUE %}
<!-- Modal edit comment -->
<div class="modal fade" id="editCommentModal_{{ vars.comment_id }}" role="dialog" aria-labelledby="editMessageLabel" aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">{{ 'Edit comment:'|t }} {{ vars.name }}</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
{{ vars.edit_form }}
</div>
</div>
</div>
</div>
<!-- / Modal edit comment -->
{% endif %}
