Skip to content

Commit

Permalink
add planification period
Browse files Browse the repository at this point in the history
  • Loading branch information
inanamm committed Jul 24, 2024
1 parent 5c1e0c4 commit 2126daf
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 20 deletions.
2 changes: 1 addition & 1 deletion content/projects/7_projekt-7/project.de.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Information:
projectdetails: competition result
value: '<p>2. Preis</p>'
-
projectdetails: timeframe
projectdetails: planification period
value: 2015–2019

----
Expand Down
53 changes: 34 additions & 19 deletions site/templates/worklist.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,29 +146,44 @@ class="grid grid-rows-2 auto-cols-fr grid-flow-col lg:grid-flow-row lg:grid-rows
<?php endif ?>
</div>

<?php
$collab2 = $info->findBy("projectdetails", "collaboration");
$architecture2 = $info->findBy("projectdetails", "architecture");
?>
<?php if ($collab2): ?>
<div class="col-span-1 lg:col-span-2">
<?= $collab2->value()->excerpt(0, true) ?>
</div>
<?php endif ?>
<?php if (!$collab2 && $architecture2): ?>
<div class="col-span-1 lg:col-span-2">
<?= $architecture2->value()->excerpt(0, true) ?>
</div>
<?php endif ?>



<div class="lg:col-span-2 lg:col-end-13 lg:text-right">
<?php
$collab2 = $info->findBy("projectdetails", "collaboration");
$architecture2 = $info->findBy("projectdetails", "architecture");
?>
<?php if ($collab2): ?>
<div class="col-span-1 lg:col-span-2">
<?= $collab2->value()->excerpt(0, true) ?>
</div>
<?php endif ?>
<?php if (!$collab2 && $architecture2): ?>
<div class="col-span-1 lg:col-span-2">
<?= $architecture2->value()->excerpt(0, true) ?>
</div>
<?php endif ?>



<!-- <div class="lg:col-span-2 lg:col-end-13 lg:text-right">
<?php $timeframe = $info->findBy("projectdetails", "timeframe") ?>
<?php if ($timeframe): ?>
<?= $timeframe->value() ?>
<?php endif ?>
</div>
</div> -->

<?php
$timeframe = $info->findBy("projectdetails", "timeframe");
$planificationperiod = $info->findBy("projectdetails", "planification period");
?>
<?php if ($timeframe): ?>
<div class="lg:col-span-2 lg:col-end-13 lg:text-right">
<?= $timeframe->value() ?>
</div>
<?php endif ?>
<?php if (!$timeframe && $planificationperiod): ?>
<div class="lg:col-span-2 lg:col-end-13 lg:text-right">
<?= $planificationperiod->value() ?>
</div>
<?php endif ?>

</a>
<?php endforeach ?>
Expand Down

0 comments on commit 2126daf

Please sign in to comment.