{% extends 'template.html' %}
{% load staticfiles %}
{% block content %}
	 <!-- projet Grid Section -->
    <section  class = "success">
        <div class="container">
            <div class="row">
                <div class="col-lg-12 text-center">
                    <h2 class="">Projets</h2>
                    <hr class="star-light">
                </div>
            </div>
            <div class="row">
                {% for project in projects %}
                <div class="col-md-4 list-item projet">
                    <a href="{% url 'project:show' project.id %}" class="list-link bordered">
                        <div class="caption">
                            <div class="caption-content">
                                <i class="fa fa-search-plus fa-3x"><h3>{{ project.name }}</h3></i>
                            </div>
                        </div>
                        {% if project.screenshot %}
                            <img src="{{ project.screenshot.url }}" alt=""/>
                        {% else %}
                            <img src="{% static 'img/projet/cabin.png' %}" alt=""/>
                        {% endif %}
                    </a>
                </div>
                {% endfor %}
            </div>
        </div>
    </section>
{% endblock %}
