Bug 1566358 - Update releases page to include 64-bit Windows and Linux platforms - allow table footer to be defined by XML too r=me
authorIan Neal <iann_cvs@blueyonder.co.uk>
Thu, 25 Jul 2019 02:41:33 +0100
changeset 1362 5b9d4df758df791e51e8bc3056271a2a38c143e4
parent 1361 695b12b2d39a2c4bf99ee2fd84b87becbb9ad69f
child 1363 11294894620ca55b7bd27982f8f28375aa62ede7
push id136
push useriann_cvs@blueyonder.co.uk
push dateThu, 25 Jul 2019 01:43:15 +0000
reviewersme
bugs1566358
Bug 1566358 - Update releases page to include 64-bit Windows and Linux platforms - allow table footer to be defined by XML too r=me
lib/downloads_table.en.xml
lib/release.tmpl
--- a/lib/downloads_table.en.xml
+++ b/lib/downloads_table.en.xml
@@ -1,16 +1,19 @@
 <downloads summary="SeaMonkey builds available for download.">
   <header name="Language" colspan="2" class="top-left"/>
   <header name="Version" />
   <header name="Windows" second="x64" spanclass="download-win" />
   <header name="Windows" second="x86" spanclass="download-win" />
   <header name="macOS" second="x64" spanclass="download-mac" />
-  <header name="Linux" second="x64" class="top-right" spanclass="download-linux" />
+  <header name="Linux" second="x64" spanclass="download-linux" />
   <header name="Linux" second="x86" class="top-right" spanclass="download-linux" />
+  <footer class="bottom-left" />
+  <footer colspan="6" />
+  <footer class="bottom-right" />
   <language id="zh-CN">
     <cell name="Chinese (Simplified)" />
     <cell lang="zh-CN" native="中文 (简体)" />
     <cell version="" />
     <cell locale="zh-CN" class="download-win" platform="win64" content="Download" />
     <cell locale="zh-CN" class="download-win" platform="win" content="Download" />
     <cell locale="zh-CN" class="download-mac" platform="osx" content="Download" />
     <cell locale="zh-CN" class="download-linux" platform="linux64" content="Download" />
@@ -41,36 +44,36 @@
     <cell lang="nl" native="Nederlands" />
     <cell version="" />
     <cell locale="nl" class="download-win" platform="win64" content="Download" />
     <cell locale="nl" class="download-win" platform="win" content="Download" />
     <cell locale="nl" class="download-mac" platform="osx" content="Download" />
     <cell locale="nl" class="download-linux" platform="linux64" content="Download" />
     <cell locale="nl" class="download-linux" platform="linux" content="Download" />
   </language>
+  <language id="en-GB">
+    <cell name="English (British)" />
+    <cell lang="en-GB" native="English (British)" />
+    <cell version="" />
+    <cell locale="en-GB" class="download-win" platform="win64" content="Download" />
+    <cell locale="en-GB" class="download-win" platform="win" content="Download" />
+    <cell locale="en-GB" class="download-mac" platform="osx" content="Download" />
+    <cell locale="en-GB" class="download-linux" platform="linux64" content="Download" />
+    <cell locale="en-GB" class="download-linux" platform="linux" content="Download" />
+  </language>
   <language id="en-US">
     <cell name="English (US)" />
     <cell lang="en-US" native="English (US)" />
     <cell version="" />
     <cell locale="en-US" class="download-win" platform="win64" content="Download" />
     <cell locale="en-US" class="download-win" platform="win" content="Download" />
     <cell locale="en-US" class="download-mac" platform="osx" content="Download" />
     <cell locale="en-US" class="download-linux" platform="linux64" content="Download" />
     <cell locale="en-US" class="download-linux" platform="linux" content="Download" />
   </language>
-  <language id="en-GB">
-    <cell name="English (British)" />
-    <cell lang="en-GB" native="English (British)" />
-    <cell version="" />
-    <cell locale="en-GB" class="download-win" platform="win64" content="Download" />
-    <cell locale="en-GB" class="download-win" platform="win" content="Download" />
-    <cell locale="en-GB" class="download-mac" platform="osx" content="Download" />
-    <cell locale="en-GB" class="download-linux" platform="linux64" content="Download" />
-    <cell locale="en-GB" class="download-linux" platform="linux" content="Download" />
-  </language>
   <language id="fr">
     <cell name="French" />
     <cell lang="fr" native="Français" />
     <cell version="" />
     <cell locale="fr" class="download-win" platform="win64" content="Download" />
     <cell locale="fr" class="download-win" platform="win" content="Download" />
     <cell locale="fr" class="download-mac" platform="osx" content="Download" />
     <cell locale="fr" class="download-linux" platform="linux64" content="Download" />
--- a/lib/release.tmpl
+++ b/lib/release.tmpl
@@ -104,21 +104,27 @@
          END;
        ELSE;
          table_header = "$table_header$header.name";
        END;
        "        $table_header</th>\n";
      END;
      "      </tr>\n";
      "    </thead>\n";
+
      "    <tfoot>\n";
      "      <tr>\n";
-     "        <td class=\"bottom-left\"></td>\n";
-     "        <td colspan=\"6\"></td>\n";
-     "        <td class=\"bottom-right\"></td>\n";
+     FOREACH footer IN languages.footer;
+       IF footer.class;
+         "        <td class=\"$footer.class\"></td>\n";
+       END;
+       IF footer.colspan;
+         "        <td colspan=\"$footer.colspan\"></td>\n";
+       END;
+     END;
      "      </tr>\n";
      "    </tfoot>\n";
      "    <tbody>\n";
 
      class = "odd";
      FOREACH language IN languages.language;
        "      <tr id=\"$language.id\" class=\"$class\">\n";