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

{% extends 'base.html.twig' %}
{% block breadcrumb %}
<li class="breadcrumb-item"><a href="{{ path('app_project') }}">Projets</a></li>
{% endblock %}
{% block page_title %}Projets{% endblock %}
{% block page_content %}
{% if is_granted('IS_AUTHENTICATED_FULLY') %}
<div class="row">
<div class="col mb-3">
<div class="btn-group">
<a href="{{ path('app_project_create') }}" class="btn btn-secondary">Créer un projet</a>
</div>
</div>
</div>
{% endif %}
{% if projects is not empty %}
<div class="row">
{% for project in projects %}
<div class="col col-md-4 mb-3">
<div class="card h-100">
<div class="card-body">
<h2 class="card-title">
{{ project.name }}
{% for tag in project.tags %}
<span class="badge text-bg-info ms-2">{{ tag.name }}</span>
{% endfor %}
</h2>
<p class="card-subtitle mb-2 text-muted">{% include 'partials/_project-metadata.html.twig' %}</p>
{% if project.description %}<p class="card-text">{{ project.description|markdown_to_html }}</p>{% endif %}
<a href="{{ path('app_project_show', {'slug': project.slug}) }}" class="btn btn-primary">Voir le détail</a>
</div>
</div>
</div>
{% endfor %}
</div>
{% else %}
{% if not is_granted('IS_AUTHENTICATED_FULLY') %}
<p>Il n’y a pas encore de projet. Connectez-vous pour pouvoir en créer un.</p>
{% endif %}
{% endif %}
{% endblock %}