[gnomeweb-wml] Improved gedit release information for OS X



commit 77f5a800878fa9d15bd89ae70189fe03b7350714
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date:   Mon Jan 16 10:21:24 2012 +0100

    Improved gedit release information for OS X

 projects.gnome.org/gedit/current-release.xml |    9 ++++++++-
 projects.gnome.org/gedit/layout.xsl          |   19 +++++++++++++++++--
 2 files changed, 25 insertions(+), 3 deletions(-)
---
diff --git a/projects.gnome.org/gedit/current-release.xml b/projects.gnome.org/gedit/current-release.xml
index 20dc040..ba37c66 100644
--- a/projects.gnome.org/gedit/current-release.xml
+++ b/projects.gnome.org/gedit/current-release.xml
@@ -2,6 +2,13 @@
   <version>3.2.6</version>
   <download>http://ftp.gnome.org/pub/GNOME/sources/gedit/3.2/gedit-3.2.6.tar.xz</download>
   <win32>http://ftp.gnome.org/pub/GNOME/binaries/win32/gedit/2.30/gedit-setup-2.30.1-1.exe</win32>
-  <osx>http://ftp.gnome.org/pub/GNOME/binaries/mac/gedit/3.2/gedit-3.2.6-2.dmg</osx>
+
+  <!-- For OS X -->
+  <osx>http://ftp.gnome.org/pub/GNOME/binaries/mac/gedit/3.2/</osx>
+
+  <osx platform="Tiger">gedit-3.2.6-2_Tiger_32bit.dmg</osx>
+  <osx platform="Leopard">gedit-3.2.6-2_Leopard_64bit.dmg</osx>
+  <osx platform="Snow Leopard">gedit-3.2.6-2_SnowLeopard_64bit.dmg</osx>
+
   <news>http://git.gnome.org/cgit/gedit/tree/NEWS</news>
 </release>
diff --git a/projects.gnome.org/gedit/layout.xsl b/projects.gnome.org/gedit/layout.xsl
index 6204e5a..7eaface 100644
--- a/projects.gnome.org/gedit/layout.xsl
+++ b/projects.gnome.org/gedit/layout.xsl
@@ -88,8 +88,23 @@
           <p>The latest release can always be found at the <a href="http://ftp.gnome.org/pub/GNOME/sources/gedit";>GNOME ftp site</a>.</p>
           <p>The latest stable release is <a href="{$release/download}"><xsl:value-of select="$release/version"/></a>
           (<a href="{$release/news}">what's new</a>).</p>
-          <p>The latest windows binary can be found from <a href="{$release/win32}">gedit win32 binary</a>.</p>
-          <p>The latest mac osx package can be found from <a href="{$release/osx}">gedit mac osx dmg</a>.</p>
+          <p>The latest windows binary can be found at <a href="{$release/win32}">gedit win32 binary</a>.</p>
+
+          <xsl:variable name="osx_tiger"><xsl:value-of select="$release/osx[ platform='Tiger']"/></xsl:variable>
+          <xsl:variable name="osx_tiger"><xsl:value-of select="$release/osx[ platform='Tiger']"/></xsl:variable>
+          <xsl:variable name="osx_tiger"><xsl:value-of select="$release/osx[ platform='Tiger']"/></xsl:variable>
+
+          <p>The latest mac osx package can be found at <a href="{$release/osx}">gedit mac osx</a> (<xsl:for-each select="$release/osx[string-length(@platform) &gt; 0]">
+            <xsl:choose>
+              <xsl:when test="(position() != 1) and (position() = last())">
+                <xsl:text> and </xsl:text>
+              </xsl:when>
+              <xsl:when test="(position() != 1) and (position() != last())">
+                <xsl:text>, </xsl:text>
+              </xsl:when>
+            </xsl:choose>
+            <a href="{$release/osx}{.}"><xsl:value-of select="@platform"/></a>
+          </xsl:for-each>)</p>
 
           <p class="section">Feedback</p>
           <p>Bugs should be reported to the <a href="http://bugzilla.gnome.org";>GNOME Bug Tracking System</a>.</p>



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