123456789101112131415161718192021222324252627282930313233343536373839 |
- {% 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>
- <p class="article-by">
- {% for tag in article.tags %}
- <a href="{{ path('app_search', {'tag': tag.name}) }}"><span class="tag">{{ tag }}</span></a>
- {% if not loop.last %} {% endif %}
- {% endfor %}
- </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 %}
|