2021-03-30 19:35:49 +02:00
|
|
|
{% extends '@Core/admin/layout.html.twig' %}
|
|
|
|
|
|
|
|
{% block title %}{{ 'Commentaires'|trans }} - {{ parent() }}{% endblock %}
|
|
|
|
|
|
|
|
{% block body %}
|
|
|
|
<div class="bg-light pl-5 pr-4 pt-5 pb-5">
|
2021-05-04 11:33:23 +02:00
|
|
|
<div class="crud-header">
|
|
|
|
<h1 class="crud-header-title">{{ entity.author }}</h1>
|
2021-03-30 19:35:49 +02:00
|
|
|
|
2021-05-04 11:33:23 +02:00
|
|
|
<div class="crud-header-actions">
|
2021-03-30 19:35:49 +02:00
|
|
|
<div class="btn-group">
|
|
|
|
<a href="{{ path('admin_blog_comment_index') }}" class="btn btn-secondary">
|
|
|
|
<span class="fa fa-list pr-1"></span>
|
|
|
|
|
|
|
|
Retour à la liste
|
|
|
|
</a>
|
|
|
|
<a href="{{ path('admin_blog_comment_edit', {entity: entity.id}) }}" class="btn btn-primary">
|
|
|
|
<span class="fa fa-edit pr-1"></span>
|
|
|
|
|
|
|
|
Éditer
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
2021-04-20 11:49:17 +02:00
|
|
|
<div class="col-md-4 p-3">
|
2021-03-30 19:35:49 +02:00
|
|
|
<ul class="list-group">
|
|
|
|
<li class="list-group-item">
|
|
|
|
<span class="font-weight-bold pb-2 d-block">Auteur</span>
|
|
|
|
|
|
|
|
{{ entity.author }}
|
|
|
|
</li>
|
|
|
|
<li class="list-group-item">
|
|
|
|
<span class="font-weight-bold pb-2 d-block">Site web</span>
|
|
|
|
|
|
|
|
{{ entity.website }}
|
|
|
|
</li>
|
|
|
|
<li class="list-group-item">
|
|
|
|
<span class="font-weight-bold pb-2 d-block">E-mail</span>
|
|
|
|
|
|
|
|
{{ entity.email }}
|
|
|
|
</li>
|
|
|
|
<li class="list-group-item">
|
|
|
|
<span class="font-weight-bold pb-2 d-block">Article</span>
|
|
|
|
|
2021-04-01 16:27:55 +02:00
|
|
|
<a href="{{ path('admin_blog_post_show', {entity: entity.post.id}) }}">
|
|
|
|
{{ entity.post.title }}
|
|
|
|
</a>
|
2021-03-30 19:35:49 +02:00
|
|
|
</li>
|
2021-04-01 16:26:08 +02:00
|
|
|
{% if entity.parentComment %}
|
|
|
|
<li class="list-group-item">
|
|
|
|
<span class="font-weight-bold pb-2 d-block">
|
2021-04-01 16:27:55 +02:00
|
|
|
Réponse à
|
2021-04-01 16:26:08 +02:00
|
|
|
<a href="{{ path('admin_blog_comment_show', {entity: entity.parentComment.id}) }}">
|
|
|
|
{{ entity.parentComment.author }} - {{ entity.parentComment.createdAt|date('d/m/Y H:i') }}
|
|
|
|
</a>
|
|
|
|
</span>
|
2021-03-30 19:35:49 +02:00
|
|
|
|
2021-04-01 16:26:08 +02:00
|
|
|
{% if entity.parentComment.createdAt.timestamp > 1538118768 %} {# 28/09/2018 #}
|
|
|
|
{{- entity.parentComment.content|markdown('comment') -}}
|
|
|
|
{% else %}
|
|
|
|
{{- entity.parentComment.content|comment -}}
|
|
|
|
{% endif %}
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
2021-03-30 19:35:49 +02:00
|
|
|
<li class="list-group-item">
|
|
|
|
<span class="font-weight-bold pb-2 d-block">Status</span>
|
|
|
|
|
|
|
|
{{ entity.isActive ? 'En ligne' : 'Hors ligne' }}
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2021-04-20 11:49:17 +02:00
|
|
|
<div class="col-md-8 p-3">
|
2021-03-30 19:35:49 +02:00
|
|
|
<div class="font-weight-bold pb-2">Contenu</div>
|
|
|
|
|
|
|
|
{% if entity.createdAt.timestamp > 1538118768 %} {# 28/09/2018 #}
|
|
|
|
{{- entity.content|markdown('comment') -}}
|
|
|
|
{% else %}
|
|
|
|
{{- entity.content|comment -}}
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block css %}
|
|
|
|
{{ parent() }}
|
|
|
|
|
|
|
|
<style>
|
|
|
|
#post-content img {
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
{% endblock %}
|