Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
Adjusting some linkaging.
Browse files Browse the repository at this point in the history
  • Loading branch information
bobmcwhirter committed Sep 30, 2010
1 parent 2bc77d1 commit 91394fd
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 11 deletions.
2 changes: 2 additions & 0 deletions _ext/pipeline.rb
@@ -1,11 +1,13 @@
require 'release_sizes'
require 'documentation'
require 'downloads'
require 'release_helper'


Awestruct::Extensions::Pipeline.new do
extension Documentation.new()
extension Downloads.new()
extension ReleaseSizes.new()
helper ReleaseHelper
end

13 changes: 13 additions & 0 deletions _ext/release_helper.rb
@@ -0,0 +1,13 @@


module ReleaseHelper

def release_for_version(version)
site.releases.find{|e| e.version == version }
end

def taco
"taco"
end

end
10 changes: 6 additions & 4 deletions _layouts/release.html.haml
Expand Up @@ -2,6 +2,8 @@
layout: default
---

- release = release_for_version( '1.0.0.Beta22' )

#right-sidebar
#main-column
.post
Expand Down Expand Up @@ -29,11 +31,11 @@ layout: default
%a{:href=>page.next_post.url}= page.next_post.title
.box
%h1
Release: #{page.version}
Release: #{release.version}
%ul
%li
%a{:href=>"http://repository.torquebox.org/maven2/releases/org/torquebox/torquebox-bin/#{page.version}/torquebox-bin-#{page.version}.zip"} Download #{page.version} binary
%a{:href=>release.urls.dist_zip} Download #{release.version} binary
%li
%a{:href=>"/documentation/#{page.version}/"} Browse docs for #{page.version}
%a{:href=>release.urls.docs.browse} Browse docs for #{release.version}
%li
%a{:href=>"http://github.com/torquebox/torquebox/tree/#{page.version}"} Browse sources for #{page.version}
%a{:href=>release.urls.github.tree} Browse sources for #{release.version}
8 changes: 3 additions & 5 deletions download.html.haml
Expand Up @@ -29,9 +29,6 @@ title: Download

* [PDF Manual for #{site.releases.first.version}](#{site.releases.first.urls.docs.pdf})
* [Multi-page HTML Manual for #{site.releases.first.version}](#{site.releases.first.urls.docs.html_multi_zip})
* [Single-page HTML Manual for #{site.releases.first.version}](#{site.releases.first.urls.docs.html_single_zip})



#download-table
%table.downloads
Expand Down Expand Up @@ -66,8 +63,9 @@ title: Download
%a{:href=>release.urls.docs.browse} Browse
%li
%a{:href=>release.urls.docs.html_multi_zip} Multi-page HTML ZIP
%li
%a{:href=>release.urls.docs.html_single_zip} Single-page HTML ZIP
- if ( release.urls.docs.html_single_zip )
%li
%a{:href=>release.urls.docs.html_single_zip} Single-page HTML ZIP
%li
%a{:href=>release.urls.docs.pdf} PDF
%td
Expand Down
3 changes: 1 addition & 2 deletions news/2010-09-30-announcing-beta22.md
Expand Up @@ -4,7 +4,6 @@ author: Jim Crossley
version: 1.0.0.Beta22
layout: release
---

We're just pleased as punch to announce our second September release,
TorqueBox 1.0.0.Beta22. Go [download it](/download/) and [checkout
the improved documentation](/documentation/1.0.0.Beta22/) now.
Expand Down Expand Up @@ -89,4 +88,4 @@ But wait, according to JIRA, there's more!
</li>
<li>[<a href='https://jira.jboss.org/browse/TORQUE-129'>TORQUE-129</a>] - Update to AS6m5
</li>
</ul>
</ul>

0 comments on commit 91394fd

Please sign in to comment.