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

Commit

Permalink
CoworkersPatchwork populates from /coworkers
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinDelille committed Oct 8, 2020
1 parent 091a356 commit afd5f57
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
4 changes: 3 additions & 1 deletion dist/user/pages/coworkers/alexandre-belleville/coworker.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
custom:
name: 'Alexandre Belleville'
first_name: 'Alexandre'
last_name: 'Belleville'
activity: 'Développeur'
---

### Que fais-tu dans la vie
Expand Down
6 changes: 4 additions & 2 deletions dist/user/pages/coworkers/martin-delille/coworker.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
---
custom:
name: 'Martin Delille'
image: 'martin_soiree_clip.jpg'
first_name: 'Martin'
last_name: 'Delille'
activity: 'Développeur'
profile_picture: 'martin_soiree_clip.jpg'
---

### Que fais-tu dans la vie
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,18 @@

<div class="CoworkersPatchwork_content">
<ul class="CoworkersPatchwork_items">
{% for coworker in coworkers %}
{% for coworker in page.find('/coworkers').children %}
<li class="CoworkersPatchwork_item">
<div class="CoworkersPatchwork_image"
style="background-image: url( {{ coworker.profile_picture }}) ">
style="background-image: url( /coworkers/{{ coworker.title | lower }}/{{ coworker.header.custom.profile_picture }}) ">
<div class="CoworkersPatchwork_description">
<div class="CoworkersPatchwork_descriptionContent">
<div class="CoworkersPatchwork_name">
<span>{{ coworker.first_name }} </span>
<span>{{ coworker.header.custom.first_name }} </span>
<br/>
<span>{{ coworker.last_name }}</span>
<span>{{ coworker.header.custom.last_name }}</span>
</div>
<div class="CoworkersPatchwork_activity">{{ coworker.activity }}</div>
<div class="CoworkersPatchwork_activity">{{ coworker.header.custom.activity }}</div>
</div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions dist/user/themes/adm/templates/coworkers.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@


{% for p in page.collection %}
<h2>{{ p.header.custom.name }}</h2>
<img src="coworkers/{{ p.title | lower }}/{{ p.header.custom.image }}" alt={{p.header.custom.name}}/>
<h2>{{ p.header.custom.first_name}} {{p.header.custom.last_name }}</h2>
<img src="coworkers/{{ p.title | lower }}/{{ p.header.custom.profile_picture }}" alt="{{p.header.custom.first_name}} {{p.header.custom.last_name}}"/>
{{ p.summary }}
{% endfor %}

Expand Down

0 comments on commit afd5f57

Please sign in to comment.