udongo 7.1.3 → 7.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/controllers/backend/content/rows/pictures_controller.rb +1 -1
- data/app/views/backend/content/_picture.html.erb +5 -1
- data/app/views/backend/content/rows/pictures/edit.html.erb +1 -0
- data/app/views/frontend/flexible_content/_picture.html.erb +10 -2
- data/changelog.md +5 -0
- data/config/locales/en_forms.yml +3 -0
- data/config/locales/nl_forms.yml +3 -0
- data/db/migrate/20171217163339_add_disallow_resizeto_content_picture.rb +5 -0
- data/lib/udongo/version.rb +1 -1
- metadata +3 -4
- data/app/inputs/button_radios_input.rb +0 -6
- data/config/environment.rb +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c701bf9ff7ebe6af8d5ca23fb2f612a910001a7
|
4
|
+
data.tar.gz: 4b38b1933f9e41d1706dc20b1bb3d1aa51c21c27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a188750f343d64da5d6df6b07afaed9357491dde3a1c4839f1e2fe7300c4af3dc849bd6fa91f60f19480290aa94b11fac915fc4edc25aa33a7dd936fa9ae130
|
7
|
+
data.tar.gz: 3925dc94bfb6bb8d45dd52a8a0f00bb931c34c2d4dc9dca22ca13663c11720da4798657e4dacfccc5144276f09e332381eaf2962ccd561fa06a1f24eebafa411
|
@@ -5,7 +5,7 @@ class Backend::Content::Rows::PicturesController < Backend::BaseController
|
|
5
5
|
before_action :prepare_upload, only: [:link_or_upload, :upload]
|
6
6
|
|
7
7
|
model ContentPicture
|
8
|
-
allowed_params :caption, :url
|
8
|
+
allowed_params :caption, :url, :disallow_resize
|
9
9
|
|
10
10
|
def link
|
11
11
|
@model.asset = Asset.find params[:asset_id]
|
@@ -1,6 +1,10 @@
|
|
1
1
|
<% if object.present? && object.asset.present? %>
|
2
2
|
|
3
|
-
|
3
|
+
<% if object.disallow_resize? %>
|
4
|
+
<%= image_tag object.asset.image.url, alt: '', class: 'img-fluid' %>
|
5
|
+
<% else %>
|
6
|
+
<%= image_tag object.asset.image.url(1100, 1100, quality: 65), alt: '', class: 'img-fluid' %>
|
7
|
+
<% end %>
|
4
8
|
|
5
9
|
<% if object.caption.present? %>
|
6
10
|
<% if Udongo.config.flexible_content.picture_caption_editor? %>
|
@@ -3,6 +3,7 @@
|
|
3
3
|
<%= image_tag @model.asset.image.url(900, 900, quality: 65), alt: '', class: 'img-fluid' %>
|
4
4
|
|
5
5
|
<%= simple_form_for [:backend, @model] do |f| %>
|
6
|
+
<%= f.input :disallow_resize, as: :boolean %>
|
6
7
|
<%= f.input :url, as: :string %>
|
7
8
|
|
8
9
|
<% content_type = Udongo.config.flexible_content.picture_caption_editor? ? :ckeditor : :text %>
|
@@ -3,11 +3,19 @@
|
|
3
3
|
|
4
4
|
<% if object.url.present? %>
|
5
5
|
<%= link_to object.url do %>
|
6
|
-
|
6
|
+
<% if object.disallow_resize? %>
|
7
|
+
<%= image_tag object.asset.image.url, alt: '', class: 'img-fluid' %>
|
8
|
+
<% else %>
|
9
|
+
<%= image_tag object.asset.image.url(max_img_size, max_img_size, quality: 65), alt: '', class: 'img-fluid' %>
|
10
|
+
<% end %>
|
7
11
|
<% end %>
|
8
12
|
|
9
13
|
<% else %>
|
10
|
-
|
14
|
+
<% if object.disallow_resize? %>
|
15
|
+
<%= image_tag object.asset.image.url, alt: '', class: 'img-fluid' %>
|
16
|
+
<% else %>
|
17
|
+
<%= image_tag object.asset.image.url(max_img_size, max_img_size, quality: 65), alt: '', class: 'img-fluid' %>
|
18
|
+
<% end %>
|
11
19
|
<% end %>
|
12
20
|
|
13
21
|
<% if object.caption.present? %>
|
data/changelog.md
CHANGED
data/config/locales/en_forms.yml
CHANGED
data/config/locales/nl_forms.yml
CHANGED
data/lib/udongo/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: udongo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.
|
4
|
+
version: 7.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Davy Hellemans
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-12-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -536,7 +536,6 @@ files:
|
|
536
536
|
- app/helpers/page_helper.rb
|
537
537
|
- app/helpers/snippet_helper.rb
|
538
538
|
- app/helpers/udongo_helper.rb
|
539
|
-
- app/inputs/button_radios_input.rb
|
540
539
|
- app/inputs/date_picker_input.rb
|
541
540
|
- app/inputs/date_range_picker_input.rb
|
542
541
|
- app/mailers/general_mailer.rb
|
@@ -745,7 +744,6 @@ files:
|
|
745
744
|
- app/views/layouts/backend/login.html.erb
|
746
745
|
- app/views/layouts/frontend/application.html.erb
|
747
746
|
- changelog.md
|
748
|
-
- config/environment.rb
|
749
747
|
- config/initializers/assets.rb
|
750
748
|
- config/initializers/ckeditor.rb
|
751
749
|
- config/initializers/core_ext/string.rb
|
@@ -861,6 +859,7 @@ files:
|
|
861
859
|
- db/migrate/20170728125838_remove_content_images.rb
|
862
860
|
- db/migrate/20170919135942_add_external_reference_to_content_column.rb
|
863
861
|
- db/migrate/20171119182643_larger_email_plain_html_storage.rb
|
862
|
+
- db/migrate/20171217163339_add_disallow_resizeto_content_picture.rb
|
864
863
|
- lib/tasks/task_extras.rb
|
865
864
|
- lib/tasks/udongo_tasks.rake
|
866
865
|
- lib/udongo.rb
|
data/config/environment.rb
DELETED
File without changes
|