blueberry_cms 0.1.1.1 → 0.1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/blueberry_cms/link.rb +0 -1
- data/app/models/blueberry_cms/page_blocks/links.rb +0 -3
- data/app/views/blueberry_cms/admin/page_blocks/_links.html.slim +0 -1
- data/app/views/blueberry_cms/admin/page_blocks/_links_links_fields.slim +0 -1
- data/app/views/blueberry_cms/page_blocks/_faq.html.slim +3 -3
- data/app/views/blueberry_cms/page_blocks/_form.html.slim +3 -4
- data/app/views/blueberry_cms/page_blocks/_gallery.html.slim +2 -3
- data/app/views/blueberry_cms/page_blocks/_links.html.slim +21 -48
- data/app/views/blueberry_cms/page_blocks/_videogallery.html.slim +5 -6
- data/lib/blueberry_cms/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7180df0710431bc22fda1a58c18ff7852253d3a5
|
4
|
+
data.tar.gz: 158855e925169811d1122648bcefee6a1cee6e57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c994eb3ed5a42274901c64e8c95263c4362d79c59ccc16ff4825a0f49d115daf3e011aeef10d2ec1daf458303e26f4e2a09d36df7932c4afeefabe5dcd6c902
|
7
|
+
data.tar.gz: 902affdda4a8c46a625e165c6810c7d61cf033daba28fc37b5bd1fc0eba44ce84c541a520ff7656e37193a07442a3ae005da78f31a0c3a428f19338552054c56
|
@@ -1,11 +1,8 @@
|
|
1
1
|
module BlueberryCMS
|
2
2
|
module PageBlocks
|
3
3
|
class Links < PageBlock
|
4
|
-
KIND = %i[basic graph].freeze
|
5
|
-
|
6
4
|
field :content, localize: true
|
7
5
|
field :title, localize: true
|
8
|
-
field :kind
|
9
6
|
|
10
7
|
embeds_many :links, class_name: 'BlueberryCMS::Link', cascade_callbacks: true
|
11
8
|
|
@@ -1,17 +1,17 @@
|
|
1
1
|
- if faq.title.present?
|
2
|
-
h2.
|
2
|
+
h2.h2 == faq.title
|
3
3
|
|
4
4
|
div data-controller='show-more'
|
5
5
|
.accordion#accordion-faq
|
6
6
|
- faq.questions.each_with_index do |question, index|
|
7
7
|
.accordion__wrapper data-target='show-more.item' style=('display:none' if index > 2)
|
8
8
|
a.accordion__card id="heading#{index}" href="collapse#{index}" aria-expanded='false' data={ target: "#collapse#{index}", toggle: 'collapse' }
|
9
|
-
h3.
|
9
|
+
h3.h3
|
10
10
|
= question.question
|
11
11
|
.accordion__content.collapse id="collapse#{index}" aria-labelledby="heading#{index}" data-parent='#accordion-faq'
|
12
12
|
.accordion__content__wrapper == question.answer
|
13
13
|
|
14
14
|
- if faq.questions.size > 3
|
15
|
-
p
|
15
|
+
p
|
16
16
|
a.btn.btn-primary href="#" data={ action: 'click->show-more#trigger', target: 'show-more.button', close_title: t('.show_less_faq') }
|
17
17
|
= t('.show_more_faq')
|
@@ -2,10 +2,9 @@
|
|
2
2
|
- if form.name.present?
|
3
3
|
|
4
4
|
- if form.kind == 'contact'
|
5
|
-
.
|
6
|
-
|
7
|
-
|
8
|
-
.tc == form.description
|
5
|
+
h2.h2 = form.name
|
6
|
+
- if form.description.present?
|
7
|
+
== form.description
|
9
8
|
.contact-form
|
10
9
|
.contact-form__box = render 'contact_forms/form', mailing_group_ids: form.mailing_group_ids, button_text: form.button_text
|
11
10
|
|
@@ -17,6 +17,5 @@
|
|
17
17
|
.col-gallery-text.col-gallery-text--single-image
|
18
18
|
== gallery.content
|
19
19
|
.col-gallery-image.col-gallery-image--single-image
|
20
|
-
|
21
|
-
|
22
|
-
= image_tag image.image.url(:gallery_block), alt: image.name, class: 'gallery-image gallery-image--single'
|
20
|
+
- gallery.images.each do |image|
|
21
|
+
= image_tag image.image.url(:gallery_block), alt: image.name, class: 'gallery-image gallery-image--single'
|
@@ -1,50 +1,23 @@
|
|
1
|
-
- if links.
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
1
|
+
- if links.title.present?
|
2
|
+
h2.h2 = links.title.presence
|
3
|
+
- if links.content.present?
|
4
|
+
== Liquid::Template.parse(links.content).render('h' => liquid_view_context)
|
5
|
+
ul.navbar-sub
|
6
|
+
- links.links.decorate.each do |link|
|
7
|
+
- if link.link_background.present?
|
8
|
+
li.navbar-sub__item
|
9
|
+
= link_to link.link_url, class: "navbar-sub__link"
|
10
|
+
- if link.title?
|
11
|
+
= link.title
|
12
|
+
- else
|
13
|
+
= link.link_title
|
14
|
+
- else
|
15
|
+
li.navbar-sub__item
|
16
|
+
= link_to link.link_url, class: "navbar-sub__link navbar-sub__link--hidden-arrow"
|
17
|
+
.navbar-sub__link-content
|
12
18
|
- if link.title?
|
13
|
-
= link.title
|
19
|
+
h3.h3 = link.title
|
14
20
|
- else
|
15
|
-
= link.link_title
|
16
|
-
|
17
|
-
|
18
|
-
= link_to link.link_url, class: "navbar-sub__link navbar-sub__link--hidden-arrow"
|
19
|
-
.navbar-sub__link-content
|
20
|
-
- if link.title?
|
21
|
-
h3.h6.fw7.mb-15 = link.title
|
22
|
-
- else
|
23
|
-
h3.h6.fw7.mb-15 = link.link_title
|
24
|
-
- if link.description?
|
25
|
-
p.gray-600 == link.description
|
26
|
-
- elsif links.kind == 'graph'
|
27
|
-
.mw-690.mcenter
|
28
|
-
- if links.title.present?
|
29
|
-
h2.h3.tc.mb-60-md.heading-breaking = links.title.presence
|
30
|
-
- if links.content.present?
|
31
|
-
.tc == Liquid::Template.parse(links.content).render('h' => liquid_view_context)
|
32
|
-
.progres-boxes.mt-80
|
33
|
-
- links.links.decorate.each do |link|
|
34
|
-
.progres-box
|
35
|
-
.progres-box__header
|
36
|
-
.progres-box__percentage
|
37
|
-
h3.h5
|
38
|
-
= link.percentage
|
39
|
-
<span>%</span>
|
40
|
-
- if link.image.url
|
41
|
-
- if link.image.content_type == 'image/svg+xml'
|
42
|
-
= image_tag link.image.url, title: link.title, alt: link.title
|
43
|
-
- else
|
44
|
-
= image_tag link.image.url(:thumb), title: link.title, alt: link.title
|
45
|
-
.progres-box__content
|
46
|
-
h3.h5.mb-20 = link.title
|
47
|
-
== link.description
|
48
|
-
.progres-box__footer
|
49
|
-
p
|
50
|
-
= link_to 'Zobrazit více', link.link_url, class: 'link-underline'
|
21
|
+
h3.h3 = link.link_title
|
22
|
+
- if link.description?
|
23
|
+
p == link.description
|
@@ -1,8 +1,7 @@
|
|
1
1
|
.row
|
2
2
|
.col-lg-6
|
3
3
|
- if videogallery.content.present?
|
4
|
-
.
|
5
|
-
== videogallery.content
|
4
|
+
== videogallery.content
|
6
5
|
|
7
6
|
#carouselAbsolvents.carousel.slide
|
8
7
|
.carousel-inner
|
@@ -14,10 +13,10 @@
|
|
14
13
|
.video-reference-preview
|
15
14
|
a.video-reference-preview__image.lightbox href=video.watch_link data-poster=video.preview_url
|
16
15
|
= image_tag video.preview_url, class: 'video-reference-preview__img'
|
17
|
-
|
18
|
-
.video-reference-preview__name
|
19
|
-
h3.
|
20
|
-
h4.
|
16
|
+
.video-reference-preview__play
|
17
|
+
.video-reference-preview__name
|
18
|
+
h3.h3 = video.title
|
19
|
+
h4.h4= video.job
|
21
20
|
|
22
21
|
- if videogallery.videos.size > 4
|
23
22
|
a.carousel-control.carousel-control-prev href="#carouselAbsolvents" role="button" data-slide="prev"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blueberry_cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.1.
|
4
|
+
version: 0.1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martin Magnusek
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-01-
|
12
|
+
date: 2019-01-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: carrierwave
|