forked from torquebox/torquebox.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html.haml
118 lines (114 loc) · 3.89 KB
/
index.html.haml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
---
title: Home
layout: default
inhibit_title: true
priority: 1.0
---
#front-page
#top-row
.left-column
%img#knob{:src=>"/images/knob.png"}
#blurb
:markdown
TorqueBox is a new kind of [Ruby](http://www.ruby-lang.org/en/) application platform that integrates popular
technologies such as [Ruby on Rails](http://rubyonrails.org/), while extending the footprint of Ruby
applications to include built-in support for services such as messaging,
scheduling, and daemons.
TorqueBox provides an all-in-one environment, built upon the latest, most
powerful [JBoss AS](http://www.jboss.org/jbossas) Java application server. Functionality such as clustering,
load-balancing and high-availability is included right out-of-the-box.
.right-column
#latest-release
- announcement = site.posts.find{|e| e.layout=='release' && e.version == site.releases.first.version}
.download
%h2 Latest Release: #{site.releases.first.version}
%table.details
%tr
%th Download
%td
%a{:href=>site.releases.first.urls.dist_zip} #{site.releases.first.version}
- if ( announcement )
%tr.release_date
%th
Release Date
%td
#{announcement.date.strftime( '%d %B %Y' )}
%tr.size
%th
Size
%td
ZIP archive, #{site.releases.first.dist_size}mb
%tr.links
%td{:colspan=>2}
- if announcement
%a{:href=>announcement.url} Announcement |
%a{:href=>"/documentation/#{site.releases.first.version}/"} Documentation
#middle-row
%a{:href=>'/features'}
%img#stack{:src=>"/images/stack.png"}
.more_feature_info
%a{:href=>'/features'}
Read more about the TorqueBox stack
#bottom-row
.left-column
#latest-news
%h1 Latest News & Articles
- for post in site.posts[0,4] do
.item
%h2
%a{:href=>post.url}= post.title
%h3 #{post.date.strftime( '%d %B %Y' )}
.body
#{summarize( html_to_text( post.content ), 50 )}...
.tail
= post.intense_debate_comments_link
|
%a{:href=>post.url} Read more
#even-more
%a{:href=>'/news'}Even more news!
.right-column
#upcoming-talks
%h1 Upcoming Talks
- for talk in site.upcoming_talks
.item{:effective_date=>talk.effective_date}
.event_details
.event_date
#{talk.event_date}
.event_location
#{talk.location}
%h2
%a{:href=>talk.event_url}
= talk.event
- if ( talk.event_logo_url )
%a{:href=>talk.event_url}
%img.event_logo{:src=>talk.event_logo_url}
%h3
= talk.title
.details
#{talk.presentor} will present at #{talk.event} in #{talk.location}.
.links
%a{:href=>talk.event_url}
#{talk.event} Site
#speakers-link
Interested in hosting or giving a TorqueBox talk? See our
%a{:href=>"/speakers/"}speakers
page.
:javascript
$(document).ready( function() {
$('#upcoming-talks .item').each( function() {
effective_date = $(this).attr( 'effective_date' );
today = new Date();
month = today.getMonth()+1;
if ( month < 10 ) {
month = '0' + month;
}
date = today.getDate();
if ( date < 10 ) {
date = '0' + date;
}
today_str = '' + today.getFullYear() + month + date;
if ( today_str > effective_date ) {
$(this).hide();
}
} );
} );