mirror of
https://github.com/ShaYmez/FreeSTAR-Status-Engine.git
synced 2026-06-02 06:04:44 -04:00
redesign badge
This commit is contained in:
+11
-7
@@ -197,13 +197,17 @@ class Incident implements JsonSerializable
|
||||
<?php echo $Parsedown->setBreaksEnabled(true)->text($this->text); ?>
|
||||
</div>
|
||||
<div class="card-footer bg-transparent border-<?php echo $classes[$this->type]; ?>">
|
||||
<?php echo _("Impacted service(s): ");
|
||||
foreach ($this->service_name as $value) {
|
||||
echo '<br><span class="badge bg-secondary">' . $value . '</span> ';
|
||||
}
|
||||
if (isset($this->end_date)) { ?>
|
||||
<span class="float-end"><?php echo strtotime($this->end_date) > time() ? _("Ending") : _("Ended"); ?>: <time class="timeago" datetime="<?php echo $this->end_date; ?>"><?php echo $this->end_date; ?></time></span>
|
||||
<?php } ?>
|
||||
<p class="card-title">
|
||||
<?php echo _("Impacted service(s): "); ?>
|
||||
<?php if (isset($this->end_date)) { ?>
|
||||
<span class="float-end"><?php echo strtotime($this->end_date) > time() ? _("Ending") : _("Ended"); ?>: <time class="timeago" datetime="<?php echo $this->end_date; ?>"><?php echo $this->end_date; ?></time></span>
|
||||
<?php } ?>
|
||||
</p>
|
||||
<p class="card-badge">
|
||||
<?php foreach ($this->service_name as $value) {
|
||||
echo '<span class="badge bg-secondary">' . $value . '</span> ';
|
||||
} ?>
|
||||
</p>
|
||||
</div>
|
||||
</article>
|
||||
<?php
|
||||
|
||||
Reference in New Issue
Block a user