jekyll-attendease 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/jekyll-attendease.rb +9 -8
- data/templates/_includes/attendease/schedule/sessions.html +13 -0
- metadata +20 -12
- checksums.yaml +0 -7
data/lib/jekyll-attendease.rb
CHANGED
@@ -253,7 +253,7 @@ module Jekyll
|
|
253
253
|
end
|
254
254
|
end
|
255
255
|
|
256
|
-
self.data['instances'] = instances.sort{|x,y| x['time'] <=> y['time'] }
|
256
|
+
self.data['instances'] = instances.sort{|x,y| [x['time'], x['session']['name']] <=> [y['time'], y['session']['name']]}
|
257
257
|
|
258
258
|
if File.exists?(File.join(base, '_includes', 'attendease', 'schedule', 'day.html'))
|
259
259
|
self.content = File.read(File.join(base, '_includes', 'attendease', 'schedule', 'day.html')) # Use theme specific layout
|
@@ -264,7 +264,7 @@ module Jekyll
|
|
264
264
|
end
|
265
265
|
|
266
266
|
class ScheduleSessionsPage < Page
|
267
|
-
def initialize(site, base, dir, sessions)
|
267
|
+
def initialize(site, base, dir, sessions, dates)
|
268
268
|
@site = site
|
269
269
|
@base = base
|
270
270
|
@dir = dir
|
@@ -279,6 +279,7 @@ module Jekyll
|
|
279
279
|
sessionsData = []
|
280
280
|
|
281
281
|
self.data['sessions'] = sessions
|
282
|
+
self.data['dates'] = dates
|
282
283
|
|
283
284
|
if File.exists?(File.join(base, '_includes', 'attendease', 'schedule', 'sessions.html'))
|
284
285
|
self.content = File.read(File.join(base, '_includes', 'attendease', 'schedule', 'sessions.html')) # Use theme specific layout
|
@@ -426,11 +427,11 @@ module Jekyll
|
|
426
427
|
attendease_data_path = "#{site.source}/_attendease_data"
|
427
428
|
|
428
429
|
event = JSON.parse(File.read("#{attendease_data_path}/event.json"))
|
429
|
-
sessions = JSON.parse(File.read("#{attendease_data_path}/sessions.json"))
|
430
|
-
presenters = JSON.parse(File.read("#{attendease_data_path}/presenters.json"))
|
431
|
-
rooms = JSON.parse(File.read("#{attendease_data_path}/rooms.json"))
|
432
|
-
filters = JSON.parse(File.read("#{attendease_data_path}/filters.json"))
|
433
|
-
venues = JSON.parse(File.read("#{attendease_data_path}/venues.json"))
|
430
|
+
sessions = JSON.parse(File.read("#{attendease_data_path}/sessions.json")).sort{|s1, s2| s1['name'] <=> s2['name']}
|
431
|
+
presenters = JSON.parse(File.read("#{attendease_data_path}/presenters.json")).sort{|p1, p2| p1['last_name'] <=> p2['last_name']}
|
432
|
+
rooms = JSON.parse(File.read("#{attendease_data_path}/rooms.json")).sort{|r1, r2| r1['name'] <=> r2['name']}
|
433
|
+
filters = JSON.parse(File.read("#{attendease_data_path}/filters.json")).sort{|f1, f2| f1['name'] <=> f2['name']}
|
434
|
+
venues = JSON.parse(File.read("#{attendease_data_path}/venues.json")).sort{|v1, v2| v1['name'] <=> v2['name']}
|
434
435
|
|
435
436
|
# Generate the template files if they don't yet exist.
|
436
437
|
files_to_create_if_they_dont_exist = [
|
@@ -461,7 +462,7 @@ module Jekyll
|
|
461
462
|
site.pages << ScheduleDayPage.new(site, site.source, File.join(dir), event['dates'].first, sessions, event['dates'])
|
462
463
|
end
|
463
464
|
|
464
|
-
site.pages << ScheduleSessionsPage.new(site, site.source, File.join(dir, 'sessions'), sessions)
|
465
|
+
site.pages << ScheduleSessionsPage.new(site, site.source, File.join(dir, 'sessions'), sessions, event['dates'])
|
465
466
|
|
466
467
|
event['dates'].each do |day|
|
467
468
|
site.pages << ScheduleDayPage.new(site, site.source, File.join(dir, day['date']), day, sessions, event['dates'])
|
@@ -1,3 +1,16 @@
|
|
1
|
+
<div class="attendease-navigation">
|
2
|
+
<ul class="attendease-dates">
|
3
|
+
{% for day in page.dates %}
|
4
|
+
<li data-date="{{ day.date }}">
|
5
|
+
<a href="/schedule/{{ day.date }}">{{ day.date_formatted }}</a>
|
6
|
+
</li>
|
7
|
+
{% endfor %}
|
8
|
+
<li class="active">
|
9
|
+
<a href="/schedule/sessions">List all</a>
|
10
|
+
</li>
|
11
|
+
</ul>
|
12
|
+
</div>
|
13
|
+
|
1
14
|
<div class="attendease-schedule">
|
2
15
|
<div class="attendease-header">
|
3
16
|
{% assign t_size = page.session.size %}
|
metadata
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-attendease
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.5
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Michael Wood
|
@@ -15,43 +16,49 @@ dependencies:
|
|
15
16
|
- !ruby/object:Gem::Dependency
|
16
17
|
name: httparty
|
17
18
|
requirement: !ruby/object:Gem::Requirement
|
19
|
+
none: false
|
18
20
|
requirements:
|
19
|
-
- - '>='
|
21
|
+
- - ! '>='
|
20
22
|
- !ruby/object:Gem::Version
|
21
23
|
version: '0'
|
22
24
|
type: :runtime
|
23
25
|
prerelease: false
|
24
26
|
version_requirements: !ruby/object:Gem::Requirement
|
27
|
+
none: false
|
25
28
|
requirements:
|
26
|
-
- - '>='
|
29
|
+
- - ! '>='
|
27
30
|
- !ruby/object:Gem::Version
|
28
31
|
version: '0'
|
29
32
|
- !ruby/object:Gem::Dependency
|
30
33
|
name: json
|
31
34
|
requirement: !ruby/object:Gem::Requirement
|
35
|
+
none: false
|
32
36
|
requirements:
|
33
|
-
- - '>='
|
37
|
+
- - ! '>='
|
34
38
|
- !ruby/object:Gem::Version
|
35
39
|
version: '0'
|
36
40
|
type: :runtime
|
37
41
|
prerelease: false
|
38
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
none: false
|
39
44
|
requirements:
|
40
|
-
- - '>='
|
45
|
+
- - ! '>='
|
41
46
|
- !ruby/object:Gem::Version
|
42
47
|
version: '0'
|
43
48
|
- !ruby/object:Gem::Dependency
|
44
49
|
name: i18n
|
45
50
|
requirement: !ruby/object:Gem::Requirement
|
51
|
+
none: false
|
46
52
|
requirements:
|
47
|
-
- - '>='
|
53
|
+
- - ! '>='
|
48
54
|
- !ruby/object:Gem::Version
|
49
55
|
version: '0'
|
50
56
|
type: :runtime
|
51
57
|
prerelease: false
|
52
58
|
version_requirements: !ruby/object:Gem::Requirement
|
59
|
+
none: false
|
53
60
|
requirements:
|
54
|
-
- - '>='
|
61
|
+
- - ! '>='
|
55
62
|
- !ruby/object:Gem::Version
|
56
63
|
version: '0'
|
57
64
|
description: Bring your event data into Jekyll for amazing event websites.
|
@@ -74,25 +81,26 @@ files:
|
|
74
81
|
homepage: https://attendease.com/
|
75
82
|
licenses:
|
76
83
|
- MIT
|
77
|
-
metadata: {}
|
78
84
|
post_install_message:
|
79
85
|
rdoc_options: []
|
80
86
|
require_paths:
|
81
87
|
- lib
|
82
88
|
required_ruby_version: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
83
90
|
requirements:
|
84
|
-
- - '>='
|
91
|
+
- - ! '>='
|
85
92
|
- !ruby/object:Gem::Version
|
86
93
|
version: '0'
|
87
94
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
95
|
+
none: false
|
88
96
|
requirements:
|
89
|
-
- - '>='
|
97
|
+
- - ! '>='
|
90
98
|
- !ruby/object:Gem::Version
|
91
99
|
version: '0'
|
92
100
|
requirements: []
|
93
101
|
rubyforge_project:
|
94
|
-
rubygems_version:
|
102
|
+
rubygems_version: 1.8.23
|
95
103
|
signing_key:
|
96
|
-
specification_version:
|
104
|
+
specification_version: 3
|
97
105
|
summary: Attendease event helper for Jekyll
|
98
106
|
test_files: []
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: 4f867f34c0e4cc4dabc62736cce3090ff8704f69
|
4
|
-
data.tar.gz: 3762e813ed104e03303573e54c66e811bc01b79c
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: ff901e6c108f5552659bdb976d175833ba5d3b064c74310705290188e2cb4b43be28b195ed5a29376b787fd25818b645af088093d0bff430b4e233ab2ad1fbcb
|
7
|
-
data.tar.gz: 58a84db46c4bff9098325473b0da0f9f47d16364209b97d5426d45005edac6bcf9250d1a9c060a62f0e88db6776f0e7c49011eedf8828ea110c661d825f90a67
|