{% extends 'base.html.twig' %} {% block title %}{{ parent() }} - {{article.title}}{% endblock %} {% block body %} <a href="{{ path('app_index')}}">Retour au blog</a> {% if not workflow_has_marked_place(article, 'published') %} <div class="unpublished"> {{ article.state | trans }} </div> {% endif %} <div> <article class="article"> <header class="titre-article"> <h1>{{ article.title}}</h1> <p class="article-by">{{ article.publicationDate | format_date('long')}} - {{ article.author }}</p> </header> <section class="contenu"> {{ article.content | markdown }} </section> <footer></footer> </article> </div> <a href="{{ path('app_index')}}">Retour au blog</a> {% if is_granted('edit', article) %} <a class="btn btn-blue" href="{{ path('app_article_edit', {'id': article.id}) }}">Modifier cet article</a> {% endif %} {% endblock %}