ecm_pictures2_backend 3.1.2 → 3.2.0

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: 797f5a0a7ca36e5a7667a39100d5220b32668c4a
4
- data.tar.gz: 3133b226f9afa78ad4262a6480eb7a60a4c8b31a
3
+ metadata.gz: 6b9cf1131af3dc346a6e1a627471b2a157bfe1d3
4
+ data.tar.gz: c18acd53df03a461ffad0d239dc4a49dd9a3296a
5
5
  SHA512:
6
- metadata.gz: ed845221c2e7ecfcc1374305204b252bdeaf7b5618d70fed714c3134327de07ed2136b642671a8fd7bdd4c4ffd31e27daa3d154db1ebecb7ae80bc428aae47c9
7
- data.tar.gz: bdfb0eff9dc637a52c32d68d49402b3f825323128137e6bd104c9d7dc20774bcedc88c1f71889c535921867fe62928959d361e674641af322770fd778183fabf
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
@@ -2,5 +2,4 @@ de:
2
2
  classes:
3
3
  ecm/pictures/backend/engine: 'Bilder'
4
4
  routes:
5
- mount:
6
- ecm_pictures_backend: '/backend/bilder'
5
+ ecm-pictures-backend-engine: 'bilder'
@@ -0,0 +1,5 @@
1
+ en:
2
+ classes:
3
+ ecm/pictures/backend/engine: 'Pictures'
4
+ routes:
5
+ ecm-pictures-backend-engine: 'pictures'
@@ -1,7 +1,7 @@
1
1
  module Ecm
2
2
  module Pictures
3
3
  module Backend
4
- VERSION = '3.1.2'.freeze
4
+ VERSION = '3.2.0'.freeze
5
5
  end
6
6
  end
7
7
  end
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.1.2
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-04-11 00:00:00.000000000 Z
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.4.8
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: