spina-conferences-primer_theme 0.3.4 → 0.4.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/stylesheets/spina/conferences/primer_theme/application.sass +5 -0
- data/app/views/conferences_primer_theme/pages/embedded_form.html.haml +9 -0
- data/config/initializers/themes/conferences_primer_theme.rb +9 -0
- data/lib/spina/conferences/primer_theme/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44982318279af43da48830b7b35b8560608f21e5b55a6032e7b33e79bfb30cde
|
4
|
+
data.tar.gz: 965ac7a1dc323d5bf0edc8f4e3a2055629c7493382e30ffd63f81056170d9ded
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9589f32bcfa583311c9dd6f74c2803f5f8097467b9ff10ae383e853d8d93c5c9d3763dd476b4c9a32555be6a2a842de81521f72fd1aedaa2c194ea16faa3492e
|
7
|
+
data.tar.gz: 3c87d3ccab22659858b55597e29d1b16352bc0fdfb8f862ff3dc5e54477aa7896550ea71bbbbb88e207a7b1d41ee4128f2f6facb4e29bef972ded0120db46292
|
@@ -0,0 +1,9 @@
|
|
1
|
+
- cache current_page do
|
2
|
+
= render(Primer::HeadingComponent.new) { current_page.title }
|
3
|
+
|
4
|
+
- if content(:text).present?
|
5
|
+
= render(Primer::MarkdownComponent.new(mt: 4)) { content.html(:text) }
|
6
|
+
|
7
|
+
- if content(:embed_url).present?
|
8
|
+
= render Primer::BoxComponent.new(mt: 4, col: 12) do
|
9
|
+
%iframe#form_frame{ src: content(:embed_url), allowfullscreen: true }
|
@@ -158,6 +158,10 @@
|
|
158
158
|
name: 'url',
|
159
159
|
title: 'Link',
|
160
160
|
part_type: 'Spina::Parts::Admin::Conferences::Url'
|
161
|
+
}, {
|
162
|
+
name: 'embed_url',
|
163
|
+
title: 'Form embed URL',
|
164
|
+
part_type: 'Spina::Parts::Admin::Conferences::Url'
|
161
165
|
}]
|
162
166
|
|
163
167
|
theme.view_templates = [{
|
@@ -184,6 +188,11 @@
|
|
184
188
|
title: 'Events',
|
185
189
|
description: 'Contains details of past and upcoming events',
|
186
190
|
parts: %w[text events_list]
|
191
|
+
}, {
|
192
|
+
name: 'embedded_form',
|
193
|
+
title: 'Embedded form',
|
194
|
+
description: 'Contains an embedded form',
|
195
|
+
parts: %w[text embed_url]
|
187
196
|
}, {
|
188
197
|
name: 'show',
|
189
198
|
title: 'Blank',
|
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.4.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-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: babel-transpiler
|
@@ -300,6 +300,7 @@ files:
|
|
300
300
|
- app/helpers/spina/conferences/primer_theme/navigations_helper.rb
|
301
301
|
- app/views/conferences_primer_theme/pages/about.html.haml
|
302
302
|
- app/views/conferences_primer_theme/pages/committee.html.haml
|
303
|
+
- app/views/conferences_primer_theme/pages/embedded_form.html.haml
|
303
304
|
- app/views/conferences_primer_theme/pages/events.html.haml
|
304
305
|
- app/views/conferences_primer_theme/pages/homepage.html.haml
|
305
306
|
- app/views/conferences_primer_theme/pages/information.html.haml
|