Author: chirino Date: Wed Sep 28 12:44:05 2011 New Revision: 1176854 URL: http://svn.apache.org/viewvc?rev=1176854&view=rev Log: Use jquery to hide older versions by default. Added: activemq/activemq-apollo/trunk/apollo-website/src/scripts/ activemq/activemq-apollo/trunk/apollo-website/src/scripts/jquery.js Modified: activemq/activemq-apollo/trunk/apollo-website/src/WEB-INF/scalate/layouts/default.jade activemq/activemq-apollo/trunk/apollo-website/src/download.page activemq/activemq-apollo/trunk/apollo-website/src/styles/impact/css/site.css Modified: activemq/activemq-apollo/trunk/apollo-website/src/WEB-INF/scalate/layouts/default.jade URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-website/src/WEB-INF/scalate/layouts/default.jade?rev=1176854&r1=1176853&r2=1176854&view=diff ============================================================================== --- activemq/activemq-apollo/trunk/apollo-website/src/WEB-INF/scalate/layouts/default.jade (original) +++ activemq/activemq-apollo/trunk/apollo-website/src/WEB-INF/scalate/layouts/default.jade Wed Sep 28 12:44:05 2011 @@ -31,6 +31,7 @@ html(lang="en") meta(content="#{project_slogan}" name="description") meta(content="#{project_keywords}" name="keywords") meta(content="#{project_name}" name="author") + script(src={uri("/scripts/jquery.js")}) link(type="text/css" rel="stylesheet" href={uri("/styles/impact/css/pygmentize.css")}) link(type="text/css" rel="stylesheet" href={uri("/styles/impact/css/site.css")}) Modified: activemq/activemq-apollo/trunk/apollo-website/src/download.page URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-website/src/download.page?rev=1176854&r1=1176853&r2=1176854&view=diff ============================================================================== --- activemq/activemq-apollo/trunk/apollo-website/src/download.page (original) +++ activemq/activemq-apollo/trunk/apollo-website/src/download.page Wed Sep 28 12:44:05 2011 @@ -21,22 +21,27 @@ sort_info: 5 # ${project_name} Download it today! ---- name:head pipeline:plain - - +--- name:head pipeline:jade +:javascript + $(function(){ + $("body").find(".accordion").click(function() { + $(this).next().toggle("slow"); + $(this).toggleClass("accordion-opened"); + return false; + }).each(function(){ + $(this).toggleClass("accordion-opened", !$(this).next().is(":visible") && !$(this).next().is(".hide")) + }); + }); + +:css + .download { + font-size: 80%; + } + table.download { width: 100%;} + table.download tr td { + border: 1px solid #ccc; + padding: .5em; + } --- name:content pipeline:jade :&markdown @@ -66,36 +71,36 @@ table.download tr td { a(href="http://www.apache.org/dyn/closer.cgi?path=activemq/activemq-apollo/#{version}/apollo-project-#{version}-source-release.tar.gz") apollo-project-#{version}-source-release.tar.gz td a(href="http://apache.org/dist/activemq/activemq-apollo/#{version}/apollo-project-#{version}-source-release.tar.gz.asc") GPG Signature - - -- if( !project_versions.drop(1).isEmpty ) - :&markdown - ## Older Versions - - for( version <- project_versions.drop(1) ) - :&markdown - ### #{project_name} #{version} - [Release Notes](blog/releases/release-#{version.replace('.','-')}.html) | [Installation Instructions](${website_base_url}/versions/#{version}/website/documentation/getting-started.html) | [Documentation](${website_base_url}/versions/#{version}/website/documentation/index.html) - - table.download - tr - td Binaries for Unix/Linux/OS X: - td - a(href="http://archive.apache.org/dist/activemq/activemq-apollo/#{version}/apache-apollo-#{version}-unix-distro.tar.gz") apache-apollo-#{version}-unix-distro.tar.gz - td - a(href="http://archive.apache.org/dist/activemq/activemq-apollo/#{version}/apache-apollo-#{version}-unix-distro.tar.gz.asc") GPG Signature - tr - td Binaries for Windows: - td - a(href="http://archive.apache.org/dist/activemq/activemq-apollo/#{version}/apache-apollo-#{version}-windows-distro.zip") apache-apollo-#{version}-windows-distro.zip - td - a(href="http://archive.apache.org/dist/activemq/activemq-apollo/#{version}/apache-apollo-#{version}-windows-distro.zip.asc") GPG Signature - tr - td Source Code Distribution: - td - a(href="http://archive.apache.org/dist/activemq/activemq-apollo/#{version}/apollo-project-#{version}-source-release.tar.gz") apollo-project-#{version}-source-release.tar.gz - td - a(href="http://archive.apache.org/dist/activemq/activemq-apollo/#{version}/apollo-project-#{version}-source-release.tar.gz.asc") GPG Signature +- if( !project_versions.drop(1).isEmpty ) + h2.accordion + a(href="#") Older Versions + div.hide + - for( version <- project_versions.drop(1) ) + h3.accordion + a(href="#") #{project_name} #{version} + div.hide + :markdown + [Release Notes](blog/releases/release-#{version.replace('.','-')}.html) | [Installation Instructions](${website_base_url}/versions/#{version}/website/documentation/getting-started.html) | [Documentation](${website_base_url}/versions/#{version}/website/documentation/index.html) + table.download + tr + td Binaries for Unix/Linux/OS X: + td + a(href="http://archive.apache.org/dist/activemq/activemq-apollo/#{version}/apache-apollo-#{version}-unix-distro.tar.gz") apache-apollo-#{version}-unix-distro.tar.gz + td + a(href="http://archive.apache.org/dist/activemq/activemq-apollo/#{version}/apache-apollo-#{version}-unix-distro.tar.gz.asc") GPG Signature + tr + td Binaries for Windows: + td + a(href="http://archive.apache.org/dist/activemq/activemq-apollo/#{version}/apache-apollo-#{version}-windows-distro.zip") apache-apollo-#{version}-windows-distro.zip + td + a(href="http://archive.apache.org/dist/activemq/activemq-apollo/#{version}/apache-apollo-#{version}-windows-distro.zip.asc") GPG Signature + tr + td Source Code Distribution: + td + a(href="http://archive.apache.org/dist/activemq/activemq-apollo/#{version}/apollo-project-#{version}-source-release.tar.gz") apollo-project-#{version}-source-release.tar.gz + td + a(href="http://archive.apache.org/dist/activemq/activemq-apollo/#{version}/apollo-project-#{version}-source-release.tar.gz.asc") GPG Signature :&markdown