Skip to content

Commit aaa32bb

Browse files
author
jantje
committed
Update for #499
1 parent 9370184 commit aaa32bb

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

Eclipse update site/WebContent/status.php

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
require 'fragments/file-buttons.php';
3-
$STABLE_MAJOR_VERSION = 3;
4-
$STABLE_MINOR_VERSION = 0;
3+
$STABLE_MAJOR_VERSION = "3";
4+
$STABLE_MINOR_VERSION = "0";
55
$OS = "unknown";
66
$ARCH = "unknown";
77
$MAJOR_VERSION = "unknown";
@@ -38,27 +38,7 @@
3838
<link rel="shortcut icon" href="../../assets/ico/favicon.ico">
3939

4040
<?php
41-
4241
echo "<title>Should I upgrade from - $MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION.$QUALIFIER_VERSION on $OS</title>";
43-
if (($MAJOR_VERSION != $STABLE_MAJOR_VERSION) or ($MINOR_VERSION != $STABLE_MINOR_VERSION)) {
44-
echo "you are on the latest stable version. There is no need to upgrade.<br>";
45-
} else {
46-
echo "Please consider upgrading to the latest stable.<br>";
47-
if ($MAJOR_VERSION == "1") {
48-
echo "Are you really still running V1??? Why???<br>";
49-
} elseif ($MAJOR_VERSION == "2") {
50-
if ($MINOR_VERSION < "4") {
51-
echo '<a href="https://github.com/jantje/arduino-eclipse-plugin/issues?utf8=%E2%9C%93&q=%20label%3A%22status%3A%20fixed%20in%202.4%22%20"> Fixed in 2.4</a><br> )';
52-
}
53-
echo '<a href="https://github.com/jantje/arduino-eclipse-plugin/issues?utf8=%E2%9C%93&q=%20label%3A%22status%3A%20fixed%20in%203.0%22%20"> Fixed in 3.0</a><br> )';
54-
} elseif ($MAJOR_VERSION == "3") {
55-
if ($MINOR_VERSION == "0") {
56-
echo '<a href="https://github.com/jantje/arduino-eclipse-plugin/issues?utf8=%E2%9C%93&q=%20label%3A%22status%3A%20fixed%20in%203.1%22%20"> Fixed in 3.1</a><br> )';
57-
}
58-
}
59-
echo "Fixed in nightly<br>";
60-
echo '<a href="https://github.com/jantje/arduino-eclipse-plugin/issues?q=is%3Aissue+is%3Aopen+label%3A%22status%3A+fixed+in+nightly%22"> Fixed in nightly</a><br> )';
61-
}
6242
?>
6343
<!-- Bootstrap core CSS and theme -->
6444
<link rel="stylesheet"
@@ -88,8 +68,28 @@
8868

8969
<div class="container" role="main">
9070
<div class="page-header">
91-
<?php echo "<h1>You are running version $VERSION</h1>"; ?>
71+
<?php echo "<h1>You are running version $MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION.$QUALIFIER_VERSION on $OS</h1>"; ?>
9272
</div>
73+
<?php
74+
if (($MAJOR_VERSION == $STABLE_MAJOR_VERSION) and ($MINOR_VERSION == $STABLE_MINOR_VERSION)) {
75+
echo "you are on the latest stable version $STABLE_MAJOR_VERSION.$STABLE_MINOR_VERSION. There is no need to upgrade.<br>";
76+
} else {
77+
echo "Please consider upgrading to the latest stable.<br>";
78+
if ($MAJOR_VERSION == "1") {
79+
echo "<strong>Are you really still running V1??? Why???</strong><br>";
80+
} elseif ($MAJOR_VERSION == "2") {
81+
if ($MINOR_VERSION < "4") {
82+
echo '<a href="https://github.com/jantje/arduino-eclipse-plugin/issues?utf8=%E2%9C%93&q=%20label%3A%22status%3A%20fixed%20in%202.4%22%20"> Fixed in 2.4</a><br>';
83+
}
84+
echo '<a href="https://github.com/jantje/arduino-eclipse-plugin/issues?utf8=%E2%9C%93&q=%20label%3A%22status%3A%20fixed%20in%203.0%22%20"> Fixed in 3.0</a><br>';
85+
} elseif ($MAJOR_VERSION == "3") {
86+
if ($MINOR_VERSION == "0") {
87+
echo '<a href="https://github.com/jantje/arduino-eclipse-plugin/issues?utf8=%E2%9C%93&q=%20label%3A%22status%3A%20fixed%20in%203.1%22%20"> Fixed in 3.1</a><br>';
88+
}
89+
}
90+
}
91+
echo '<a href="https://github.com/jantje/arduino-eclipse-plugin/issues?q=is%3Aissue+label%3A%22status%3A+fixed+in+nightly%22"> Fixed in nightly</a><br>';
92+
?>
9393
</div>
9494
<div id="footer">
9595
<?php include 'fragments/footer.html';?>

0 commit comments

Comments
 (0)