Version matrix
Signed-off-by: Eike Stepper <stepper@esc-net.de>
diff --git a/downloads/versions.css b/downloads/versions.css
new file mode 100644
index 0000000..1f74856
--- /dev/null
+++ b/downloads/versions.css
@@ -0,0 +1,13 @@
+* {
+ font-size: 100%;
+ font-family: Arial, Helvetica, sans-serif;
+}
+
+table {
+ border: 1px #808080;
+}
+
+a {
+ color: #FFFFFF;
+ text-decoration: none;
+}
diff --git a/downloads/versions.php b/downloads/versions.php
index 8d10c52..31c406b 100644
--- a/downloads/versions.php
+++ b/downloads/versions.php
@@ -2,7 +2,7 @@
<head>
<title>CDO Model Repository - Downloads | Version Comparison</title>
-<link rel="stylesheet" type="text/css" href="/cdo/styles.css" media="screen"/>
+<link rel="stylesheet" type="text/css" href="versions.css" media="screen"/>
</head>
<body>
@@ -94,7 +94,7 @@
print " </tr>\n";
-headLine($releases, "Drop", "drop", function($v) { return "<a href=\"https://download.eclipse.org/modeling/emf/cdo/drops/$v\">$v</a>"; });
+headLine($releases, "Date", "drop", function($v) { $l = simpleDate($v); return "<a href=\"https://download.eclipse.org/modeling/emf/cdo/drops/$v\">$l</a>"; });
headLine($releases, "Commit", "commit", function($v) { $l = substr($v, 0, 7); return "<a href=\"https://git.eclipse.org/c/cdo/cdo.git/commit/?id=$v\">$l</a>"; });
headLine($releases, "Simrel", "train", function($v) { return "<a href=\"https://www.eclipse.org/downloads/packages/release/$v\">$v</a>"; });
headLine($releases, "Eclipse", "eclipse");
@@ -158,6 +158,14 @@
return "$segments[0].$segments[1].$segments[2]";
}
+function simpleDate($drop)
+{
+ $y = substr($v, 1, 4);
+ $m = substr($v, 5, 2);
+ $d = substr($v, 7, 2);
+ return "$y‑$m‑$d";
+}
+
function contains($haystack, $needle)
{
return strpos($haystack, $needle) !== false;