Skip to content
This repository has been archived by the owner on Nov 13, 2022. It is now read-only.

Commit

Permalink
Use CoworkersPatchwork in CoworkersPage
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinDelille committed Feb 21, 2021
1 parent ea1b526 commit 37ed4a9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
<ul class="CoworkersPatchwork_items">
{% for coworker in page.find('/coworkers').children %}
<li class="CoworkersPatchwork_item">
<a href="/coworkers/{{ coworker.title | lower }}">
<a href="/coworkers/{{ coworker.slug }}">
<div class="CoworkersPatchwork_image"
style="background-image: url( /coworkers/{{ coworker.title | lower }}/{{ coworker.header.custom.profile_picture }}) ">
style="background-image: url( /coworkers/{{ coworker.slug }}/{{ coworker.header.custom.profile_picture }}) ">
<div class="CoworkersPatchwork_description">
<div class="CoworkersPatchwork_descriptionContent">
<div class="CoworkersPatchwork_name">
Expand Down
10 changes: 3 additions & 7 deletions dist/user/themes/adm/templates/coworkers.html.twig
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
{% extends 'partials/layout.html.twig' %}
{% block content %}

<div class="CoworkersPage {{ classElement }}">
{% for p in page.collection %}
<h2>{{ p.header.custom.first_name}} {{p.header.custom.last_name }}</h2>
<img src="coworkers/{{ p.slug | lower }}/{{ p.header.custom.profile_picture }}" alt="{{p.header.custom.first_name}} {{p.header.custom.last_name}}"/>
{{ p.summary }}
{% endfor %}
</div>
{# Patchwork #}
{% include "components/CoworkersPatchwork.html.twig"
with { classElement: 'HomePage_coworkersPatchwork' } %}

{% endblock %}

0 comments on commit 37ed4a9

Please sign in to comment.