-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy pathindex.html.slim
82 lines (80 loc) · 4.36 KB
/
index.html.slim
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
---
layout: base
status: green
body_class: fullbleed
issues: [DEVELOPER-127]
title: JBoss Developer
description: The simple, modern & productive way to build apps and infrastructure.
---
/ Introduction
.row.intro.panel
h2#introduction The simple, modern and productive way to build apps and infrastructure.
.large-12.column
h3 Get Started
asciidoc:
Start using JBoss today with free downloads, tutorials, and quickstarts
a.button(href="get-started") Get Started
.large-12.column
h3 Explore JBoss
asciidoc:
Learn more about the Red Hat^(R)^ JBoss^(R)^ Middleware portfolio
a.button(href="technology") Learn More
/ Hero Slider
.row.slider-wrapper.hero
.slider#slider(data-pause-on-hover="true" data-timeout="5000")
.swipe-wrap
.large-24.slide
a( href="https://developer.jboss.org/en/judcon/judcon2017_riviera")
img.mobile(src="http://static.jboss.org/images/hero/hero_tablet_480x500_judconriviera_15mar2017.jpg" alt="JUDCon has a track at Riviera Dev, Register today!")
img.desktop(src="http://static.jboss.org/images/hero/hero_desktop_1175x400_judconriviera_15mar2017.jpg" alt="JUDCon has a track at Riviera Dev, Register today!")
.large-24.slide
a( href="https://developers.redhat.com/products/eap/overview/")
img.mobile(src=cdn("http://static.jboss.org/_root/images/hero/hero_mobile_480x500_eap7launch_14jun2016.png") alt="Ready. Set. Code! Get the latest release of JBoss EAP 7.")
img.desktop(src=cdn("http://static.jboss.org/_root/images/hero/hero_desktop_1175x400_eap7launch_14jun2016.png") alt="Ready. Set. Code! Get the latest release of JBoss EAP 7.")
.large-24.slide
a( href="https://developers.redhat.com/products/devstudio/overview/")
img.mobile(src=cdn("http://static.jboss.org/images/hero/hero_mobile_380x280_devstudio10_16jun2016.png") alt="DevStudio 10 includes OpenShift integration. Join RHD to download it now.")
img.desktop(src=cdn("http://static.jboss.org/images/hero/hero_desktop_1175x500_devstudio10_16jun2016.png") alt="DevStudio 10 includes OpenShift integration. Join RHD to download it now. ")
.large-24.slide
a( href="https://developers.redhat.com/promotions/microservices-for-java-developers/")
img.mobile(src=cdn("http://static.jboss.org/images/hero/hero_tablet_480x500_microservices_09jun2016.jpg") alt="Get a hands-on introduction to frameworks and container.")
img.desktop(src=cdn("http://static.jboss.org/images/hero/hero_desktop_1175x400_microservices_09jun2016.jpg") alt="Get a hands-on introduction to frameworks and container.")
.slider-controls
a.slider-prev(data-direction="prev")
i.fa.fa-angle-left.fa-4x
a.slider-next(data-direction="next")
i.fa.fa-angle-right.fa-4x
/ Buzz and Event Updates
.row.updates.mobilehome
.large-24.columns
.row
.large-16.columns
h6.viewall
a(href="#{site.base_url}/buzz")
| View All Buzz
i.fa.fa-angle-double-right
h3#buzz Buzz
.mini-buzz-container.buzz-loading
.large-8.columns
h6.viewall
a(href="events")
| View All Events
i.icon-double-angle-right
h3#events Events
- site.events.reject{ |a, b| b['start_date'].nil? || b['site'] == "RHD" || (DateTime.parse(b['start_date']) < DateTime.now) || b['on_homepage'] == "FALSE"}.values.sort{ |a, b| DateTime.parse(a['start_date']) <=> DateTime.parse(b['start_date']) }.first(5).each do |e|
/ We use PST for "now"
- if "true".casecmp(e['on_homepage']) == 0 && DateTime.parse(e['end_date']).to_time > DateTime.now.prev_day.to_time.localtime("+09:00")
.update
.update-date
span.month=DateTime.parse(e['start_date']).strftime '%b'
- if e['start_date'] == e['end_date']
span.day=DateTime.parse(e['start_date']).strftime '%d'
- if e['start_date'] != e['end_date']
span.days #{DateTime.parse(e['start_date']).strftime '%d'}-#{DateTime.parse(e['end_date']).strftime '%d'}
h5
a href=e['more_details']
| #{e['title']}
.update-body
p: span= e['description'][0..180]
.update-meta
= partial("share.html.slim", :url => e['more_details'], :title => e['description'][0 .. 139])