[gimp-web/testing] downloads: introduce optional comments for individual files



commit db02903c90ce73713707f7ec5c97325afd37ae4c
Author: Michael Schumacher <schumaml gmx de>
Date:   Thu Jan 16 21:23:35 2020 +0100

    downloads: introduce optional comments for individual files
    
    Currently testing this with the download for Microsoft Windows.

 content/gimp_versions.json              | 3 ++-
 pelicanconf.testing.py                  | 2 ++
 themes/newgimp/templates/downloads.html | 6 ++++++
 3 files changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/content/gimp_versions.json b/content/gimp_versions.json
index afa5ccea..d10bf345 100644
--- a/content/gimp_versions.json
+++ b/content/gimp_versions.json
@@ -24,7 +24,8 @@
                 "gimp-2.10.14-setup-3.exe": {
                         "sha512": 
"dbdbf1b917d591dce82ec41e3ca004a7aba8d837ff8ee9aacf45c09158e45ee9e6cf636ea4bab256e9d164a6982962d897bea7685eb1aea14860b911b1e7cef4",
                         "sha256": "e892450123f00aaa672f31f532ebdccfbba8b444862281cade047f7fcb5aa503",
-                        "min-support": "Windows 7"
+                        "min-support": "Windows 7",
+                        "comment": "GIMP 2.10.14 - Update 3 - Fixes issue #4385: GIMP 2.10.14 does not start 
on W10"
                 },
                 "gimp-2.10.14-setup-2.exe": {
                         "sha512": 
"9f69a0be2acd87b305427dafde1e7f6799097b22cecbfc2a0598187855c2069ffd3373c6261b7e126967559ad4c4560fc18a277e8a50125ddec9f0552c4569f0",
diff --git a/pelicanconf.testing.py b/pelicanconf.testing.py
index b9ded5e0..8892b6fc 100644
--- a/pelicanconf.testing.py
+++ b/pelicanconf.testing.py
@@ -164,6 +164,8 @@ if 'STABLE' in GIMP:
                 WINDOWS_HASH = info['windows'].values()[0][WINDOWS_HASH_FUN]
                 if 'min-support' in info['windows'].values()[0]:
                     WINDOWS_MIN_SUPPORT = info['windows'].values()[0]["min-support"]
+                if 'comment' in info['windows'].values()[0]:
+                    WINDOWS_COMMENT = info['windows'].values()[0]["comment"]
         if 'macos' in info:
             try:
                 MACOS_FILE
diff --git a/themes/newgimp/templates/downloads.html b/themes/newgimp/templates/downloads.html
index 52dbe0ab..7e468e8e 100644
--- a/themes/newgimp/templates/downloads.html
+++ b/themes/newgimp/templates/downloads.html
@@ -255,6 +255,12 @@
     </p>
     {% endif %}
 
+    {% if WINDOWS_COMMENT is defined %}
+    <p>
+        <em>Developers' comment:</em> {{ WINDOWS_COMMENT }}
+    </p>
+    {% endif %}
+
     <p>
         <span class='win-button' id='win-torrent'>
             <a


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