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.

45 lines
1.5 KiB

5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 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. {% if is_granted('IS_AUTHENTICATED_FULLY') %}
  8. <div class="row">
  9. <div class="col mb-3">
  10. <div class="btn-group">
  11. <a href="{{ path('app_project_create') }}" class="btn btn-secondary">Créer un projet</a>
  12. </div>
  13. </div>
  14. </div>
  15. {% endif %}
  16. {% if projects is not empty %}
  17. <div class="row">
  18. {% for project in projects %}
  19. <div class="col col-md-4 mb-3">
  20. <div class="card h-100">
  21. <div class="card-body">
  22. <h2 class="card-title">
  23. {{ project.name }}
  24. {% for tag in project.tags %}
  25. <span class="badge text-bg-info ms-2">{{ tag.name }}</span>
  26. {% endfor %}
  27. </h2>
  28. <p class="card-subtitle mb-2 text-muted">{% include 'partials/_project-metadata.html.twig' %}</p>
  29. {% if project.description %}<p class="card-text">{{ project.description|markdown_to_html }}</p>{% endif %}
  30. <a href="{{ path('app_project_show', {'slug': project.slug}) }}" class="btn btn-primary">Voir le détail</a>
  31. </div>
  32. </div>
  33. </div>
  34. {% endfor %}
  35. </div>
  36. {% else %}
  37. {% if not is_granted('IS_AUTHENTICATED_FULLY') %}
  38. <p>Il n’y a pas encore de projet. Connectez-vous pour pouvoir en créer un.</p>
  39. {% endif %}
  40. {% endif %}
  41. {% endblock %}