This repository has been archived by the owner on Apr 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
index.html.haml
146 lines (142 loc) · 4.84 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
---
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 supports popular
technologies such as [Ruby on Rails](http://rubyonrails.org/) and
[Sinatra](http://www.sinatrarb.com/), while extending
the footprint of Ruby
applications to include built-in support for services such as messaging,
scheduling, caching, and daemons.
TorqueBox provides an all-in-one environment, built upon the latest
[JBoss AS](http://www.jboss.org/jbossas/) Java application server and
[JRuby](http://jruby.org/). Functionality such as clustering,
load-balancing and high-availability is included right out-of-the-box.
.right-column
#latest-release
- release = site.releases.first
- announcement = site.posts.find{|e| e.layout=='release' && e.version == release.version}
.download
%h2 TorqueBox #{release.version}
%table.details
%tr
%th Download
%td
%a{:href=>release.urls.dist_zip} #{release.version}
- if ( announcement )
%tr.release_date
%th
Release Date
%td
#{announcement.date.strftime( '%d %B %Y' )}
%tr.size
%th
Size
%td
#{release.dist_size}mb
%tr.links
%td{:colspan=>2}
- if announcement
%a{:href=>announcement.url} Announcement
|
%a{:href=>"/documentation/#{release.version}/"} Documentation
- unless release.urls.getting_started.browse.empty?
<br/>
%a{:href=>release.urls.getting_started.browse} Getting Started Guide
#latest-fourx-release
- release = site.fourx_releases.first
- announcement = site.posts.find{|e| e.layout=='release' && e.version == release.version}
.download
%h2 TorqueBox #{release.version}
%table.details
%tr
- if ( announcement )
%tr.release_date
%th
Release Date
%td
#{announcement.date.strftime( '%d %B %Y' )}
%tr.links
%td{:colspan=>2}
- if announcement
%a{:href=>announcement.url} Announcement
|
%a{:href=>"/documentation/#{release.version}/yardoc/"} 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();
}
} );
} );