Skip to content

Commit

Permalink
Small yes / no fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerome-Herbinet authored Jun 20, 2023
1 parent b63d26d commit e0b7153
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
$label_date = "Major version support end date";
$label_days = "Number of days";
$label_left = "days left";
$label_ago = "days ago";

$label_ago = "days ago";
$label_yes = "yes";
$label_no = "no";
?>
<!DOCTYPE html>
<head>
Expand Down Expand Up @@ -104,15 +105,15 @@
}elseif($numberOfDays <= 15) {
$color = "red";
}
echo "<td>Oui</td>";
echo "<td>".$label_yes."</td>";
echo "<td>".$eolDate."</td>";
echo "<td><span style='color:".$color."'>".$numberOfDays." ".$label_left."</span></td>";
} else {
$color = "blueviolet";
if($numberOfDays <= 90){
$color = "red";
}
echo "<td>Non</td>";
echo "<td>".$label_no."</td>";
echo "<td>".$eolDate."</td>";
echo "<td><span style='color:".$color."'>".$numberOfDays." ".$label_ago."</span></td>";
}
Expand All @@ -131,6 +132,4 @@
<script src="jquery-1.12.4.min.js"></script>
<script src="jquery.filtertable.min.js"></script>
</body>
</html>


</html>

0 comments on commit e0b7153

Please sign in to comment.