[gimp-web/testing] Use variables for development version.



commit 4b482b681a914d5d6ad49c7c4ca1070eeab59287
Author: Jehan <jehan girinstud io>
Date:   Sun Sep 24 17:08:42 2017 +0200

    Use variables for development version.
    
    We were still advertising version 2.9.4 as it was hardcoded.

 themes/newgimp/templates/downloads.html |   21 +++++++++++----------
 1 files changed, 11 insertions(+), 10 deletions(-)
---
diff --git a/themes/newgimp/templates/downloads.html b/themes/newgimp/templates/downloads.html
index 2d854d2..4357a60 100644
--- a/themes/newgimp/templates/downloads.html
+++ b/themes/newgimp/templates/downloads.html
@@ -285,19 +285,20 @@
 
     <p>A detailed list of changes in the development branch is available in <a 
href="https://git.gnome.org/cgit/gimp/plain/NEWS";>git</a>.</p>
 
-    <p>GIMP 2.9.4 is now available at <a 
href="//download.gimp.org/mirror/pub/gimp/v2.9/">https://download.gimp.org/mirror/pub/gimp/v2.9/</a>.</p>
+    <p>GIMP {{ GIMP_VERSION_DEVELOPMENT }} is now available at <a 
href="//download.gimp.org/mirror/pub/gimp/v2.9/">https://download.gimp.org/mirror/pub/gimp/v2.9/</a>.</p>
 
     <p>To allow you to check the integrity of the tarballs, here are the MD5 sums of the latest development 
snapshots:</p>
 
-    <p>
-        <strong>gimp-2.9.4.tar.bz2</strong><br>  
-        <kbd>6b3d425a7949110eeb532badedf721f3</kbd>
-    </p>
-
-    <p>
-        <strong>gimp-2.9.2.tar.bz2</strong><br>  
-        <kbd>aa8a846a497e3328c5b7d2fd33f5cf63</kbd>
-    </p>
+    {% if GIMP.DEVELOPMENT %}
+        {% for version, values in GIMP.DEVELOPMENT.iteritems() %}
+            {% if 'source' in values %}
+            <p>
+                <strong>{{ values['source'].keys()[0] }}</strong><br>
+                <kbd>{{ values['source'].values()[0] }}</kbd>
+            </p>
+            {% endif %}
+        {% endfor %}
+    {% endif %}
 
     </div>
 


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