32 lines
1.4 KiB
Twig
32 lines
1.4 KiB
Twig
{% extends 'base.html.twig' %}
|
|
|
|
{% block body %}
|
|
<div class="post-detail t-post-detail">
|
|
<h2 class="t-title">{{ post.title }}</h2>
|
|
<div class="author t-author">
|
|
by <span class="t-user-name">{{ post.user.name }}</span> (<span class="t-user-email">{{ post.user.email }}</span>), <a class="t-user-website" href="http://{{ post.user.website|url_encode }}">{{ post.user.website }}</span></a>)
|
|
work at <span class="t-user-company">{{ post.user.company.name }}</span>
|
|
</div>
|
|
<p class="content t-content">
|
|
{{ post.body }}
|
|
</p>
|
|
{% if post.comments|length > 0 %}
|
|
<h3>Comments:</h3>
|
|
<div class="t-comments">
|
|
{% for comment in post.comments %}
|
|
<div class="card t-comment">
|
|
<div class="card-header t-comment-header">
|
|
<span class="t-comment-name">{{ comment.name }}</span> (<a class="t-comment-email" href="mailto:{{ comment.email|url_encode }}">{{ comment.email }}</a>)
|
|
</div>
|
|
<div class="card-body">
|
|
<p class="card-text t-comment-body">
|
|
{{ comment.body }}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
{% endblock %}
|