-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathevents.html.haml
145 lines (136 loc) · 4.11 KB
/
events.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
---
layout: default
title: "Events"
# no such section (yet)
section: events
notitle: true
---
/ Some more spacing from the navbar
.pt-4
.container
.row
%h1
Recurring Events
.row
.col-md-6.text-center
%ul.ji-item-list
%li.post.event.floating
%a.body{:href => 'http://lists.jenkins-ci.org/pipermail/jenkins-infra/2017-February/001029.html', :target => '_blank'}
.header.time
.date-time
.date
.day
Mondays
.dow
Mon
.time
19:30h UTC
%h5.title
Infra Team Sync
.col-md-6.text-center
%ul.ji-item-list
%li.post.event.floating
%a.body{:href => 'https://jenkins.io/project/governance/#meeting', :target => '_blank'}
.header.time
.date-time
.date
.day.small
Every other Wed
.dow
Wed
.time
18h UTC
%h5.title
Project Meeting
.col-md-6.text-center
%ul.ji-item-list
%li.post.event.floating
%a.body{:href => 'https://jenkins.io/sigs/platform#meetings', :target => '_blank'}
.header.time
.date-time
.date
.day.small
Every other Thu
.dow
Thu
.time
14h UTC
%h5.title
Platform SIG Meeting
.col-md-6.text-center
%ul.ji-item-list
%li.post.event.floating
%a.body{:href => 'https://jenkins.io/projects/gsoc#office-hours', :target => '_blank'}
.header.time
.date-time
.date
.day.small
Wednesdays
.dow
Wed
.time
14h UTC
%h5.title
Google Summer of Code Office Hours
.col-md-6.text-center
%ul.ji-item-list
%li.post.event.floating
%a.body{:href => 'https://jenkins.io/sigs/docs#meetings', :target => '_blank'}
.header.time
.date-time
.date
.day.small
Every other Fri
.dow
Fri
.time
13h UTC
%h5.title
Docs SIG Meeting
.row
.col
%h2
Event Calendar
%p
These and other periodic events can be found on the Jenkins project
%a{:href => '/content/event-calendar'}
event calendar.
.row
%h1
Upcoming Events
.row
- # Sort by the date defined for each of the events
- now = Time.now.utc
- site.events.keys.each do |name|
- data = site.events[name]
- raise ArgumentError.new("No `date` specified: #{name}") unless data.date
- raise ArgumentError.new("No `title` specified: #{name}") unless data.title
- raise ArgumentError.new("No `link` specified: #{name}") unless data.link
- data.event_time = Time.parse(data.date)
- site.events.keys.sort { |x,y| site.events[x].event_time <=> site.events[y].event_time }.each do |name|
- data = site.events[name]
- event_time = data.event_time
- next unless event_time > now
.col-md-3.text-center
%ul.ji-item-list
%li.post.event.floating
%a.body{:href => data.link, :target => '_blank'}
.header.time
.date-time
.date
.month
= event_time.strftime('%b')
.day
= event_time.strftime('%-d')
.dow
= event_time.strftime('%a')
.time
= event_time.strftime('%l:%M %P')
%h5.title
= data.title
= data.location
%p.teaser
= data.raw_content
.more
.attrs