-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.html.slim
57 lines (51 loc) · 1.82 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
---
layout: default
---
header
.row
.large-9.columns
h1 Learn how to use Java EE
.large-3.columns
.action.right
a.button.radius.round.success href="#{site.base_url}/contribute"
|Contribute?
i.fi-wrench
.sub
.row
.large-4.columns
h3 About
p JavaEE Samples are small snippets showing how to use JavaEE.
.large-4.columns
h3 Goal
p The goal of the JavaEE Samples is to be a reference for how to use the different specifictions within the JavaEE umbrella specification.
.large-4.columns
h3 Concept
p Learn JavaEE via Tests.
.row.categories
- for category in site.categories
- samples = site.showcases.by_category_id(category.id)
.large-6.columns.category
.panel
h5
a id="#{category.id}" =>category.name
small ="(#{samples.length})"
hr
.samples
- for sample in samples
.sample
.row
.large-8.columns
h6
a href="#{sample.output_path}" =sample.showcase.name
.status
- results = site.results.summary_by_sample(sample.showcase)
- unless results.nil? or results.empty?
ul.inline-list.right style="margin-left:0em;"
- for name, status in results.each
- icon = status ? 'fi-like' : 'fi-dislike'
- color = status ? 'green' : 'red'
- title = status ? "All tests pass on #{name}" : "Not all tests pass on #{name}"
li style="margin-left: 0.3em"
i class="#{icon}" title="#{title}" style="color: #{color}"
.row
.columns.desc=sample.showcase.description