[gimp-web/testing] Move hard-coded release date from template to GIMP_VERSIONS



commit 9a6c1a2d7c763da77c3aac6736aebd7de774e6d1
Author: Michael Schumacher <schumaml gmx de>
Date:   Fri May 12 19:10:05 2017 +0200

    Move hard-coded release date from template to GIMP_VERSIONS

 GIMP_VERSIONS                           |    9 +++++----
 pelicanconf.testing.py                  |    5 +++++
 themes/newgimp/templates/downloads.html |    2 +-
 3 files changed, 11 insertions(+), 5 deletions(-)
---
diff --git a/GIMP_VERSIONS b/GIMP_VERSIONS
index 401d36a..0714d20 100644
--- a/GIMP_VERSIONS
+++ b/GIMP_VERSIONS
@@ -2,6 +2,7 @@
     "STABLE":  {
 
         "2.8.22": {
+            "date": "2017-05-11",
             "source": {
                 "gimp-2.8.22.tar.bz2": "7e4fd7a53b1d3c32dff642ab1a94b44d"
                 },
@@ -11,7 +12,7 @@
             "windows": {
                 "gimp-2.8.22-setup.exe": "8e54225029a44ab6ef1fde09686fec7b"
                 }
-           },
+        },
 
         "2.8.20": {
             "source": {
@@ -23,7 +24,7 @@
             "windows": {
                 "gimp-2.8.20-setup.exe": "df90eaa5ababdbc4f2e7e0432ba36fe7"
                 }
-           },
+        },
 
         "2.8.18": {
             "source": {
@@ -33,8 +34,8 @@
                 "gimp-2.8.18-setup.exe": "510bb11abc72443f431226523fa21b6f"
                 },
             "macos": {
-               "gimp-2.8.18-x86_64-1.dmg": "b86d3b884011b931408c6233d71ee41a",
-               "gimp-2.8.18-x86_64.dmg": "81c62ee2a2708568a26db1d3c200c4ab"
+                "gimp-2.8.18-x86_64-1.dmg": "b86d3b884011b931408c6233d71ee41a",
+                "gimp-2.8.18-x86_64.dmg": "81c62ee2a2708568a26db1d3c200c4ab"
                 }
             },
 
diff --git a/pelicanconf.testing.py b/pelicanconf.testing.py
index d382ebb..23de9d6 100644
--- a/pelicanconf.testing.py
+++ b/pelicanconf.testing.py
@@ -139,6 +139,11 @@ if 'STABLE' in GIMP:
     # hence, .keys()[0]
     GIMP_VERSION = GIMP['STABLE'].keys()[0]
     for version, info in GIMP['STABLE'].iteritems() :
+        if 'date' in info:
+            try:
+                RELEASE_DATE
+            except NameError:
+                RELEASE_DATE = info['date']
         if 'windows' in info: 
             try:
                 WINDOWS_FILE
diff --git a/themes/newgimp/templates/downloads.html b/themes/newgimp/templates/downloads.html
index e01e9b7..55756f9 100644
--- a/themes/newgimp/templates/downloads.html
+++ b/themes/newgimp/templates/downloads.html
@@ -17,7 +17,7 @@
     </figure>
 
     <h2>Current Stable Version</h2>
-    <p>The current stable release of GIMP is <b>{{ GIMP_VERSION }}</b> (2017-05-11).</p>
+    <p>The current stable release of GIMP is <b>{{ GIMP_VERSION }}</b> ({{ RELEASE_DATE }}).</p>
 
 
     <div class="OSTEST">


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]