mirror of
https://github.com/ShaYmez/FreeSTAR-Status-Engine.git
synced 2026-06-02 06:04:44 -04:00
cleanup, classes lifted to bootstrap 5
This commit is contained in:
@@ -186,12 +186,12 @@ class Incident implements JsonSerializable
|
||||
<div class="card-colore icon bg-<?php echo $classes[$this->type]; ?>"><i class="<?php echo $icons[$this->type]; ?>"></i></div>
|
||||
<div class="card-header bg-<?php echo $classes[$this->type]; ?> border-<?php echo $classes[$this->type]; ?>">
|
||||
<?php echo $this->title; ?>
|
||||
<time class="pull-right timeago" datetime="<?php echo $this->date; ?>"><?php echo $this->date; ?></time>
|
||||
<div class="float-end">
|
||||
<?php if ($admin) {
|
||||
echo '<a href="' . WEB_URL . '/admin/?delete=' . $this->id . '" class="pull-right delete"><i class="fa fa-trash"></i></a>';
|
||||
echo '<a href="' . WEB_URL . '/admin/?delete=' . $this->id . '" class="delete"><i class="fa fa-trash"></i></a>';
|
||||
} ?>
|
||||
</div>
|
||||
<time class="float-end timeago" datetime="<?php echo $this->date; ?>"><?php echo $this->date; ?></time>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php echo $Parsedown->setBreaksEnabled(true)->text($this->text); ?>
|
||||
@@ -199,10 +199,10 @@ class Incident implements JsonSerializable
|
||||
<div class="card-footer bg-transparent border-<?php echo $classes[$this->type]; ?>">
|
||||
<?php echo _("Impacted service(s): ");
|
||||
foreach ($this->service_name as $value) {
|
||||
echo '<span class="label label-default">' . $value . '</span> ';
|
||||
echo '<br><span class="badge bg-secondary">' . $value . '</span> ';
|
||||
}
|
||||
if (isset($this->end_date)) { ?>
|
||||
<span class="pull-right"><?php echo strtotime($this->end_date) > time() ? _("Ending") : _("Ended"); ?>: <time class="pull-right timeago" datetime="<?php echo $this->end_date; ?>"><?php echo $this->end_date; ?></time></span>
|
||||
<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 } ?>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
+10
-10
@@ -311,7 +311,7 @@ class User
|
||||
</div>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<button type="submit" class="btn btn-primary pull-right"><?php echo _("Change name"); ?></button>
|
||||
<button type="submit" class="btn btn-primary float-end"><?php echo _("Change name"); ?></button>
|
||||
</div>
|
||||
</form>
|
||||
<?php
|
||||
@@ -331,16 +331,16 @@ class User
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control" name="username" required value="<?php echo htmlspecialchars($this->username, ENT_QUOTES); ?>">
|
||||
<span class="input-group-btn">
|
||||
<button type="submit" class="btn btn-primary pull-right"><?php echo _("Change username"); ?></button>
|
||||
<button type="submit" class="btn btn-primary float-end"><?php echo _("Change username"); ?></button>
|
||||
</span>
|
||||
</div>
|
||||
<?php
|
||||
} else { ?><?php echo $this->username . " ";
|
||||
if ($user->get_rank() >= 1) {
|
||||
echo "<i class='fa fa-" . ($this->active ? "check success" : "times danger") . "'></i>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
if ($user->get_rank() >= 1) {
|
||||
echo "<i class='fa fa-" . ($this->active ? "check success" : "times danger") . "'></i>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@@ -354,7 +354,7 @@ class User
|
||||
echo "<option value='$key' " . ($key == $this->rank ? "selected" : "") . ">$value</option>";
|
||||
} ?>
|
||||
</select><span class="input-group-btn">
|
||||
<button type="submit" class="btn btn-primary pull-right"><?php echo _("Change role"); ?></button>
|
||||
<button type="submit" class="btn btn-primary float-end"><?php echo _("Change role"); ?></button>
|
||||
</span>
|
||||
</div><?php } else {
|
||||
echo $permissions[$this->rank];
|
||||
@@ -371,7 +371,7 @@ class User
|
||||
<div class="input-group">
|
||||
<input type="email" class="form-control" name="email" value="<?php echo $this->email; ?>">
|
||||
<span class="input-group-btn">
|
||||
<button type="submit" class="btn btn-primary pull-right"><?php echo _("Change email"); ?></button>
|
||||
<button type="submit" class="btn btn-primary float-end"><?php echo _("Change email"); ?></button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -401,7 +401,7 @@ class User
|
||||
<input id="new_password" placeholder="<?php echo _("New password"); ?>" type="password" class="form-control" name="password">
|
||||
<label for="new_password_check"><?php echo _("Repeat password"); ?></label>
|
||||
<input id="new_password_check" placeholder="<?php echo _("Repeat password"); ?>" type="password" class="form-control" name="password_repeat">
|
||||
<button type="submit" class="btn btn-primary pull-right margin-top"><?php echo _("Change password"); ?></button>
|
||||
<button type="submit" class="btn btn-primary float-end margin-top"><?php echo _("Change password"); ?></button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user