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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bb0ea9bef57503200e2c03c9124a855f171a5d1b
4
- data.tar.gz: c264632afc1fca3293f3c37fd1ec906250707752
3
+ metadata.gz: 7180df0710431bc22fda1a58c18ff7852253d3a5
4
+ data.tar.gz: 158855e925169811d1122648bcefee6a1cee6e57
5
5
  SHA512:
6
- metadata.gz: 15b3019ffb3efe169701e0fcd8fa1bf8a7af94d920b927c46946e06c91dfb9b4a53530d29f5256b4b4022aa5b79a2c6a3065119a9f82489e2ff9578d18d2e306
7
- data.tar.gz: b7afb8ee3093a84cfabf51a2be3b5f5b3aa18bee246eb461fe981e82988a3de6ba22c8ab2f725933401da9485f99999defdc918f27483a0d49337fa5635544c6
6
+ metadata.gz: 7c994eb3ed5a42274901c64e8c95263c4362d79c59ccc16ff4825a0f49d115daf3e011aeef10d2ec1daf458303e26f4e2a09d36df7932c4afeefabe5dcd6c902
7
+ data.tar.gz: 902affdda4a8c46a625e165c6810c7d61cf033daba28fc37b5bd1fc0eba44ce84c541a520ff7656e37193a07442a3ae005da78f31a0c3a428f19338552054c56
@@ -8,7 +8,6 @@ module BlueberryCMS
8
8
  field :url, type: String
9
9
  field :page_id, type: BSON::ObjectId
10
10
  field :image_tmp, type: String
11
- field :percentage, type: String
12
11
 
13
12
  embedded_in :links, class_name: 'BlueberryCMS::PageBlocks::Links'
14
13
 
@@ -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,7 +1,6 @@
1
1
  - block_id = "block#{f.object_id}"
2
2
 
3
3
  = f.input :css_class
4
- = f.input :kind, collection: translated_const(BlueberryCMS::PageBlocks::Links, :kind), include_blank: false
5
4
 
6
5
  .form-layout
7
6
  - I18n.available_locales.each do |locale|
@@ -3,7 +3,6 @@
3
3
  .panel.panel-default
4
4
  .panel-body
5
5
  = f.input :css_class
6
- = f.input :percentage
7
6
  = f.input :title
8
7
  = f.input :description, as: :text, input_html: { class: 'redactor' }
9
8
  = f.input :url
@@ -1,17 +1,17 @@
1
1
  - if faq.title.present?
2
- h2.mb-60-mb.heading-breaking == faq.title
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.f20
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.mt-30.mt-60-md
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
- .mw-690.mcenter.mb-30.mb-60-md
6
- h2.h2.tc.heading-breaking = form.name
7
- - if form.description.present?
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
- .mt-30.mt-0-md
21
- - gallery.images.each do |image|
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.kind == 'basic'
2
- - if links.title.present?
3
- h2.h2.text-center.mb-20 = links.title.presence
4
- - if links.content.present?
5
- .mb-30.mb-50-md
6
- .tc == Liquid::Template.parse(links.content).render('h' => liquid_view_context)
7
- ul.navbar-sub
8
- - links.links.decorate.each do |link|
9
- - if link.link_background.present?
10
- li.navbar-sub__item
11
- = link_to link.link_url, class: "navbar-sub__link"
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
- - else
17
- li.navbar-sub__item
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
- .mb-40.mb-80-md
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
- = image_tag 'play.svg', class: 'video-reference-preview__play'
18
- .video-reference-preview__name.tc
19
- h3.h6.white.fw7.mb-5 = video.title
20
- h4.h6.fw4.white = video.job
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"
@@ -1,3 +1,3 @@
1
1
  module BlueberryCMS
2
- VERSION = '0.1.1.1'.freeze
2
+ VERSION = '0.1.1.2'.freeze
3
3
  end
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.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-09 00:00:00.000000000 Z
12
+ date: 2019-01-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: carrierwave