2023-04-16 03:31:40 +02:00
|
|
|
@extends(templates/layout_normal)
|
|
|
|
|
|
|
|
@section(main)
|
|
|
|
<div class="gridContainer">
|
|
|
|
<div>
|
|
|
|
<h3 class="marginBottom">Communities</h3>
|
|
|
|
<?php if (count($communities) > 0): ?>
|
|
|
|
<?php foreach ($communities as $community): ?>
|
2023-04-16 20:54:29 +02:00
|
|
|
<p><a href="<?= Container::$routeCollection->getRoute('community')->generateLink(['communityId' => $community->getId()]) ?>"><?= $community->getName() ?></a></p>
|
2023-04-16 03:31:40 +02:00
|
|
|
<?php endforeach; ?>
|
|
|
|
<?php else: ?>
|
|
|
|
<p>You have no community.</p>
|
|
|
|
<?php endif; ?>
|
|
|
|
<hr>
|
2023-04-16 20:54:29 +02:00
|
|
|
<p><a href="<?= Container::$routeCollection->getRoute('community-new')->generateLink() ?>">New community</a></p>
|
2023-04-16 03:31:40 +02:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<h3 class="marginBottom">Upcoming events</h3>
|
|
|
|
<?php if (count($upcomingEvents) > 0): ?>
|
|
|
|
<?php foreach ($upcomingEvents as $event): ?>
|
|
|
|
<!-- todo -->
|
|
|
|
<?php endforeach; ?>
|
|
|
|
<?php else: ?>
|
|
|
|
<p>There is no upcoming event.</p>
|
|
|
|
<?php endif; ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection
|