restored dashboard from usable

This commit is contained in:
Bachir Soussi Chiadmi
2018-10-25 16:18:42 +02:00
commit abc70f9e12
454 changed files with 46195 additions and 0 deletions
@@ -0,0 +1,30 @@
{% extends 'partials/base.html.twig' %}
{% block content %}
<div id="dashboard-filters">
{% include 'partials/dashboard-filters.html.twig' %}
</div>
<div id="dashboard-projects">
{% for child in page.collection %}
{% if child.header.visible == true %}
{% set image = child.media.images|first %}
{% if image == null %}
{% set image = child.media.files|first %}
{% endif %}
<section class="project">
<div class="mask">
<a href="{{child.url}}"></a>
<header>
<h1>{{child.title}}</h1>
<p>{{child.header.shortdescription}}</p>
</header>
</div>
<figure>
{{ image.resize(500).html }}
</figure>
</section>
{% endif %}
{% endfor %}
</div>
{% endblock %}