This commit is contained in:
www-data 2022-04-27 20:22:46 +02:00
commit 92ca25b578
3 changed files with 29 additions and 14 deletions

View file

@ -38,15 +38,17 @@
<div id="headline" class="flex-box row">
<div id="header-left" class="flex-box row center">
<div id="status-icon" class="icon tooltip">
<span class="tooltiptext">Befinden sich Leute im Raum?</span>
<?php
include_once '../src/getContent.php';
try {
include_once '../src/getContent.php';
getKrautButton($status);
} catch(Exception $ex) {
error_log("$ex", 0);
echo getKrautButton($status);
} catch(Throwable $th) {
echo '<span class="tooltiptext">
Fehler beim Parsen des Raumstatus</span>
<img alt="Raumstatus Icon - Fehler beim Parsen"
class="icon-img" src="./images/icons/question.svg"/>';
}
?>
?>
</div>
<div id="banner-div" class="flex-box column">
<a id="banner" href="#"
@ -164,7 +166,12 @@
<h3>Termine</h3>
<?php
require_once '../src/getEvents.php';
printEventList();
try {
printEventList();
} catch (Throwable $th) {
echo '<p>Sorry ... keine Termine verfügbar</p>';
error_log($th->getMessage(), 0);
}
?>
</div>
@ -198,7 +205,7 @@
<h4 class="aside">Twitter</h4>
<ul class="aside">
<li>
<a
<a rel="me"
href="https://twitter.com/hackspacejena">twitter.com/hackspacejena</a>
</li>
</ul>
@ -207,7 +214,7 @@
<h4 class="aside">Mastodon</h4>
<ul class="aside">
<li>
<a
<a rel="me"
href="https://chaos.social/@krautspace">chaos.social/@krautspace</a>
</li>
</ul>