[gimp-web/testing] Add styling and language to 'Development Downloads' page



commit 7936a9fb1061be0e1bc3fb1ff1b2d8573777e4e4
Author: Pat David <patdavid gmail com>
Date:   Mon Aug 28 12:07:37 2017 -0500

    Add styling and language to 'Development Downloads' page
    
    Add image of Tacoma Narrows bridge as page image.
    Add section pointing out this is the dev download page.
    Add red text to emphasize this is the dev download page. :)
    Fixed any links needed.

 content/downloads/devel/tacoma-narrows.jpg         |  Bin 0 -> 45392 bytes
 pelicanconf.local.py                               |   25 +++++++++++++++
 themes/newgimp/static/css/downloads.css            |    4 ++
 .../newgimp/templates/downloads-development.html   |   33 ++++++++++++-------
 4 files changed, 50 insertions(+), 12 deletions(-)
---
diff --git a/content/downloads/devel/tacoma-narrows.jpg b/content/downloads/devel/tacoma-narrows.jpg
new file mode 100644
index 0000000..315835e
Binary files /dev/null and b/content/downloads/devel/tacoma-narrows.jpg differ
diff --git a/pelicanconf.local.py b/pelicanconf.local.py
index b9fff08..3913947 100644
--- a/pelicanconf.local.py
+++ b/pelicanconf.local.py
@@ -177,6 +177,31 @@ if 'STABLE' in GIMP:
 else:
     print 'STABLE not defined'
 
+if 'DEVELOPMENT' in GIMP:
+    # development version
+    GIMP_VERSION_DEVELOPMENT = GIMP['DEVELOPMENT'].keys()[0]
+    for version, info in GIMP['DEVELOPMENT'].iteritems() :
+        if 'date' in info:
+            try:
+                RELEASE_DATE_DEVELOPMENT
+            except NameError:
+                RELEASE_DATE_DEVELOPMENT = info['date']
+        if 'windows' in info:
+            try:
+                WINDOWS_FILE_DEVELOPMENT
+            except NameError:
+                WINDOWS_VER_DEVELOPMENT = version
+                WINDOWS_FILE_DEVELOPMENT = info['windows'].keys()[0]
+                WINDOWS_HASH_DEVELOPMENT = info['windows'].values()[0]
+        if 'macos' in info:
+            try:
+                MACOS_FILE_DEVELOPMENT
+            except NameError:
+                MACOS_VER_DEVELOPMENT = version
+                MACOS_FILE_DEVELOPMENT = info['macos'].keys()[0]
+                MACOS_HASH_DEVELOPMENT = info['macos'].values()[0]
+else:
+    print 'DEVELOPMENT not defined'
 
 #
 # Random Header Background Image
diff --git a/themes/newgimp/static/css/downloads.css b/themes/newgimp/static/css/downloads.css
index 1cff4ef..01c224a 100644
--- a/themes/newgimp/static/css/downloads.css
+++ b/themes/newgimp/static/css/downloads.css
@@ -63,3 +63,7 @@
     .mirrors {
         display: none;
     }
+    
+    p.tRed {
+        color: red;
+    }
diff --git a/themes/newgimp/templates/downloads-development.html 
b/themes/newgimp/templates/downloads-development.html
index ed240ef..b170b68 100644
--- a/themes/newgimp/templates/downloads-development.html
+++ b/themes/newgimp/templates/downloads-development.html
@@ -13,16 +13,23 @@
 {% block data %}
 
     <figure>
-    <img src="downloadsplash-aryeom.jpg" alt="Download Splash Image courtesy of Aryeom" />
+    <img src="tacoma-narrows.jpg" alt="Tacoma Narrows Bridge Collapse" />
     </figure>
 
-    <h2>Current Development Version</h2>
-    <p>The current development release of GIMP is <b>{{ GIMP_VERSION_DEVELOPMENT }}</b> ({{ 
RELEASE_DATE_DEVELOPMENT }}).</p>
+    <h2>Please Note</h2>
+    <p class='tRed'>This is the download page for <strong>the development version of GIMP</strong>.</p>
+    <p>That means these builds are a work-in-progress. 
+        Please proceed with caution because <em>they may be unstable</em>.
+        If a crash does occur, please <a href='/bugs/' title='GIMP Bugs'>report it</a>!</p>
 
     {% if GIMP_VERSION is defined %}
-    <p>Looking for the stable GIMP {{ GIMP_VERSION }} release?<br />Get it on our <a 
href="/downloads/">downloads page</a>.</p>
+    <p>If you're looking for the stable GIMP {{ GIMP_VERSION }} release instead, you can find it on our <a 
href="/downloads/">downloads page</a>.</p>
     {% endif %}
 
+    <h2>Current Development Version</h2>
+    <p>The current development release of GIMP is <b>{{ GIMP_VERSION_DEVELOPMENT }}</b> ({{ 
RELEASE_DATE_DEVELOPMENT }}).</p>
+
+
     <div class="OSTEST">
         <p>
             We think your OS is 
@@ -34,17 +41,19 @@
         </p>
 
         <p id='others'>
-            Show downloads for 
-            <span class="show_links" id='os_linux'>GNU/Linux</span>&nbsp;|
-            <span class="show_links" id='os_mac'>OS&nbsp;X</span>&nbsp;|
-            <span class="show_links" id='os_win'>Microsoft&nbsp;Windows</span>&nbsp;| 
-            <span class="show_links" id='os_all'>All</span>
+            <small>
+                Show downloads for 
+                <span class="show_links" id='os_linux'>GNU/Linux</span>&nbsp;|
+                <span class="show_links" id='os_mac'>OS&nbsp;X</span>&nbsp;|
+                <span class="show_links" id='os_win'>Microsoft&nbsp;Windows</span>&nbsp;| 
+                <span class="show_links" id='os_all'>All</span>
+            </small>
         </p>
 
     </div>
 
     <div id='linux' class="os linux" markdown='1'>
-        <h2>GIMP for Unix-like systems</h2>
+        <h2>GIMP (development version) for Unix-like systems</h2>
 
         <p>It's very likely your Unix-like system such as a GNU/Linux distribution already comes with a GIMP 
package. It is a preferred method of installing GIMP, as the distribution maintainers take care of all the 
dependencies and bug fix updates. Please note that many distros decide to pin a specific version of GIMP to 
their releases.</p>
 
@@ -63,7 +72,7 @@
 
 
     <div id='mac' class="os mac" markdown="1">
-        <h2>GIMP for Mac OS X</h2>
+        <h2>GIMP (development version) for Mac OS X</h2>
 
 {% if MACOS_FILE_DEVELOPMENT is defined %}
 
@@ -116,7 +125,7 @@
     </div>
 
     <div id='win' class="os win" markdown="1">
-    <h2>GIMP for Windows</h2>
+    <h2>GIMP (development version) for Windows</h2>
 
 {% if WINDOWS_FILE_DEVELOPMENT is defined %}
 


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