spina-conferences-primer_theme 0.1.17 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/config/spina_conferences_primer_theme_manifest.js +0 -1
- data/app/assets/stylesheets/spina/conferences/primer_theme/application.sass +11 -8
- data/app/controllers/spina/conferences/primer_theme/conferences_controller.rb +6 -1
- data/app/helpers/spina/conferences/primer_theme/application_helper.rb +3 -14
- data/app/views/conferences_primer_theme/pages/about.html.haml +89 -19
- data/app/views/conferences_primer_theme/pages/committee.html.haml +41 -9
- data/app/views/conferences_primer_theme/pages/events.html.haml +57 -10
- data/app/views/conferences_primer_theme/pages/homepage.html.haml +29 -4
- data/app/views/conferences_primer_theme/pages/information.html.haml +4 -5
- data/app/views/conferences_primer_theme/pages/show.html.haml +1 -1
- data/app/views/layouts/spina/conferences/primer_theme/application.html.haml +7 -6
- data/app/views/spina/application/_cookies.html.haml +1 -1
- data/app/views/spina/application/_current_conference_alert.html.haml +1 -1
- data/app/views/spina/application/_footer.html.haml +2 -2
- data/app/views/spina/application/_footer_content.html.haml +3 -3
- data/app/views/spina/application/_list_item.html.haml +1 -1
- data/app/views/spina/application/_logo.html.haml +1 -1
- data/app/views/spina/application/_navigation.html.haml +9 -10
- data/app/views/spina/application/_navigation_item.html.haml +9 -10
- data/app/views/spina/application/_navigation_items.html.haml +3 -0
- data/app/views/spina/conferences/primer_theme/conferences/_conference.html.haml +4 -4
- data/app/views/spina/conferences/primer_theme/conferences/_event.html.haml +4 -4
- data/app/views/spina/conferences/primer_theme/conferences/_events.html.haml +1 -1
- data/app/views/spina/conferences/primer_theme/conferences/_header.html.haml +34 -15
- data/app/views/spina/conferences/primer_theme/conferences/_presentation.html.haml +5 -5
- data/app/views/spina/conferences/primer_theme/conferences/_presentations.html.haml +2 -1
- data/app/views/spina/conferences/primer_theme/conferences/_submission_flash.html.haml +10 -14
- data/app/views/spina/conferences/primer_theme/conferences/index.html.haml +3 -4
- data/app/views/spina/conferences/primer_theme/conferences/show.html.haml +17 -18
- data/app/views/spina/conferences/primer_theme/kaminari/_gap.html.haml +2 -0
- data/app/views/spina/conferences/primer_theme/kaminari/_next_page.html.haml +9 -0
- data/app/views/spina/conferences/primer_theme/kaminari/_page.html.haml +10 -0
- data/app/views/spina/conferences/primer_theme/kaminari/_paginator.html.haml +17 -0
- data/app/views/spina/conferences/primer_theme/kaminari/_prev_page.html.haml +9 -0
- data/app/views/spina/conferences/primer_theme/presentations/_attachment.html.haml +1 -1
- data/app/views/spina/conferences/primer_theme/presentations/show.html.haml +4 -4
- data/config/initializers/primer.rb +1 -1
- data/config/initializers/themes/conferences_primer_theme.rb +95 -178
- data/config/locales/en.yml +52 -56
- data/db/migrate/20210206170704_change_current_conference_alert_to_text.rb +17 -0
- data/lib/spina/conferences/primer_theme/version.rb +1 -1
- metadata +14 -31
- data/app/assets/stylesheets/spina/conferences/primer_theme/_admin.sass +0 -4
- data/app/assets/stylesheets/spina/conferences/primer_theme/_github.sass +0 -2
- data/app/assets/stylesheets/spina/conferences/primer_theme/_primer.sass +0 -4
- data/app/assets/stylesheets/spina/conferences/primer_theme/_turbolinks.sass +0 -3
- data/app/views/spina/application/_image_collection.html.haml +0 -19
- data/app/views/spina/application/_mobile_navigation_item.html.haml +0 -11
- data/app/views/spina/conferences/primer_theme/conferences/_information.html.haml +0 -4
- data/app/views/spina/conferences/primer_theme/conferences/_sponsor.html.haml +0 -8
- data/app/views/spina/conferences/primer_theme/conferences/_sponsors.html.haml +0 -6
- data/app/views/spina/pages/_committee_bio.html.haml +0 -36
- data/app/views/spina/pages/_committee_bios.html.haml +0 -7
- data/app/views/spina/pages/_constitution.html.haml +0 -12
- data/app/views/spina/pages/_contact.html.haml +0 -4
- data/app/views/spina/pages/_document.html.haml +0 -13
- data/app/views/spina/pages/_documents.html.haml +0 -7
- data/app/views/spina/pages/_event.html.haml +0 -18
- data/app/views/spina/pages/_events_list.html.haml +0 -19
- data/app/views/spina/pages/_homepage_content.html.haml +0 -14
- data/app/views/spina/pages/_jumbotron.html.haml +0 -2
- data/app/views/spina/pages/_minutes.html.haml +0 -9
- data/app/views/spina/pages/_minutes_entry.html.haml +0 -14
- data/app/views/spina/pages/_partner_societies.html.haml +0 -10
- data/app/views/spina/pages/_partner_society.html.haml +0 -28
data/config/locales/en.yml
CHANGED
@@ -37,72 +37,64 @@ en:
|
|
37
37
|
application:
|
38
38
|
title: "%{title} — %{suffix}"
|
39
39
|
|
40
|
-
|
41
|
-
show: Show
|
42
|
-
|
43
|
-
application:
|
44
|
-
cookies:
|
45
|
-
title: About cookies
|
46
|
-
footer:
|
47
|
-
copyright: © %{name} %{year}
|
48
|
-
find_on_github: Find us on GitHub
|
49
|
-
footer_content:
|
50
|
-
cookies: About cookies
|
51
|
-
loading: Loading…
|
52
|
-
image_collection:
|
53
|
-
previous: Previous
|
54
|
-
next: Next
|
55
|
-
|
40
|
+
conferences_primer_theme:
|
56
41
|
pages:
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
42
|
+
about:
|
43
|
+
contact:
|
44
|
+
title: Contact
|
45
|
+
constitution:
|
46
|
+
title: Constitution
|
47
|
+
uploaded: Uploaded %{date}
|
48
|
+
download: Download
|
49
|
+
no_constitution: No constitution uploaded.
|
50
|
+
minutes:
|
51
|
+
title: Minutes
|
52
|
+
no_minutes: No minutes added.
|
53
|
+
minutes_for_html: Minutes for %{date}
|
54
|
+
download: Download
|
55
|
+
no_file: No file uploaded.
|
56
|
+
no_date: No date specified.
|
57
|
+
documents:
|
58
|
+
title: Documents
|
59
|
+
download: Download
|
60
|
+
no_file: No file uploaded.
|
61
|
+
no_name: No name.
|
62
|
+
partner_societies:
|
63
|
+
title: Partner societies
|
64
|
+
no_societies: No societies added.
|
65
|
+
website: Website
|
66
|
+
email: Email
|
67
|
+
contact_buttons: Contact buttons
|
68
|
+
committee:
|
61
69
|
no_bios: No bios added.
|
62
|
-
committee_bio:
|
63
70
|
twitter: Twitter
|
64
71
|
facebook: Facebook
|
65
72
|
name_and_role: "%{name}, %{role}"
|
66
73
|
contact_buttons: Contact buttons
|
67
|
-
constitution:
|
68
|
-
title: Constitution
|
69
|
-
uploaded: Uploaded %{date}
|
70
|
-
download: Download
|
71
|
-
no_constitution: No constitution uploaded.
|
72
|
-
contact:
|
73
|
-
title: Contact
|
74
|
-
minutes:
|
75
|
-
title: Minutes
|
76
|
-
no_minutes: No minutes added.
|
77
|
-
minutes_entry:
|
78
|
-
minutes_html: Minutes for %{date}
|
79
|
-
download: Download
|
80
|
-
no_file: No file uploaded.
|
81
|
-
no_date: No date specified.
|
82
|
-
documents:
|
83
|
-
title: Documents
|
84
|
-
document:
|
85
|
-
download: Download
|
86
|
-
no_file: No file uploaded.
|
87
|
-
no_name: No name.
|
88
|
-
partner_societies:
|
89
|
-
title: Partner societies
|
90
|
-
no_societies: No societies added.
|
91
|
-
partner_society:
|
92
|
-
website: Website
|
93
|
-
email: Email
|
94
|
-
contact_buttons: Contact buttons
|
95
74
|
events:
|
96
75
|
no_events: No events.
|
97
|
-
events_list:
|
98
76
|
upcoming: Upcoming events
|
99
77
|
past: Past events
|
100
|
-
no_events: No events.
|
101
|
-
event:
|
102
78
|
time_and_place_html: "%{place}, %{time}"
|
103
79
|
time_tbc: Time TBC
|
104
80
|
location_tbc: Location TBC
|
105
81
|
more_info: More information
|
82
|
+
homepage:
|
83
|
+
more_info: More info
|
84
|
+
dates_html: "%{start_date}–%{finish_date}"
|
85
|
+
|
86
|
+
spina:
|
87
|
+
show: Show
|
88
|
+
|
89
|
+
application:
|
90
|
+
cookies:
|
91
|
+
title: About cookies
|
92
|
+
footer:
|
93
|
+
copyright: © %{name} %{year}
|
94
|
+
find_on_github: Find us on GitHub
|
95
|
+
footer_content:
|
96
|
+
cookies: About cookies
|
97
|
+
loading: Loading…
|
106
98
|
|
107
99
|
conferences:
|
108
100
|
primer_theme:
|
@@ -123,6 +115,8 @@ en:
|
|
123
115
|
events: Events
|
124
116
|
no_tab: No tab.
|
125
117
|
tab_does_not_exist: "The tab '%{tab}' does not exist."
|
118
|
+
no_information: No information.
|
119
|
+
conference_navigation: Conference content
|
126
120
|
presentations:
|
127
121
|
all_presentation_types: All
|
128
122
|
results: Results
|
@@ -137,10 +131,6 @@ en:
|
|
137
131
|
no_events: No events.
|
138
132
|
event:
|
139
133
|
times_html: "%{start_time}–%{finish_time}"
|
140
|
-
information:
|
141
|
-
no_information: No information.
|
142
|
-
sponsors:
|
143
|
-
title: Sponsors
|
144
134
|
conference:
|
145
135
|
dates_html: "%{start_date}–%{finish_date}"
|
146
136
|
locations: "%{institutions}, %{cities}"
|
@@ -150,6 +140,12 @@ en:
|
|
150
140
|
header:
|
151
141
|
dates_html: "%{start_date}–%{finish_date}"
|
152
142
|
locations: "%{institutions}, %{cities}"
|
143
|
+
gallery:
|
144
|
+
previous: Previous
|
145
|
+
next: Next
|
146
|
+
sponsors:
|
147
|
+
title: Sponsors
|
148
|
+
|
153
149
|
presentations:
|
154
150
|
show:
|
155
151
|
room_and_institution: "%{room}, %{institution}"
|
@@ -27,3 +27,20 @@ class ChangeCurrentConferenceAlertToText < ActiveRecord::Migration[6.0]
|
|
27
27
|
end
|
28
28
|
end
|
29
29
|
end
|
30
|
+
|
31
|
+
module Spina
|
32
|
+
class LayoutPart < ::Spina::ApplicationRecord
|
33
|
+
belongs_to :account
|
34
|
+
belongs_to :layout_partable, polymorphic: true
|
35
|
+
end
|
36
|
+
|
37
|
+
class Line < ApplicationRecord
|
38
|
+
extend Mobility
|
39
|
+
translates :content, fallbacks: true
|
40
|
+
end
|
41
|
+
|
42
|
+
class Text < ApplicationRecord
|
43
|
+
extend Mobility
|
44
|
+
translates :content, fallbacks: true
|
45
|
+
end
|
46
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spina-conferences-primer_theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Malčić
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-04-
|
11
|
+
date: 2021-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: babel-transpiler
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.0.
|
61
|
+
version: 0.0.35
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.0.
|
68
|
+
version: 0.0.35
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rails
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,28 +86,28 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '2.0'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
96
|
+
version: '2.0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: spina-admin-conferences
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
103
|
+
version: 2.0.0
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
110
|
+
version: 2.0.0
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: capybara
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -289,11 +289,7 @@ files:
|
|
289
289
|
- app/assets/config/spina_conferences_primer_theme_manifest.js
|
290
290
|
- app/assets/javascripts/spina/conferences/primer_theme/application.js
|
291
291
|
- app/assets/javascripts/spina/conferences/primer_theme/controllers/slideshow_controller.es6
|
292
|
-
- app/assets/stylesheets/spina/conferences/primer_theme/_admin.sass
|
293
292
|
- app/assets/stylesheets/spina/conferences/primer_theme/_custom.sass
|
294
|
-
- app/assets/stylesheets/spina/conferences/primer_theme/_github.sass
|
295
|
-
- app/assets/stylesheets/spina/conferences/primer_theme/_primer.sass
|
296
|
-
- app/assets/stylesheets/spina/conferences/primer_theme/_turbolinks.sass
|
297
293
|
- app/assets/stylesheets/spina/conferences/primer_theme/application.sass
|
298
294
|
- app/controllers/spina/conferences/primer_theme/application_controller.rb
|
299
295
|
- app/controllers/spina/conferences/primer_theme/conferences_controller.rb
|
@@ -316,12 +312,11 @@ files:
|
|
316
312
|
- app/views/spina/application/_current_conference_alert.html.haml
|
317
313
|
- app/views/spina/application/_footer.html.haml
|
318
314
|
- app/views/spina/application/_footer_content.html.haml
|
319
|
-
- app/views/spina/application/_image_collection.html.haml
|
320
315
|
- app/views/spina/application/_list_item.html.haml
|
321
316
|
- app/views/spina/application/_logo.html.haml
|
322
|
-
- app/views/spina/application/_mobile_navigation_item.html.haml
|
323
317
|
- app/views/spina/application/_navigation.html.haml
|
324
318
|
- app/views/spina/application/_navigation_item.html.haml
|
319
|
+
- app/views/spina/application/_navigation_items.html.haml
|
325
320
|
- app/views/spina/application/_text.html.haml
|
326
321
|
- app/views/spina/conferences/primer_theme/conferences/_conference.html.haml
|
327
322
|
- app/views/spina/conferences/primer_theme/conferences/_conference.ics.erb
|
@@ -329,38 +324,26 @@ files:
|
|
329
324
|
- app/views/spina/conferences/primer_theme/conferences/_event.ics.erb
|
330
325
|
- app/views/spina/conferences/primer_theme/conferences/_events.html.haml
|
331
326
|
- app/views/spina/conferences/primer_theme/conferences/_header.html.haml
|
332
|
-
- app/views/spina/conferences/primer_theme/conferences/_information.html.haml
|
333
327
|
- app/views/spina/conferences/primer_theme/conferences/_institution.html.haml
|
334
328
|
- app/views/spina/conferences/primer_theme/conferences/_institution_logo.html.haml
|
335
329
|
- app/views/spina/conferences/primer_theme/conferences/_presentation.html.haml
|
336
330
|
- app/views/spina/conferences/primer_theme/conferences/_presentation.ics.erb
|
337
331
|
- app/views/spina/conferences/primer_theme/conferences/_presentation_type.html.haml
|
338
332
|
- app/views/spina/conferences/primer_theme/conferences/_presentations.html.haml
|
339
|
-
- app/views/spina/conferences/primer_theme/conferences/_sponsor.html.haml
|
340
|
-
- app/views/spina/conferences/primer_theme/conferences/_sponsors.html.haml
|
341
333
|
- app/views/spina/conferences/primer_theme/conferences/_submission_flash.html.haml
|
342
334
|
- app/views/spina/conferences/primer_theme/conferences/index.html.haml
|
343
335
|
- app/views/spina/conferences/primer_theme/conferences/index.ics.erb
|
344
336
|
- app/views/spina/conferences/primer_theme/conferences/show.html.haml
|
345
337
|
- app/views/spina/conferences/primer_theme/conferences/show.ics.erb
|
338
|
+
- app/views/spina/conferences/primer_theme/kaminari/_gap.html.haml
|
339
|
+
- app/views/spina/conferences/primer_theme/kaminari/_next_page.html.haml
|
340
|
+
- app/views/spina/conferences/primer_theme/kaminari/_page.html.haml
|
341
|
+
- app/views/spina/conferences/primer_theme/kaminari/_paginator.html.haml
|
342
|
+
- app/views/spina/conferences/primer_theme/kaminari/_prev_page.html.haml
|
346
343
|
- app/views/spina/conferences/primer_theme/presentations/_abstract.html.haml
|
347
344
|
- app/views/spina/conferences/primer_theme/presentations/_attachment.html.haml
|
348
345
|
- app/views/spina/conferences/primer_theme/presentations/_attachments.html.haml
|
349
346
|
- app/views/spina/conferences/primer_theme/presentations/show.html.haml
|
350
|
-
- app/views/spina/pages/_committee_bio.html.haml
|
351
|
-
- app/views/spina/pages/_committee_bios.html.haml
|
352
|
-
- app/views/spina/pages/_constitution.html.haml
|
353
|
-
- app/views/spina/pages/_contact.html.haml
|
354
|
-
- app/views/spina/pages/_document.html.haml
|
355
|
-
- app/views/spina/pages/_documents.html.haml
|
356
|
-
- app/views/spina/pages/_event.html.haml
|
357
|
-
- app/views/spina/pages/_events_list.html.haml
|
358
|
-
- app/views/spina/pages/_homepage_content.html.haml
|
359
|
-
- app/views/spina/pages/_jumbotron.html.haml
|
360
|
-
- app/views/spina/pages/_minutes.html.haml
|
361
|
-
- app/views/spina/pages/_minutes_entry.html.haml
|
362
|
-
- app/views/spina/pages/_partner_societies.html.haml
|
363
|
-
- app/views/spina/pages/_partner_society.html.haml
|
364
347
|
- config/initializers/assets.rb
|
365
348
|
- config/initializers/primer.rb
|
366
349
|
- config/initializers/themes/conferences_primer_theme.rb
|
@@ -1,19 +0,0 @@
|
|
1
|
-
- return if image_collection.images.none?
|
2
|
-
|
3
|
-
.position-relative{ data: { controller: :slideshow, slideshow: { incrementer: 0, advance: (true if local_assigns[:advance]) } } }
|
4
|
-
- image_collection.images.each_with_index do |image, index|
|
5
|
-
- if image.file.present?
|
6
|
-
= image_tag(main_app.url_for(image.file.variant(resize_to_fill: [1680, 600])), alt_description: image.file.name, draggable: false,
|
7
|
-
srcset: srcset(image.file, variant: { resize_to_fill: [1680, 600] }), hidden: index != 0,
|
8
|
-
data: { 'slideshow-target': 'slide' }, class: %w[d-block mx-auto])
|
9
|
-
.position-absolute.top-0.left-0.right-0.bottom-0.container-lg.p-responsive{ class: ('position-absolute top-0' if local_assigns[:controls]) }
|
10
|
-
- if local_assigns[:controls] && image_collection.images.many?
|
11
|
-
.d-none.d-sm-flex.flex-justify-between.flex-items-center.height-full
|
12
|
-
= render Primer::ButtonComponent.new(data: { action: :'slideshow#previous' }) do
|
13
|
-
= render Primer::OcticonComponent.new(icon: 'arrow-left')
|
14
|
-
= t(:'.previous')
|
15
|
-
= render Primer::ButtonComponent.new(data: { action: :'slideshow#next' }) do
|
16
|
-
= t(:'.next')
|
17
|
-
= render Primer::OcticonComponent.new(icon: 'arrow-right')
|
18
|
-
- else
|
19
|
-
.text-white= yield
|
@@ -1,11 +0,0 @@
|
|
1
|
-
- if mobile_navigation_item.has_children?
|
2
|
-
%details.details-reset
|
3
|
-
%summary.btn-link.d-block.py-2.border-top.border-white-fade.text-white
|
4
|
-
= mobile_navigation_item.menu_title
|
5
|
-
= render Primer::OcticonComponent.new(icon: 'chevron-down')
|
6
|
-
%ul.list-style-none
|
7
|
-
- mobile_navigation_item.children.each do |child|
|
8
|
-
%li= link_to child.menu_title, child.materialized_path, class: %w[d-block py-2 pl-3 border-top border-white-fade text-white]
|
9
|
-
- elsif mobile_navigation_item.is_root?
|
10
|
-
= link_to mobile_navigation_item.menu_title, mobile_navigation_item.materialized_path,
|
11
|
-
class: %w[d-block py-2 border-top border-white-fade text-white]
|
@@ -1,8 +0,0 @@
|
|
1
|
-
= render Primer::FlexItemComponent.new(m: 2, vertical_align: :middle) do
|
2
|
-
- if sponsor.has_content?(:logo) && sponsor.content(:logo).file.present?
|
3
|
-
= link_to sponsor.content(:website) do
|
4
|
-
= image_tag(main_app.url_for(sponsor.content(:logo).file.variant(resize_to_limit: [200, 60])),
|
5
|
-
srcset: srcset(sponsor.content(:logo).file, variant: { resize_to_limit: [200, 60] }),
|
6
|
-
alt_description: sponsor.content(:name), draggable: false)
|
7
|
-
- else
|
8
|
-
= render(Primer::LinkComponent.new(href: sponsor.content(:website) || '')) { sponsor.content(:name) }
|
@@ -1,6 +0,0 @@
|
|
1
|
-
= render Primer::SubheadComponent.new(spacious: true) do |component|
|
2
|
-
= component.heading(tag: :h2) { t :'.title' }
|
3
|
-
|
4
|
-
= render Primer::FlexComponent.new(flex_wrap: true, classes: dom_class(sponsors), ml: -2, mr: -2, mt: -2, mb: -2) do
|
5
|
-
= render partial: 'sponsor', collection: sponsors.structure_items.sorted_by_structure,
|
6
|
-
cached: -> sponsor { [sponsor, sponsor.structure_parts.collect(&:structure_partable)] }
|
@@ -1,36 +0,0 @@
|
|
1
|
-
- cache [committee_bio, committee_bio.structure_parts.collect(&:structure_partable)] do
|
2
|
-
= render Primer::FlexComponent.new(direction: [:column, nil, :row, nil], align_items: :start) do
|
3
|
-
- cache partable_for(:profile_picture, parent: committee_bio) do
|
4
|
-
- if committee_bio.has_content?(:profile_picture) && committee_bio.content(:profile_picture).persisted? && committee_bio.content(:profile_picture).file.present?
|
5
|
-
= render Primer::AvatarComponent.new(src: main_app.url_for(committee_bio.content(:profile_picture).file.variant(resize_to_fill: [150, 150])),
|
6
|
-
srcset: srcset_string(committee_bio.content(:profile_picture).file,
|
7
|
-
variant: { resize_to_limit: [150, 150] }),
|
8
|
-
draggable: false, alt: committee_bio.content(:name), size: 150, mr: [nil, nil, 3, nil],
|
9
|
-
mb: [3, nil, 0, nil], flex_shrink: 0)
|
10
|
-
= render Primer::FlexItemComponent.new(flex_auto: true) do
|
11
|
-
= render Primer::FlexComponent.new(direction: [:column, nil, :row, nil], mb: 1) do
|
12
|
-
- cache partable_for(:name, :role, :institution, parent: committee_bio) do
|
13
|
-
= render Primer::BoxComponent.new do
|
14
|
-
- if committee_bio.has_content?(:name)
|
15
|
-
= render(Primer::HeadingComponent.new(tag: :h3)) do
|
16
|
-
- if committee_bio.has_content?(:role)
|
17
|
-
= t :'.name_and_role', name: committee_bio.content(:name), role: committee_bio.content(:role)
|
18
|
-
- else
|
19
|
-
= committee_bio.content(:name)
|
20
|
-
- if committee_bio.has_content?(:institution)
|
21
|
-
= render(Primer::HeadingComponent.new(tag: :h4)) { committee_bio.content(:institution) }
|
22
|
-
= render Primer::ButtonGroupComponent.new(mt: [1, nil, 0, nil], ml: [nil, nil, 1, nil],
|
23
|
-
aria: { label: t(:'.contact_buttons') }) do |component|
|
24
|
-
- cache partable_for(:twitter_profile, parent: committee_bio) do
|
25
|
-
- if committee_bio.has_content?(:twitter_profile)
|
26
|
-
= component.button(tag: :a, href: committee_bio.content(:twitter_profile)) do
|
27
|
-
= render Primer::OcticonComponent.new(icon: 'link-external')
|
28
|
-
= t(:'.twitter')
|
29
|
-
- cache partable_for(:facebook_profile, parent: committee_bio) do
|
30
|
-
- if committee_bio.has_content?(:facebook_profile)
|
31
|
-
= component.button(tag: :a, href: committee_bio.content(:facebook_profile)) do
|
32
|
-
= render Primer::OcticonComponent.new(icon: 'link-external')
|
33
|
-
= t(:'.facebook')
|
34
|
-
- cache partable_for(:bio, parent: committee_bio) do
|
35
|
-
- if committee_bio.has_content?(:bio)
|
36
|
-
= render(Primer::TextComponent.new(tag: :div, color: :gray_light)) { committee_bio.content(:bio).try(:html_safe) }
|
@@ -1,7 +0,0 @@
|
|
1
|
-
- if committee_bios.structure_items.any?
|
2
|
-
%ul{ class: dom_class(committee_bios), id: dom_id(committee_bios) }
|
3
|
-
= render partial: 'committee_bio', collection: committee_bios.structure_items.sorted_by_structure, layout: 'list_item',
|
4
|
-
locals: { list_item_id: ->(local_assigns) { dom_id(local_assigns[:committee_bio]) } },
|
5
|
-
cached: ->(committee_bio) { [committee_bio, committee_bio.structure_parts.collect(&:structure_partable)] }
|
6
|
-
- else
|
7
|
-
= render Primer::BlankslateComponent.new(title: t(:'.no_bios'), icon: 'file')
|
@@ -1,12 +0,0 @@
|
|
1
|
-
= render Primer::SubheadComponent.new do |component|
|
2
|
-
= component.heading { t :'.title' }
|
3
|
-
|
4
|
-
- if constitution.present?
|
5
|
-
= render Primer::FlexComponent.new(align_items: :center, py: 1) do
|
6
|
-
= render Primer::FlexItemComponent.new(flex_auto: true, pr: 1) do
|
7
|
-
= t :'.uploaded', date: l(constitution.created_at.to_date, format: :long)
|
8
|
-
= render Primer::ButtonComponent.new(tag: :a, href: main_app.rails_blob_path(constitution, disposition: :attachment), ml: 2) do
|
9
|
-
= render Primer::OcticonComponent.new(icon: 'desktop-download')
|
10
|
-
= t :'.download'
|
11
|
-
- else
|
12
|
-
= render Primer::BlankslateComponent.new(title: t(:'.no_constitution'), icon: 'law')
|