ecm_galleries_backend 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/ecm/galleries/backend/application/bootstrap_extensions.css +12 -0
- data/app/controllers/ecm/galleries/backend/picture_galleries_controller.rb +1 -1
- data/app/views/ecm/galleries/backend/picture_galleries/_form.haml +11 -1
- data/app/views/ecm/galleries/backend/picture_galleries/_table.haml +1 -1
- data/lib/ecm/galleries/backend/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 415b3d819c29b93a85298917c7a361abaf798d1ec5ab3dc7e931652274cbd3f1
|
4
|
+
data.tar.gz: dcfebadd9a3202971ea421dc917a91d18f32761a51d400e23aca0ffd903554d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 182b70903c5a8288f1f3e81c236828d972f78132847a8518f303a9880b124689e8d88553f5d0158e35f7d9f310113ba9100eba4e4c3f28bb8e17c25d35d66a7d
|
7
|
+
data.tar.gz: 7c452d2d0877ef9b914e3b3d3503b89787dae43988e64eb2244d136f99bc0c6ff2dcf49c01d5c379ba0a52b8ac00cdbc525c4e84228e4d82d7f7bd8b27da4fb2
|
@@ -14,7 +14,7 @@ module Ecm
|
|
14
14
|
private
|
15
15
|
|
16
16
|
def permitted_params
|
17
|
-
params.require(:picture_gallery).permit(:name, :description, :published, assets: [])
|
17
|
+
params.require(:picture_gallery).permit(:name, :description, :published, { assets: [], overwrite_assets: [], append_assets: [] })
|
18
18
|
end
|
19
19
|
end
|
20
20
|
end
|
@@ -1,3 +1,13 @@
|
|
1
1
|
= form.input :name
|
2
|
-
|
2
|
+
- if form.object.new_record?
|
3
|
+
= form.input :assets, as: :file, input_html: { multiple: true }
|
4
|
+
- else
|
5
|
+
.row.mb-4
|
6
|
+
.col-md-6
|
7
|
+
.bg-success.p-4
|
8
|
+
= form.input :append_assets, as: :file, input_html: { multiple: true }
|
9
|
+
.col-md-6
|
10
|
+
.bg-danger.p-4
|
11
|
+
= form.input :overwrite_assets, as: :file, input_html: { multiple: true }
|
12
|
+
|
3
13
|
= form.input :published, as: :boolean
|
@@ -1,5 +1,5 @@
|
|
1
1
|
= table.column :preview do |resource|
|
2
|
-
- if resource.picture_details.first.present?
|
2
|
+
- if resource.picture_details.first.try(:asset).present?
|
3
3
|
- bootstrap_thumbnail(image_options: { src: main_app.url_for(resource.picture_details.first.asset) })
|
4
4
|
= table.column :name, sort: true
|
5
5
|
= table.column :picture_details_count
|
metadata
CHANGED
@@ -1,43 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ecm_galleries_backend
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.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: 2018-12-
|
11
|
+
date: 2018-12-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 5.2.0
|
19
|
+
version: 5.2.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 5.2.0
|
26
|
+
version: 5.2.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: ecm_galleries
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 0.3.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 0.3.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rao-query
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|