forked from Krautspace/webseite-krautspace
fehlerbehandlung beim statusicon geändert
getKrautStatus gibt jetzt einen string zurück. tooltip in den php-code verlegt. icon für fehler beim auswerten des statuscode hinzugefügt. catch prüft jetzt auf throwable.
This commit is contained in:
parent
d452c362ad
commit
6ffb650103
3 changed files with 21 additions and 11 deletions
|
@ -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="#"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue