59 lines
2.2 KiB
Twig
59 lines
2.2 KiB
Twig
<div class="row">
|
|
<div class="col-md-4 p-3">
|
|
<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>
|
|
|
|
<a href="{{ path('admin_blog_post_show', {entity: entity.post.id}) }}">
|
|
{{ entity.post.title }}
|
|
</a>
|
|
</li>
|
|
{% if entity.parentComment %}
|
|
<li class="list-group-item">
|
|
<span class="font-weight-bold pb-2 d-block">
|
|
Réponse à
|
|
<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>
|
|
|
|
{% if entity.parentComment.createdAt.timestamp > 1538118768 %} {# 28/09/2018 #}
|
|
{{- entity.parentComment.content|markdown('comment') -}}
|
|
{% else %}
|
|
{{- entity.parentComment.content|comment -}}
|
|
{% endif %}
|
|
</li>
|
|
{% endif %}
|
|
<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>
|
|
<div class="col-md-8 p-3">
|
|
<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>
|