You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
966 B

4 months ago
  1. {% extends 'base.html.twig' %}
  2. {% block breadcrumb %}
  3. <li class="breadcrumb-item"><a href="{{ path('app_project') }}">Projets</a></li>
  4. {% endblock %}
  5. {% block page_title %}Projets{% endblock %}
  6. {% block page_content %}
  7. <div class="row">
  8. <div class="col mb-3">
  9. <a href="{{ path('app_project_create') }}" class="btn btn-primary">Créer un projet</a>
  10. </div>
  11. </div>
  12. {% if projects is not empty %}
  13. <div class="row">
  14. {% for project in projects %}
  15. <div class="col col-md-4 mb-3">
  16. <div class="card h-100">
  17. <div class="card-body">
  18. <h2 class="card-title">{{ project.name }}</h2>
  19. {% if project.description %}<p class="card-text">{{ project.description|markdown_to_html }}</p>{% endif %}
  20. <a href="{{ path('app_project_show', {'slug': project.slug}) }}" class="btn btn-primary">Voir</a>
  21. </div>
  22. </div>
  23. </div>
  24. {% endfor %}
  25. </div>
  26. {% endif %}
  27. {% endblock %}