ecm_pictures2_backend 3.1.2 → 3.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/ecm/pictures/backend/pictures_controller.rb +4 -0
- data/app/views/ecm/pictures/backend/galleries/_table.html.haml +4 -4
- data/app/views/ecm/pictures/backend/pictures/_table.html.haml +4 -4
- data/config/locales/de.yml +1 -2
- data/config/locales/en.yml +5 -0
- data/lib/ecm/pictures/backend/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b9cf1131af3dc346a6e1a627471b2a157bfe1d3
|
4
|
+
data.tar.gz: c18acd53df03a461ffad0d239dc4a49dd9a3296a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9222f4cab585e8d1e705c065ed04e77b5a3ef3556c29373a2aee7e40a6e26230be72324521622a360fbdaf9d548d5f6436111b85de683aa091bdf4d01ad55a62
|
7
|
+
data.tar.gz: 9c717864e2192223fcc06044dc687d1f8f0ae896ee5d12d637b00726b4b6c407e1dc726bda5130ff975959cc1f87d30560976cbb76533abe579dbfab33ebfea6
|
@@ -22,6 +22,10 @@ class Ecm::Pictures::Backend::PicturesController < Itsf::Backend::Resource::Base
|
|
22
22
|
|
23
23
|
private
|
24
24
|
|
25
|
+
def collection_scope
|
26
|
+
super.includes(:gallery)
|
27
|
+
end
|
28
|
+
|
25
29
|
def extract_image_base64(encoded_image)
|
26
30
|
decoded_image = Base64.decode64(encoded_image.gsub(/^data\:image\/\w+\;base64\,/, '')).force_encoding('UTF-8')
|
27
31
|
content_type = encoded_image.split(';').first.split(':').last
|
@@ -1,6 +1,6 @@
|
|
1
|
-
= table.column :name, class: 'truncate-chars truncate-chars-30'
|
2
|
-
= table.column :description, class: 'truncate-chars truncate-chars-30'
|
3
|
-
= table.column :link_images
|
4
|
-
= table.column :pictures_count do |gallery|
|
1
|
+
= table.column :name, sortable: true, class: 'truncate-chars truncate-chars-30'
|
2
|
+
= table.column :description, sortable: true, class: 'truncate-chars truncate-chars-30'
|
3
|
+
= table.column :link_images, sortable: true
|
4
|
+
= table.column :pictures_count, sortable: true do |gallery|
|
5
5
|
%span.label.label-default= gallery.pictures_count
|
6
6
|
= table.timestamps
|
@@ -1,7 +1,7 @@
|
|
1
|
-
= table.association :gallery
|
1
|
+
= table.association :gallery # , sortable: :gallery_name
|
2
2
|
= table.column(:preview_picture) do |picture|
|
3
3
|
%img.img-responsive.bottom-margin-2{ src: picture.image.url(:default_thumb) }
|
4
|
-
= table.column :name, class: 'truncate-chars truncate-chars-30'
|
5
|
-
= table.column :description, class: 'truncate-chars truncate-chars-30'
|
6
|
-
= table.column(:image_file_size) { |picture| number_to_human_size(picture.image_file_size) }
|
4
|
+
= table.column :name, sortable: true, class: 'truncate-chars truncate-chars-30'
|
5
|
+
= table.column :description, sortable: true, class: 'truncate-chars truncate-chars-30'
|
6
|
+
= table.column(:image_file_size, sortable: true) { |picture| number_to_human_size(picture.image_file_size) }
|
7
7
|
= table.timestamps
|
data/config/locales/de.yml
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ecm_pictures2_backend
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roberto Vasquez Angel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -240,6 +240,7 @@ files:
|
|
240
240
|
- app/views/ecm/pictures/backend/pictures/_table.html.haml
|
241
241
|
- app/views/layouts/ecm/pictures/backend/application.html.erb
|
242
242
|
- config/locales/de.yml
|
243
|
+
- config/locales/en.yml
|
243
244
|
- config/rbac.yml
|
244
245
|
- config/routes.rb
|
245
246
|
- lib/ecm/pictures/backend.rb
|
@@ -271,9 +272,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
271
272
|
version: '0'
|
272
273
|
requirements: []
|
273
274
|
rubyforge_project:
|
274
|
-
rubygems_version: 2.
|
275
|
+
rubygems_version: 2.6.11
|
275
276
|
signing_key:
|
276
277
|
specification_version: 4
|
277
278
|
summary: Backend Module for ECM Pictures 2
|
278
279
|
test_files: []
|
279
|
-
has_rdoc:
|