blueberry_cms 0.1.1.9 → 0.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
  SHA256:
3
- metadata.gz: ff4f57331f565a2f881cefe2a857bd1a2fde25de275ef0b33754fb2ceb78c430
4
- data.tar.gz: af9e10f69b672d02d3ca6998375fc5b37a7cec39d23d57d56e4627a87d5371a7
3
+ metadata.gz: a6db3094cef3cfe29d122b1597b26310227d535272a59a46763c6433e96bf353
4
+ data.tar.gz: d147478782ec92c030cebad5a9e8d75a119d91541225d2c81497bf6b177a8d56
5
5
  SHA512:
6
- metadata.gz: 03e4efa4022ff147c357334709963c93a5858febd4e94207b77c99c9ca325e21ce538312bd89893512dae0f842b9d8915f00de9153807d40014f4252ad414ce3
7
- data.tar.gz: 55eb36a4383b052eb2baed82c2f1e019d03ca681f100ad81b6d35d04aa21cb251d724c4ace299925a80d2a243e107b283605c85e9022861e1dfd375dca5b109e
6
+ metadata.gz: eb69f05efee6b5c245f86728269f92a68a6abd300519658d151d48d1863e97d8dc903c2b2c6914ec538519236945e61dd5a74e9af8a41d7143e66039bb572199
7
+ data.tar.gz: b7241b13812db7c96a791ab93d00f8a3c500afadefc36e93db35b7729a09d8a37ab70b1cbc8fb867ce947432329f496d34662b35fab12e17f60d366b1fc709bc
@@ -25,6 +25,8 @@ module BlueberryCMS
25
25
  cascade_callbacks: true,
26
26
  order: :position.asc
27
27
 
28
+ mount_uploader :meta_image, ImageUploader
29
+
28
30
  slug :slug_source, localize: true
29
31
 
30
32
  accepts_nested_attributes_for :blocks, allow_destroy: true
@@ -24,6 +24,18 @@
24
24
  = f.simple_fields_for :meta_keywords_translations do |localized_field|
25
25
  = localized_field.input locale, input_html: { value: f.object.meta_keywords_translations[locale] }, label: false
26
26
 
27
+ .form-layout
28
+ .image-holder
29
+ - if f.object.meta_image.present?
30
+ - if f.object.meta_image?
31
+ - if f.object.meta_image.content_type == 'image/svg+xml'
32
+ = image_tag f.object.meta_image.url
33
+ - else
34
+ = image_tag f.object.meta_image.url(:thumb)
35
+ = f.input :remove_meta_image, as: :boolean
36
+ - else
37
+ = f.input :meta_image
38
+
27
39
  hr
28
40
 
29
41
  .form-layout
@@ -14,6 +14,12 @@ cs:
14
14
  page_id: Stránka
15
15
  percentage: Procenta
16
16
  url: URL
17
+ blueberry_cms/page:
18
+ meta_description: Meta description
19
+ meta_image: og:image
20
+ meta_keywords: Meta keywords
21
+ meta_title: Meta title
22
+ remove_meta_image: Odstranit og:image
17
23
  blueberry_cms/page_block:
18
24
  block_anchor: ID bloku
19
25
  bottom_margin: Dolní mezera
@@ -45,7 +51,7 @@ cs:
45
51
  errors:
46
52
  messages:
47
53
  restrict_dependent_destroy:
48
- is_shared: Nemůžu smazat položku protože existuje závislý blok
54
+ is_shared: Nemůžu smazat položku, protože existuje závislý blok
49
55
  models:
50
56
  blueberry_cms/page_blocks/faq: FAQ
51
57
  blueberry_cms/page_blocks/gallery: Galerie
@@ -1,3 +1,3 @@
1
1
  module BlueberryCMS
2
- VERSION = '0.1.1.9'.freeze
2
+ VERSION = '0.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.9
4
+ version: 0.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-05-22 00:00:00.000000000 Z
12
+ date: 2019-06-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: carrierwave
@@ -371,7 +371,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
371
371
  - !ruby/object:Gem::Version
372
372
  version: '0'
373
373
  requirements: []
374
- rubygems_version: 3.0.1
374
+ rubygems_version: 3.0.3
375
375
  signing_key:
376
376
  specification_version: 4
377
377
  summary: Summary of BlueberryCMS.