[nginx-site] Download page reworked.

Maxim Dounin mdounin at mdounin.ru
Tue Feb 20 16:22:34 UTC 2024


details:   http://freenginx.org/hg/nginx-site/rev/68e8c8dc9489
branches:  
changeset: 3063:68e8c8dc9489
user:      Maxim Dounin <mdounin at mdounin.ru>
date:      Tue Feb 20 18:58:32 2024 +0300
description:
Download page reworked.

For now, freenginx versions need to be explicitly marked with
name="freenginx" attribute.  Further, only the last mainline version
is preserved in listing.

diffstat:

 dtd/versions.dtd    |   1 +
 xml/en/download.xml |  17 +----------------
 xsls/download.xsls  |  18 +++++++++++-------
 3 files changed, 13 insertions(+), 23 deletions(-)

diffs (94 lines):

diff --git a/dtd/versions.dtd b/dtd/versions.dtd
--- a/dtd/versions.dtd
+++ b/dtd/versions.dtd
@@ -15,4 +15,5 @@
            ver          CDATA #REQUIRED
            pgp          (yes | no) "yes"
            win          (yes | no) "yes"
+           name         (nginx | freenginx) "nginx"
 >
diff --git a/xml/en/download.xml b/xml/en/download.xml
--- a/xml/en/download.xml
+++ b/xml/en/download.xml
@@ -8,7 +8,7 @@
 <article name="nginx: download"
          link="/en/download.html"
          lang="en"
-         rev="4">
+         rev="5">
 
 
 <section name="Mainline version">
@@ -17,21 +17,6 @@
 
 </section>
 
-
-<section name="Stable version">
-
-<download last="1" tag="stable" />
-
-</section>
-
-
-<section name="Legacy versions">
-
-<download last="1" tag="legacy" />
-
-</section>
-
-
 <section name="Source Code">
 
 <para>
diff --git a/xsls/download.xsls b/xsls/download.xsls
--- a/xsls/download.xsls
+++ b/xsls/download.xsls
@@ -35,19 +35,21 @@ X:template = "download/item" {
         }
         </td>
 
-        <td width="20%">
+        <td width="30%">
         <a>
         X:attribute "href" {
-            X:text {/download/nginx-} !{@ver} X:text {.tar.gz}
+            X:text {/download/} !{@name} X:text{-} !{@ver}
+            X:text {.tar.gz}
         }
-        X:text {nginx-} !{@ver}
+        !{@name} X:text{-} !{@ver}
         </a>
 
         X:if "@pgp = 'yes'" {
             X:text {&#xA0; }
             <a>
             X:attribute "href" {
-                X:text {/download/nginx-} !{@ver} X:text {.tar.gz.asc}
+                X:text {/download/} !{@name} X:text{-} !{@ver}
+                X:text {.tar.gz.asc}
             }
             X:text {pgp}
             </a>
@@ -58,16 +60,18 @@ X:template = "download/item" {
         X:if "@win= 'yes'" {
             <a>
             X:attribute "href" {
-                X:text {/download/nginx-} !{@ver} X:text {.zip}
+                X:text {/download/} !{@name} X:text{-} !{@ver}
+                X:text {.zip}
             }
-            X:text {nginx/Windows-} !{@ver}
+            !{@name} X:text {/Windows-} !{@ver}
             </a>
 
             X:if "@pgp = 'yes'" {
                 X:text {&#xA0; }
                 <a>
                 X:attribute "href" {
-                    X:text {/download/nginx-} !{@ver} X:text {.zip.asc}
+                    X:text {/download/} !{@name} X:text{-} !{@ver}
+                    X:text {.zip.asc}
                 }
                 X:text {pgp}
                 </a>



More information about the nginx-devel mailing list