ecm_pictures2_backend 2.0.9 → 3.0.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: afd6c51c370970e06ea4ed1e4210ef9033b331e2
4
- data.tar.gz: bfece2f8ba23022c04e010287a3083875394fc31
3
+ metadata.gz: f64997e1ae0dae16e0cf17c73ff097e3dbb36af4
4
+ data.tar.gz: b8df6a17a89be5b3a1bf5e32d81e002bca796e08
5
5
  SHA512:
6
- metadata.gz: 3e07e8d2043664993389f31cff21d859a84ee218486278aa70467b7573c00111be884fcb00297280c202c09449ca42ada1ea2265efa1b587d92ba582cd8d256e
7
- data.tar.gz: 617532fae08d91c46f8eb6deb4fa54afaf610a8d85834e34f023ecfe0440fe2b81849753b093d5374aa88b6b003680dfc2894fe89052d12842b2a6f603d6f444
6
+ metadata.gz: fd78249aae95cdc6fd1c8324724c4d33912385aa8165147f8d667d3eca42d1522fd9b1e91ad819f19e90d19d4532a49425b789af4be4f44f268eb438098a2376
7
+ data.tar.gz: a21a00cce76a29fe9788f819b23dae0cc6a3ffc023a8dd4db3c2c290c7a9ef557d04a35aa2dc660f643d2025738e93f352e43c8ade662899ba302d6d56608d64
@@ -1,13 +1,13 @@
1
- class Ecm::Pictures::Backend::PictureGalleriesController < Itsf::Backend::Resource::BaseController
1
+ class Ecm::Pictures::Backend::GalleriesController < Itsf::Backend::Resource::BaseController
2
2
  def self.resource_class
3
- Ecm::Pictures::PictureGallery
3
+ Ecm::Pictures::Gallery
4
4
  end
5
5
 
6
6
  private
7
7
 
8
8
  def permitted_params
9
9
  params
10
- .require(:ecm_pictures_picture_gallery)
10
+ .require(:ecm_pictures_gallery)
11
11
  .permit(:name, :markup_language, :description, :link_images, :tag_list, picture_images: [])
12
12
  end
13
13
  end
@@ -1,6 +1,4 @@
1
1
  module Ecm::Pictures::Backend
2
2
  class HomeController < Itsf::Backend::HomeController
3
- def index
4
- end
5
3
  end
6
4
  end
@@ -21,7 +21,7 @@ class Ecm::Pictures::Backend::PicturesController < Itsf::Backend::Resource::Base
21
21
  processed_params = params.deep_dup
22
22
  image_base64 = processed_params[:ecm_pictures_picture].try(:delete, :image_base64)
23
23
 
24
- p = processed_params.require(:ecm_pictures_picture).permit(:picture_gallery_id, :name, :markup_language, :description, :tag_list, :image)
24
+ p = processed_params.require(:ecm_pictures_picture).permit(:gallery_id, :name, :markup_language, :description, :tag_list, :image)
25
25
 
26
26
  if image_base64.present?
27
27
  p.merge(image: extract_image_base64(image_base64) )
@@ -0,0 +1,4 @@
1
+ module Ecm::Pictures
2
+ class GalleryPolicy < Itsf::Backend::BasePolicy
3
+ end
4
+ end
@@ -1,6 +1,6 @@
1
1
  = table.column :name, class: 'truncate-chars truncate-chars-30'
2
2
  = table.column :description, class: 'truncate-chars truncate-chars-30'
3
3
  = table.column :link_images
4
- = table.column :pictures_count do |picture_gallery|
5
- %span.label.label-default= picture_gallery.pictures_count
4
+ = table.column :pictures_count do |gallery|
5
+ %span.label.label-default= gallery.pictures_count
6
6
  = table.timestamps
@@ -1,5 +1,5 @@
1
1
  .well
2
- = form.association :picture_gallery
2
+ = form.association :gallery
3
3
 
4
4
  .well
5
5
  = form.input :name
@@ -1,6 +1,6 @@
1
1
  = table.row :image, as: :image
2
2
  = table.row :id
3
- = table.row :picture_gallery, as: :association
3
+ = table.row :gallery, as: :association
4
4
  = table.row :name
5
5
  = table.row :description, as: :text, syntax: table.resource.markup_language
6
6
  = table.row :image_file_name
@@ -1,4 +1,4 @@
1
- = table.association :picture_gallery
1
+ = table.association :gallery
2
2
  = table.column(:preview_picture) do |picture|
3
3
  %img.img-responsive.bottom-margin-2{ src: picture.image.url(:default_thumb) }
4
4
  = table.column :name, class: 'truncate-chars truncate-chars-30'
data/config/rbac.yml CHANGED
@@ -1,13 +1,13 @@
1
1
  defaults:
2
2
  permissions:
3
3
  - ecm/pictures/backend/engine
4
- - ecm/pictures/picture_gallery/index
5
- - ecm/pictures/picture_gallery/show
6
- - ecm/pictures/picture_gallery/new
7
- - ecm/pictures/picture_gallery/create
8
- - ecm/pictures/picture_gallery/edit
9
- - ecm/pictures/picture_gallery/update
10
- - ecm/pictures/picture_gallery/destroy
4
+ - ecm/pictures/gallery/index
5
+ - ecm/pictures/gallery/show
6
+ - ecm/pictures/gallery/new
7
+ - ecm/pictures/gallery/create
8
+ - ecm/pictures/gallery/edit
9
+ - ecm/pictures/gallery/update
10
+ - ecm/pictures/gallery/destroy
11
11
  - ecm/pictures/picture/index
12
12
  - ecm/pictures/picture/show
13
13
  - ecm/pictures/picture/new
@@ -18,13 +18,13 @@ defaults:
18
18
  roles:
19
19
  ecm/pictures/administrator:
20
20
  - ecm/pictures/backend/engine
21
- - ecm/pictures/picture_gallery/index
22
- - ecm/pictures/picture_gallery/show
23
- - ecm/pictures/picture_gallery/new
24
- - ecm/pictures/picture_gallery/create
25
- - ecm/pictures/picture_gallery/edit
26
- - ecm/pictures/picture_gallery/update
27
- - ecm/pictures/picture_gallery/destroy
21
+ - ecm/pictures/gallery/index
22
+ - ecm/pictures/gallery/show
23
+ - ecm/pictures/gallery/new
24
+ - ecm/pictures/gallery/create
25
+ - ecm/pictures/gallery/edit
26
+ - ecm/pictures/gallery/update
27
+ - ecm/pictures/gallery/destroy
28
28
  - ecm/pictures/picture/index
29
29
  - ecm/pictures/picture/show
30
30
  - ecm/pictures/picture/new
@@ -34,7 +34,7 @@ defaults:
34
34
  - ecm/pictures/picture/destroy
35
35
  ecm/pictures/reviewer:
36
36
  - ecm/pictures/backend/engine
37
- - ecm/pictures/picture_gallery/index
38
- - ecm/pictures/picture_gallery/show
37
+ - ecm/pictures/gallery/index
38
+ - ecm/pictures/gallery/show
39
39
  - ecm/pictures/picture/index
40
40
  - ecm/pictures/picture/show
data/config/routes.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  Ecm::Pictures::Backend::Engine.routes.draw do
2
- resources :picture_galleries
2
+ resources :galleries
3
3
  resources :pictures
4
4
 
5
5
  root to: 'home#index'
@@ -1,7 +1,7 @@
1
1
  module Ecm
2
2
  module Pictures
3
3
  module Backend
4
- VERSION = '2.0.9'.freeze
4
+ VERSION = '3.0.0'.freeze
5
5
  end
6
6
  end
7
7
  end
@@ -2,13 +2,13 @@ Ecm::Pictures::Backend.configure do |config|
2
2
  # Set the resources, that will be shown in the backend menu.
3
3
  #
4
4
  # Default: config.registered_controllers = -> {[
5
- # Ecm::Pictures::Backend::PictureGalleriesController,
5
+ # Ecm::Pictures::Backend::GalleriesController,
6
6
  # Ecm::Pictures::Backend::PicturesController
7
7
  # ]}
8
8
  #
9
9
  config.registered_controllers = lambda {
10
10
  [
11
- Ecm::Pictures::Backend::PictureGalleriesController,
11
+ Ecm::Pictures::Backend::GalleriesController,
12
12
  Ecm::Pictures::Backend::PicturesController
13
13
  ]
14
14
  }
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: 2.0.9
4
+ version: 3.0.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: 2016-06-10 00:00:00.000000000 Z
11
+ date: 2016-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -224,17 +224,17 @@ files:
224
224
  - app/assets/stylesheets/ecm/pictures/backend/application/thumbnails_selected.css
225
225
  - app/assets/stylesheets/ecm_pictures_backend.css
226
226
  - app/controllers/ecm/pictures/backend/application_controller.rb
227
+ - app/controllers/ecm/pictures/backend/galleries_controller.rb
227
228
  - app/controllers/ecm/pictures/backend/home_controller.rb
228
- - app/controllers/ecm/pictures/backend/picture_galleries_controller.rb
229
229
  - app/controllers/ecm/pictures/backend/pictures_controller.rb
230
230
  - app/helpers/ecm/pictures/backend/application_helper.rb
231
231
  - app/policies/ecm/pictures/backend/engine_policy.rb
232
- - app/policies/ecm/pictures/picture_gallery_policy.rb
232
+ - app/policies/ecm/pictures/gallery_policy.rb
233
233
  - app/policies/ecm/pictures/picture_policy.rb
234
- - app/views/ecm/pictures/backend/picture_galleries/_form.html.haml
235
- - app/views/ecm/pictures/backend/picture_galleries/_show.haml
236
- - app/views/ecm/pictures/backend/picture_galleries/_show_extras.haml
237
- - app/views/ecm/pictures/backend/picture_galleries/_table.html.haml
234
+ - app/views/ecm/pictures/backend/galleries/_form.html.haml
235
+ - app/views/ecm/pictures/backend/galleries/_show.haml
236
+ - app/views/ecm/pictures/backend/galleries/_show_extras.haml
237
+ - app/views/ecm/pictures/backend/galleries/_table.html.haml
238
238
  - app/views/ecm/pictures/backend/pictures/_form.html.haml
239
239
  - app/views/ecm/pictures/backend/pictures/_show.html.haml
240
240
  - app/views/ecm/pictures/backend/pictures/_table.html.haml
@@ -1,4 +0,0 @@
1
- module Ecm::Pictures
2
- class PictureGalleryPolicy < Itsf::Backend::BasePolicy
3
- end
4
- end