[gimp-web] Also use the comment section for the development download page.



commit f53a578720622006b0fe189f833522ff43600398
Author: Jehan <jehan girinstud io>
Date:   Mon Mar 8 16:34:25 2021 +0100

    Also use the comment section for the development download page.

 pelicanconf_common.py                               |  6 ++++++
 themes/newgimp/templates/downloads-development.html | 10 ++++++++++
 2 files changed, 16 insertions(+)
---
diff --git a/pelicanconf_common.py b/pelicanconf_common.py
index cf05014a..60f72ba4 100644
--- a/pelicanconf_common.py
+++ b/pelicanconf_common.py
@@ -300,6 +300,12 @@ if 'DEVELOPMENT' in GIMP:
                 elif 'md5' in info['windows'][0]:
                     WINDOWS_HASH_FUN_DEVELOPMENT = 'md5'
                 WINDOWS_HASH_DEVELOPMENT = info['windows'][0][WINDOWS_HASH_FUN_DEVELOPMENT]
+                if 'comment' in info['windows'][0]:
+                    WINDOWS_COMMENT_DEVELOPMENT = info['windows'][0]["comment"]
+                if 'date' in info['windows'][0]:
+                    WINDOWS_DATE_DEVELOPMENT = info['windows'][0]["date"]
+                if 'revision' in info['windows'][0]:
+                    WINDOWS_REVISION_DEVELOPMENT = info['windows'][0]["revision"]
         if 'macos' in info:
             try:
                 MACOS_FILE_DEVELOPMENT
diff --git a/themes/newgimp/templates/downloads-development.html 
b/themes/newgimp/templates/downloads-development.html
index d59c51c1..4ee35070 100644
--- a/themes/newgimp/templates/downloads-development.html
+++ b/themes/newgimp/templates/downloads-development.html
@@ -258,6 +258,16 @@
     </p>
     {% endif %}
 
+    {% if WINDOWS_COMMENT_DEVELOPMENT is defined %}
+    <small>
+        <p id='download-comment'>
+            <strong>Updated on {{ WINDOWS_DATE_DEVELOPMENT }}:
+            GIMP {{ WINDOWS_VER_DEVELOPMENT }} installer revision {{ WINDOWS_REVISION_DEVELOPMENT }}</strong>
+            </br> {{ WINDOWS_COMMENT_DEVELOPMENT }}
+        </p>
+    </small>
+    {% endif %}
+
     <p>
         <span class='win-button' id='win-torrent'>
             <a href="//download.gimp.org/pub/gimp/v{{ WINDOWS_VER_DEVELOPMENT.split('.')[0] }}.{{ 
WINDOWS_VER_DEVELOPMENT.split('.')[1] }}/windows/{{ WINDOWS_FILE_DEVELOPMENT }}.torrent" title="Download GIMP 
via BitTorrent" id="win-torrent-link">


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