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 +4 -4
- data/app/controllers/ecm/pictures/backend/{picture_galleries_controller.rb → galleries_controller.rb} +3 -3
- data/app/controllers/ecm/pictures/backend/home_controller.rb +0 -2
- data/app/controllers/ecm/pictures/backend/pictures_controller.rb +1 -1
- data/app/policies/ecm/pictures/gallery_policy.rb +4 -0
- data/app/views/ecm/pictures/backend/{picture_galleries → galleries}/_form.html.haml +0 -0
- data/app/views/ecm/pictures/backend/{picture_galleries → galleries}/_show.haml +0 -0
- data/app/views/ecm/pictures/backend/{picture_galleries → galleries}/_show_extras.haml +0 -0
- data/app/views/ecm/pictures/backend/{picture_galleries → galleries}/_table.html.haml +2 -2
- data/app/views/ecm/pictures/backend/pictures/_form.html.haml +1 -1
- data/app/views/ecm/pictures/backend/pictures/_show.html.haml +1 -1
- data/app/views/ecm/pictures/backend/pictures/_table.html.haml +1 -1
- data/config/rbac.yml +16 -16
- data/config/routes.rb +1 -1
- data/lib/ecm/pictures/backend/version.rb +1 -1
- data/lib/generators/ecm/pictures/backend/install/templates/initializer.rb +2 -2
- metadata +8 -8
- data/app/policies/ecm/pictures/picture_gallery_policy.rb +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f64997e1ae0dae16e0cf17c73ff097e3dbb36af4
|
4
|
+
data.tar.gz: b8df6a17a89be5b3a1bf5e32d81e002bca796e08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd78249aae95cdc6fd1c8324724c4d33912385aa8165147f8d667d3eca42d1522fd9b1e91ad819f19e90d19d4532a49425b789af4be4f44f268eb438098a2376
|
7
|
+
data.tar.gz: a21a00cce76a29fe9788f819b23dae0cc6a3ffc023a8dd4db3c2c290c7a9ef557d04a35aa2dc660f643d2025738e93f352e43c8ade662899ba302d6d56608d64
|
@@ -1,13 +1,13 @@
|
|
1
|
-
class Ecm::Pictures::Backend::
|
1
|
+
class Ecm::Pictures::Backend::GalleriesController < Itsf::Backend::Resource::BaseController
|
2
2
|
def self.resource_class
|
3
|
-
Ecm::Pictures::
|
3
|
+
Ecm::Pictures::Gallery
|
4
4
|
end
|
5
5
|
|
6
6
|
private
|
7
7
|
|
8
8
|
def permitted_params
|
9
9
|
params
|
10
|
-
.require(:
|
10
|
+
.require(:ecm_pictures_gallery)
|
11
11
|
.permit(:name, :markup_language, :description, :link_images, :tag_list, picture_images: [])
|
12
12
|
end
|
13
13
|
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(:
|
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) )
|
File without changes
|
File without changes
|
File without changes
|
@@ -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 |
|
5
|
-
%span.label.label-default=
|
4
|
+
= table.column :pictures_count do |gallery|
|
5
|
+
%span.label.label-default= gallery.pictures_count
|
6
6
|
= table.timestamps
|
data/config/rbac.yml
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
defaults:
|
2
2
|
permissions:
|
3
3
|
- ecm/pictures/backend/engine
|
4
|
-
- ecm/pictures/
|
5
|
-
- ecm/pictures/
|
6
|
-
- ecm/pictures/
|
7
|
-
- ecm/pictures/
|
8
|
-
- ecm/pictures/
|
9
|
-
- ecm/pictures/
|
10
|
-
- ecm/pictures/
|
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/
|
22
|
-
- ecm/pictures/
|
23
|
-
- ecm/pictures/
|
24
|
-
- ecm/pictures/
|
25
|
-
- ecm/pictures/
|
26
|
-
- ecm/pictures/
|
27
|
-
- ecm/pictures/
|
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/
|
38
|
-
- ecm/pictures/
|
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
@@ -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::
|
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::
|
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:
|
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-
|
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/
|
232
|
+
- app/policies/ecm/pictures/gallery_policy.rb
|
233
233
|
- app/policies/ecm/pictures/picture_policy.rb
|
234
|
-
- app/views/ecm/pictures/backend/
|
235
|
-
- app/views/ecm/pictures/backend/
|
236
|
-
- app/views/ecm/pictures/backend/
|
237
|
-
- app/views/ecm/pictures/backend/
|
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
|