blob: 071a86a219cce97e0fc086101aea7a634f6c5357 [file] [log] [blame]
import model.Event
/**
* This template is generating the events page.
* If you want to add a new event, please edit the "allEvents" section in src/site/sitemap.groovy
*/
layout 'layouts/main.groovy', true,
pageTitle: 'The Apache Groovy programming language - Events',
mainContent: contents {
div(id: 'content', class: 'page-1') {
div(class: 'row') {
div(class: 'row-fluid') {
div(class: 'col-lg-3') {
include template: 'includes/community-navbar.groovy'
}
div(class: 'col-lg-8 col-lg-pull-0') {
include template: 'includes/contribute-button.groovy'
h1 {
i(class: 'fa fa-calendar') {}
yield ' Events'
}
article {
p '''
Groovy and its ecosystem are often represented at various Java-oriented conferences,
but there are also events fully dedicated to the Groovy ecosystem.
Here are upcoming ones you might be interested in learning about.
'''
hr(class: 'divider')
allEvents.each {
String eventName = it.key
Event event = it.value
div(class: 'event-logo') {
img(src: "${event.logo}", class:'event-logo', alt:"${eventName}")
}
h2 {
a(href: event.url, eventName)
}
h3 {
i(class: 'fa fa-globe') {}
yieldUnescaped "  ${event.location}   —   "
i(class: 'fa fa-calendar') {}
yieldUnescaped "  "
em event.date
}
div {
yieldUnescaped event.description
}
hr(class: 'divider')
}
}
}
}
}
}
}