-
Notifications
You must be signed in to change notification settings - Fork 48
/
index.html.haml
167 lines (156 loc) · 5.86 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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
---
layout: base
title: Hibernate. Everything data.
---
.jumbotron
.ui.container
.ui.grid.stackable
.column.row{:style => "z-index: 1;"}
.left.floated.column.eight.wide.middle.aligned
%h1
%span Hibernate
%h2
%span Everything data.
.right.floated.column.five.wide.middle.aligned.print.hidden
#project-news{:style => 'display:none'}
.page-title.home
.ui.container
%h1 More than an ORM, discover the Hibernate galaxy.
.ui.container.content#content
.projects
.ui.doubling.stackable
.project
.ui.raised.segment.orm
%h3.ui.header
%a{:href => relative("/orm/")} Hibernate ORM
%p
%i.big.icon.database
Domain model persistence for relational databases.
.ui.right.aligned.basic.segment
%a.ui.button.right.labeled.icon.a.primary{:href => relative("/orm/")}
%i.right.arrow.icon
More
.project
.ui.raised.segment.search
%h3.ui.header
%a{:href => relative("/search/")} Hibernate Search
%p
%i.big.icon.search
Full-text search for your domain model.
.ui.right.aligned.basic.segment
%a.button.ui.right.labeled.icon.a.primary{:href => relative("/search/")}
%i.right.arrow.icon
More
.project
.ui.raised.segment.validator
%h3.ui.header
%a{:href => relative("/validator/")} Hibernate Validator
%p
%i.big.icon.checkmark.box
Annotation based constraints for your domain model.
.ui.right.aligned.basic.segment
%a.ui.button.right.labeled.icon.a.primary{:href => relative("/validator/")}
%i.right.arrow.icon
More
.project
.ui.raised.segment.tools
%h3.ui.header
%a{:href => relative("/reactive/")} Hibernate Reactive
%p
%i.big.icon.retweet
Reactive domain model persistence for relational databases.
.ui.right.aligned.basic.segment
%a.ui.button.right.labeled.icon.a.primary{:href => relative("/reactive/")}
%i.right.arrow.icon
More
.project
.ui.raised.segment.tools
%h3.ui.header
%a{:href => relative("/tools/")} Hibernate Tools
%p
%i.big.icon.wrench
Command line tools and IDE plugins for your Hibernate usages.
.ui.right.aligned.basic.segment
%a.ui.button.right.labeled.icon.a.primary{:href => relative("/tools/")}
%i.right.arrow.icon
More
.project
.ui.raised.segment.tools
%h3.ui.header
%a{:href => relative("/others/")} Others
%p
%i.big.icon.retweet
Other Hibernate related projects (e.g. Hibernate OGM, Hibernate Shards).
.ui.right.aligned.basic.segment
%a.ui.button.right.labeled.icon.a.primary{:href => relative("/others/")}
%i.right.arrow.icon
More
.column
:javascript
$(document).ready(function() {
$.ajax({
url: "#{site.news_feed_root_url}/global.json",
jsonpCallback: "getBlogEntries",
dataType: "jsonp",
// Work with the response
success: function( data ) {
var projectNews = $('#project-news');
var segment = $('<div class="ui raised segment" />');
segment.append($('<h4>').text('Latest news'));
var list = $('<div class="ui relaxed divided list" />');
for (var i = 0; i < Math.min(data.length, 3); i++) {
var entry = data[i];
var ribbonText = 'Community';
var ribbonIcon = 'users';
if ( entry.tags ) {
if ( entry.tags.includes('Newsletter') ) {
ribbonText = 'Newsletter';
ribbonIcon = 'newspaper';
}
else if ( entry.tags.includes('Interview') ) {
ribbonText = 'Community';
ribbonIcon = 'users';
}
else if ( entry.tags.includes('Hibernate ORM') ) {
ribbonText = 'Hibernate ORM';
ribbonIcon = 'database';
}
else if ( entry.tags.includes('Hibernate Search') ) {
ribbonText = 'Hibernate Search';
ribbonIcon = 'search';
}
else if ( entry.tags.includes('Hibernate OGM') ) {
ribbonText = 'Hibernate OGM';
ribbonIcon = 'database';
}
else if ( entry.tags.includes('Hibernate Validator') ) {
ribbonText = 'Hibernate Validator';
ribbonIcon = 'check';
}
else if ( entry.tags.includes('Hibernate Tools') ) {
ribbonText = 'Tooling';
ribbonIcon = 'wrench';
}
else if ( entry.tags.includes('Hibernate Reactive') ) {
ribbonText = 'Hibernate Reactive';
ribbonIcon = 'retweet';
}
}
var entryItem = $('<div class="item news" />');
var icon = $('<i class="large ' + ribbonIcon + ' middle aligned icon news-type" title="' + ribbonText + '" />');
entryItem.append(icon);
var content = $('<div class="middle aligned content" />');
content.append($('<a class="header" href="' + entry.url + '" />').text(entry.title));
entryItem.append(content);
list.append(entryItem);
}
var moreButton = $('<a href="https://in.relation.to/" class="ui button right labeled icon a primary tiny" />');
moreButton.text('More news');
moreButton.append($('<i class="right arrow icon" />'));
list.append($('<div class="item news more" />').append(moreButton));
segment.append(list);
projectNews.append(segment);
projectNews.fadeIn();
}
});
});