Skip to content

Commit c8ca6fa

Browse files
committed
Adding Eclipse version near download button in /downloads/<product> pages
1 parent 70d10b0 commit c8ca6fa

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

_ext/whatsnew.rb

+4
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ def execute(site)
2828
whatsnew_pages[page.product_id][page.product_version] = Array.new
2929
end
3030
whatsnew_pages[page.product_id][page.product_version] << page
31+
# remove that page, we don't need it as-is
32+
#puts "Removing #{page.output_path}"
33+
#site.pages.delete(page)
3134
end
35+
3236
end
3337
# now, grouping all component N&N on *a single page* per product version
3438
site.whatsnew_pages = Hash.new

_layouts/downloads_per_product_summary.html.haml

+10-6
Original file line numberDiff line numberDiff line change
@@ -10,42 +10,46 @@ tab: downloads
1010

1111
#sections.row-fluid
1212
%section.span4
13+
- download_page = page.build_versions[:stable]
1314
%header
14-
%h3 Stable Build
15+
%h3 Development Build
16+
- if !download_page.nil?
17+
%h4 for #{download_page.build_info.eclipse_version.full_name}
1518
.item.center
16-
- download_page = page.build_versions[:stable]
1719
- if !download_page.nil?
1820
%a.btn.btn-primary{:href => relative(download_page.output_path)}
1921
%i.icon-download
2022
Download #{download_page.build_info.version}
21-
2223
- else
2324
:markdown
2425
Sorry, but there is no **stable** build of #{site.products[page.product_id].name} at the moment.
2526
%section.span4
27+
- download_page = page.build_versions[:development]
2628
%header
2729
%h3 Development Build
30+
- if !download_page.nil?
31+
%h4 for #{download_page.build_info.eclipse_version.full_name}
2832
.item.center
2933
- download_page = page.build_versions[:development]
3034
- if !download_page.nil?
3135
%a.btn.btn-primary{:href => relative(download_page.output_path)}
3236
%i.icon-download
3337
Download #{download_page.build_info.version}
34-
3538
- else
3639
:markdown
3740
Sorry, but there is no **development** build of #{site.products[page.product_id].name} at the moment.
3841

3942
%section.span4
43+
- download_page = page.build_versions[:nightly]
4044
%header
4145
%h3 Nightly Build
46+
- if !download_page.nil?
47+
%h4 for #{download_page.build_info.eclipse_version.full_name}
4248
.item.center
43-
- download_page = page.build_versions[:nightly]
4449
- if !download_page.nil?
4550
%a.btn.btn-primary{:href => relative(download_page.output_path)}
4651
%i.icon-download
4752
Download #{download_page.build_info.version}
48-
4953
- else
5054
:markdown
5155
Sorry, but there is no **nightly** build of #{site.products[page.product_id].name} at the moment.

stylesheets/jbt-styles.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ section {
9191

9292
header {
9393
margin-bottom: 10px;
94-
h3 {
94+
h3, h4 {
9595
text-align: center;
9696
}
9797
}

0 commit comments

Comments
 (0)