Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
  • Loading branch information
lbr38 committed Jan 14, 2025
1 parent fb25123 commit 4e955bf
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
8 changes: 6 additions & 2 deletions www/views/includes/labels/label-icon-tr.inc.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
<div class="label-icon-tr">
<div class="label-icon-tr max-width-fit">
<img src="/assets/icons/<?= $icon ?>" class="icon-np" />
<div class="flex flex-direction-column raw-gap-2">
<p class="font-size-13"><?= $title ?></p>
<p class="font-size-13 mediumopacity-cst"><?= $count ?></p>
<?php
if (isset($count)) : ?>
<p class="font-size-13 mediumopacity-cst"><?= $count ?></p>
<?php
endif ?>
</div>
</div>
12 changes: 8 additions & 4 deletions www/views/includes/tables/host/requests.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,10 @@
/**
* If there was packages updated
*/
if (!empty($successPackages)) : ?>
<p class="label-green"><?= count($successPackages) ?> updated</p>
if (!empty($successPackages)) :
$icon = 'update-yellow.svg';
$title = count($successPackages) . ' packages updated';
include(ROOT . '/views/includes/labels/label-icon-tr.inc.php'); ?>

<div class="grid grid-3 row-gap-5 justify-space-between margin-top-10">
<?php
Expand Down Expand Up @@ -365,8 +367,10 @@
/**
* If there was packages failed
*/
if (!empty($failedPackages)) : ?>
<p class="label-red"><?= count($failedPackages) ?> failed</p>
if (!empty($failedPackages)) :
$icon = 'warning-red.svg';
$title = count($failedPackages) . ' packages failed';
include(ROOT . '/views/includes/labels/label-icon-tr.inc.php'); ?>

<div class="grid grid-3 row-gap-5 justify-space-between margin-top-10">
<?php
Expand Down

0 comments on commit 4e955bf

Please sign in to comment.