directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1331329 - in /directory/site/trunk: content/studio/download/ lib/ templates/studio/
Date Fri, 27 Apr 2012 10:06:37 GMT
Author: pamarcelot
Date: Fri Apr 27 10:06:36 2012
New Revision: 1331329

URL: http://svn.apache.org/viewvc?rev=1331329&view=rev
Log:
Added download pages (at the right path) for Apache Directory Studio.

Added:
    directory/site/trunk/content/studio/download/
    directory/site/trunk/content/studio/download/.htaccess
    directory/site/trunk/content/studio/download/download-linux.mdtext
    directory/site/trunk/content/studio/download/download-macosx.mdtext
    directory/site/trunk/content/studio/download/download-sources.mdtext
    directory/site/trunk/content/studio/download/download-windows.mdtext
    directory/site/trunk/content/studio/download/download.cgi   (with props)
    directory/site/trunk/templates/studio/download-linux.html
    directory/site/trunk/templates/studio/download-macosx.html
    directory/site/trunk/templates/studio/download-sources.html
    directory/site/trunk/templates/studio/download-windows.html
Modified:
    directory/site/trunk/lib/path.pm

Added: directory/site/trunk/content/studio/download/.htaccess
URL: http://svn.apache.org/viewvc/directory/site/trunk/content/studio/download/.htaccess?rev=1331329&view=auto
==============================================================================
--- directory/site/trunk/content/studio/download/.htaccess (added)
+++ directory/site/trunk/content/studio/download/.htaccess Fri Apr 27 10:06:36 2012
@@ -0,0 +1,8 @@
+RewriteEngine on
+
+RewriteBase /studio/download/
+
+RewriteRule ^download-linux.html$ download.cgi [L]
+RewriteRule ^download-macosx.html$ download.cgi [L]
+RewriteRule ^download-sources.html$ download.cgi [L]
+RewriteRule ^download-windows.html$ download.cgi [L]
\ No newline at end of file

Added: directory/site/trunk/content/studio/download/download-linux.mdtext
URL: http://svn.apache.org/viewvc/directory/site/trunk/content/studio/download/download-linux.mdtext?rev=1331329&view=auto
==============================================================================
--- directory/site/trunk/content/studio/download/download-linux.mdtext (added)
+++ directory/site/trunk/content/studio/download/download-linux.mdtext Fri Apr 27 10:06:36
2012
@@ -0,0 +1 @@
+Title: Download for Linux
\ No newline at end of file

Added: directory/site/trunk/content/studio/download/download-macosx.mdtext
URL: http://svn.apache.org/viewvc/directory/site/trunk/content/studio/download/download-macosx.mdtext?rev=1331329&view=auto
==============================================================================
--- directory/site/trunk/content/studio/download/download-macosx.mdtext (added)
+++ directory/site/trunk/content/studio/download/download-macosx.mdtext Fri Apr 27 10:06:36
2012
@@ -0,0 +1 @@
+Title: Download for Mac OS X
\ No newline at end of file

Added: directory/site/trunk/content/studio/download/download-sources.mdtext
URL: http://svn.apache.org/viewvc/directory/site/trunk/content/studio/download/download-sources.mdtext?rev=1331329&view=auto
==============================================================================
--- directory/site/trunk/content/studio/download/download-sources.mdtext (added)
+++ directory/site/trunk/content/studio/download/download-sources.mdtext Fri Apr 27 10:06:36
2012
@@ -0,0 +1 @@
+Title: Download sources
\ No newline at end of file

Added: directory/site/trunk/content/studio/download/download-windows.mdtext
URL: http://svn.apache.org/viewvc/directory/site/trunk/content/studio/download/download-windows.mdtext?rev=1331329&view=auto
==============================================================================
--- directory/site/trunk/content/studio/download/download-windows.mdtext (added)
+++ directory/site/trunk/content/studio/download/download-windows.mdtext Fri Apr 27 10:06:36
2012
@@ -0,0 +1 @@
+Title: Download for Windows
\ No newline at end of file

Added: directory/site/trunk/content/studio/download/download.cgi
URL: http://svn.apache.org/viewvc/directory/site/trunk/content/studio/download/download.cgi?rev=1331329&view=auto
==============================================================================
--- directory/site/trunk/content/studio/download/download.cgi (added)
+++ directory/site/trunk/content/studio/download/download.cgi Fri Apr 27 10:06:36 2012
@@ -0,0 +1,3 @@
+#!/bin/sh
+# Wrapper around the standard mirrors.cgi script
+exec /www/www.apache.org/dyn/mirrors/mirrors.cgi $*
\ No newline at end of file

Propchange: directory/site/trunk/content/studio/download/download.cgi
------------------------------------------------------------------------------
    svn:executable = *

Modified: directory/site/trunk/lib/path.pm
URL: http://svn.apache.org/viewvc/directory/site/trunk/lib/path.pm?rev=1331329&r1=1331328&r2=1331329&view=diff
==============================================================================
--- directory/site/trunk/lib/path.pm (original)
+++ directory/site/trunk/lib/path.pm Fri Apr 27 10:06:36 2012
@@ -28,9 +28,27 @@ our @patterns = (
     # Apache Directory Studio sub-project pages
     #
     
-    # Download Apache Directory Studio test page
-    [qr!studio\/download-test\.mdtext$!, template_page => {
-        template => "studio/download-test.html",
+    # Download Apache Directory Studio Linux page
+    [qr!studio\/download\/download-linux\.mdtext$!, template_page => {
+        template => "studio/download-linux.html",
+        isDirStudio => true, 
+        version => $version_studio } ],
+    
+    # Download Apache Directory Studio Mac OS X page
+    [qr!studio\/download\/download-macosx\.mdtext$!, template_page => {
+        template => "studio/download-macosx.html",
+        isDirStudio => true, 
+        version => $version_studio } ],
+    
+    # Download Apache Directory Studio Sources page
+    [qr!studio\/download\/download-sources\.mdtext$!, template_page => {
+        template => "studio/download-sources.html",
+        isDirStudio => true, 
+        version => $version_studio } ],
+    
+    # Download Apache Directory Studio Windows page
+    [qr!studio\/download\/download-windows\.mdtext$!, template_page => {
+        template => "studio/download-windows.html",
         isDirStudio => true, 
         version => $version_studio } ],
         

Added: directory/site/trunk/templates/studio/download-linux.html
URL: http://svn.apache.org/viewvc/directory/site/trunk/templates/studio/download-linux.html?rev=1331329&view=auto
==============================================================================
--- directory/site/trunk/templates/studio/download-linux.html (added)
+++ directory/site/trunk/templates/studio/download-linux.html Fri Apr 27 10:06:36 2012
@@ -0,0 +1,61 @@
+{% extends "studio/page.html" %}
+    {% block content %}
+<h1>Download for Mac OS X</h1>
+
+<p>
+    [if-any logo]
+    <a href="[link]"><img align="right" src="[logo]" border="0" /></a>
+    [end]
+    We suggest the following mirror site for your download:
+</p>
+
+<p>
+    <div id="downloadContent">
+        <table border="0" width="100%">
+            <tr>
+                <td>
+                    <a href="[preferred]/directory/studio/stable/{{version}}/ApacheDirectoryStudio-macosx-{{version}}.dmg">
+                        <img src="images/download.png" width="32" height="32" border="0"/>
+                    </a>
+                </td>
+                <td>&nbsp;</td>
+                <td>
+                    <a href="[preferred]/directory/studio/stable/{{version}}/ApacheDirectoryStudio-macosx-{{version}}.dmg">
+                        <strong>
+                            [preferred]/&#91;...&#93;/ApacheDirectoryStudio-macosx-{{version}}.dmg
+                        </strong>
+                    </a>
+                </td>
+                <td align="right">
+                    [<a href="http://archive.apache.org/dist/directory/studio/stable/{{version}}/ApacheDirectoryStudio-macosx-{{version}}.dmg.asc">ASC</a>-<a
href="http://archive.apache.org/dist/directory/studio/stable/{{version}}/ApacheDirectoryStudio-macosx-{{version}}.dmg.md5">MD5</a>]
+                </td>
+            </tr>
+        </table>
+    </div>
+</p>
+
+<p>
+    <form action="[location]" method="get" id="SelectMirror">
+        Other mirrors:
+        <select name="Preferred">
+            [if-any http]
+            <optgroup label="HTTP mirrors">
+                [for http]<option value="[http]">[http]</option>[end]
+            </potgroup>
+            [end]
+            [if-any ftp]
+            <optgroup label="FTP mirrors">
+                [for ftp]<option value="[ftp]">[ftp]</option>[end]
+            </potgroup>
+            [end]
+            [if-any backup]
+            <optgroup label="Backup mirrors">
+                [for backup]<option value="[backup]">[backup] (backup)</option>[end]
+            </potgroup>
+            [end]
+        </select>
+        <input type="submit" value="Change Mirror"/>
+    </form>
+</p>
+    {% endblock %}
+{% endextends %}
\ No newline at end of file

Added: directory/site/trunk/templates/studio/download-macosx.html
URL: http://svn.apache.org/viewvc/directory/site/trunk/templates/studio/download-macosx.html?rev=1331329&view=auto
==============================================================================
--- directory/site/trunk/templates/studio/download-macosx.html (added)
+++ directory/site/trunk/templates/studio/download-macosx.html Fri Apr 27 10:06:36 2012
@@ -0,0 +1,61 @@
+{% extends "studio/page.html" %}
+    {% block content %}
+<h1>Download for Mac OS X</h1>
+
+<p>
+    [if-any logo]
+    <a href="[link]"><img align="right" src="[logo]" border="0" /></a>
+    [end]
+    We suggest the following mirror site for your download:
+</p>
+
+<p>
+    <div id="downloadContent">
+        <table border="0" width="100%">
+            <tr>
+                <td>
+                    <a href="[preferred]/directory/studio/stable/{{version}}/ApacheDirectoryStudio-macosx-{{version}}.dmg">
+                        <img src="images/download.png" width="32" height="32" border="0"/>
+                    </a>
+                </td>
+                <td>&nbsp;</td>
+                <td>
+                    <a href="[preferred]/directory/studio/stable/{{version}}/ApacheDirectoryStudio-macosx-{{version}}.dmg">
+                        <strong>
+                            [preferred]/&#91;...&#93;/ApacheDirectoryStudio-macosx-{{version}}.dmg
+                        </strong>
+                    </a>
+                </td>
+                <td align="right">
+                    [<a href="http://archive.apache.org/dist/directory/studio/stable/{{version}}/ApacheDirectoryStudio-macosx-{{version}}.dmg.asc">ASC</a>-<a
href="http://archive.apache.org/dist/directory/studio/stable/{{version}}/ApacheDirectoryStudio-macosx-{{version}}.dmg.md5">MD5</a>]
+                </td>
+            </tr>
+        </table>
+    </div>
+</p>
+
+<p>
+    <form action="[location]" method="get" id="SelectMirror">
+        Other mirrors:
+        <select name="Preferred">
+            [if-any http]
+            <optgroup label="HTTP mirrors">
+                [for http]<option value="[http]">[http]</option>[end]
+            </potgroup>
+            [end]
+            [if-any ftp]
+            <optgroup label="FTP mirrors">
+                [for ftp]<option value="[ftp]">[ftp]</option>[end]
+            </potgroup>
+            [end]
+            [if-any backup]
+            <optgroup label="Backup mirrors">
+                [for backup]<option value="[backup]">[backup] (backup)</option>[end]
+            </potgroup>
+            [end]
+        </select>
+        <input type="submit" value="Change Mirror"/>
+    </form>
+</p>
+    {% endblock %}
+{% endextends %}
\ No newline at end of file

Added: directory/site/trunk/templates/studio/download-sources.html
URL: http://svn.apache.org/viewvc/directory/site/trunk/templates/studio/download-sources.html?rev=1331329&view=auto
==============================================================================
--- directory/site/trunk/templates/studio/download-sources.html (added)
+++ directory/site/trunk/templates/studio/download-sources.html Fri Apr 27 10:06:36 2012
@@ -0,0 +1,61 @@
+{% extends "studio/page.html" %}
+    {% block content %}
+<h1>Download for Mac OS X</h1>
+
+<p>
+    [if-any logo]
+    <a href="[link]"><img align="right" src="[logo]" border="0" /></a>
+    [end]
+    We suggest the following mirror site for your download:
+</p>
+
+<p>
+    <div id="downloadContent">
+        <table border="0" width="100%">
+            <tr>
+                <td>
+                    <a href="[preferred]/directory/studio/stable/{{version}}/ApacheDirectoryStudio-macosx-{{version}}.dmg">
+                        <img src="images/download.png" width="32" height="32" border="0"/>
+                    </a>
+                </td>
+                <td>&nbsp;</td>
+                <td>
+                    <a href="[preferred]/directory/studio/stable/{{version}}/ApacheDirectoryStudio-macosx-{{version}}.dmg">
+                        <strong>
+                            [preferred]/&#91;...&#93;/ApacheDirectoryStudio-macosx-{{version}}.dmg
+                        </strong>
+                    </a>
+                </td>
+                <td align="right">
+                    [<a href="http://archive.apache.org/dist/directory/studio/stable/{{version}}/ApacheDirectoryStudio-macosx-{{version}}.dmg.asc">ASC</a>-<a
href="http://archive.apache.org/dist/directory/studio/stable/{{version}}/ApacheDirectoryStudio-macosx-{{version}}.dmg.md5">MD5</a>]
+                </td>
+            </tr>
+        </table>
+    </div>
+</p>
+
+<p>
+    <form action="[location]" method="get" id="SelectMirror">
+        Other mirrors:
+        <select name="Preferred">
+            [if-any http]
+            <optgroup label="HTTP mirrors">
+                [for http]<option value="[http]">[http]</option>[end]
+            </potgroup>
+            [end]
+            [if-any ftp]
+            <optgroup label="FTP mirrors">
+                [for ftp]<option value="[ftp]">[ftp]</option>[end]
+            </potgroup>
+            [end]
+            [if-any backup]
+            <optgroup label="Backup mirrors">
+                [for backup]<option value="[backup]">[backup] (backup)</option>[end]
+            </potgroup>
+            [end]
+        </select>
+        <input type="submit" value="Change Mirror"/>
+    </form>
+</p>
+    {% endblock %}
+{% endextends %}
\ No newline at end of file

Added: directory/site/trunk/templates/studio/download-windows.html
URL: http://svn.apache.org/viewvc/directory/site/trunk/templates/studio/download-windows.html?rev=1331329&view=auto
==============================================================================
--- directory/site/trunk/templates/studio/download-windows.html (added)
+++ directory/site/trunk/templates/studio/download-windows.html Fri Apr 27 10:06:36 2012
@@ -0,0 +1,61 @@
+{% extends "studio/page.html" %}
+    {% block content %}
+<h1>Download for Mac OS X</h1>
+
+<p>
+    [if-any logo]
+    <a href="[link]"><img align="right" src="[logo]" border="0" /></a>
+    [end]
+    We suggest the following mirror site for your download:
+</p>
+
+<p>
+    <div id="downloadContent">
+        <table border="0" width="100%">
+            <tr>
+                <td>
+                    <a href="[preferred]/directory/studio/stable/{{version}}/ApacheDirectoryStudio-macosx-{{version}}.dmg">
+                        <img src="images/download.png" width="32" height="32" border="0"/>
+                    </a>
+                </td>
+                <td>&nbsp;</td>
+                <td>
+                    <a href="[preferred]/directory/studio/stable/{{version}}/ApacheDirectoryStudio-macosx-{{version}}.dmg">
+                        <strong>
+                            [preferred]/&#91;...&#93;/ApacheDirectoryStudio-macosx-{{version}}.dmg
+                        </strong>
+                    </a>
+                </td>
+                <td align="right">
+                    [<a href="http://archive.apache.org/dist/directory/studio/stable/{{version}}/ApacheDirectoryStudio-macosx-{{version}}.dmg.asc">ASC</a>-<a
href="http://archive.apache.org/dist/directory/studio/stable/{{version}}/ApacheDirectoryStudio-macosx-{{version}}.dmg.md5">MD5</a>]
+                </td>
+            </tr>
+        </table>
+    </div>
+</p>
+
+<p>
+    <form action="[location]" method="get" id="SelectMirror">
+        Other mirrors:
+        <select name="Preferred">
+            [if-any http]
+            <optgroup label="HTTP mirrors">
+                [for http]<option value="[http]">[http]</option>[end]
+            </potgroup>
+            [end]
+            [if-any ftp]
+            <optgroup label="FTP mirrors">
+                [for ftp]<option value="[ftp]">[ftp]</option>[end]
+            </potgroup>
+            [end]
+            [if-any backup]
+            <optgroup label="Backup mirrors">
+                [for backup]<option value="[backup]">[backup] (backup)</option>[end]
+            </potgroup>
+            [end]
+        </select>
+        <input type="submit" value="Change Mirror"/>
+    </form>
+</p>
+    {% endblock %}
+{% endextends %}
\ No newline at end of file



Mime
View raw message