ecm_downloads2_backend 1.1.1 → 2.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/downloads/backend/download_categories_controller.rb +1 -1
- data/app/controllers/ecm/downloads/backend/downloads_controller.rb +3 -3
- data/app/views/ecm/downloads/backend/download_categories/_table.html.haml +1 -1
- data/app/views/ecm/downloads/backend/downloads/_form.html.haml +1 -1
- data/app/views/ecm/downloads/backend/downloads/_table.html.haml +1 -1
- data/lib/ecm/downloads/backend/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4cb70d94e836675551441990b982a0c4ecda3e8
|
4
|
+
data.tar.gz: 0df506fcdc7457bfd417cd283fb5b6e96bd77ffa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6227439e201a6c703e5bc94941f0dc8178692fb1cd8b26835343bdb49148a6cc42faef0dfee6ab4d013f27fa5b6bd54ba973326768275f0c64b29486f26d1bb3
|
7
|
+
data.tar.gz: 34ecc8f5757b1c29c60c2e591d85d8f0a1d85d49a6a69865ebe5510c5af478dafb075108ab1ea81c45bf81b581a6149c32bdae5ee8c92c798ebc5b53fbc102a1
|
@@ -12,12 +12,12 @@ class Ecm::Downloads::Backend::DownloadsController < Itsf::Backend::Resource::Ba
|
|
12
12
|
|
13
13
|
def permitted_params
|
14
14
|
params
|
15
|
-
.require(:
|
16
|
-
.permit(:
|
15
|
+
.require(:download)
|
16
|
+
.permit(:download_category_id, :asset, :name, :description, :published)
|
17
17
|
end
|
18
18
|
|
19
19
|
def collection_scope
|
20
|
-
@q = collection_scope_with_search_scopes(resource_class.includes(:
|
20
|
+
@q = collection_scope_with_search_scopes(resource_class.includes(:download_category)).ransack(params[:q])
|
21
21
|
@q.result(distinct: true)
|
22
22
|
end
|
23
23
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
= table.column :locale
|
2
2
|
= table.column :name, class: 'truncate-chars truncate-chars-30'
|
3
3
|
= table.column :description, class: 'truncate-chars truncate-chars-30'
|
4
|
-
= table.column :
|
4
|
+
= table.column :downloads_count
|
5
5
|
= table.association :parent
|
6
6
|
= table.timestamps
|
@@ -1,4 +1,4 @@
|
|
1
|
-
= table.association :
|
1
|
+
= table.association :download_category, url: ->(category) { download_category_path(category) }
|
2
2
|
= table.column :name, class: 'truncate-chars truncate-chars-30'
|
3
3
|
= table.column(:published, class: 'table-data-centered') do |download|
|
4
4
|
- download.published? ? '<span class="label label-success"><span class="glyphicon glyphicon-ok" aria-hidden="true"></span></span>'.html_safe : '<span class="label label-danger"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></span>'.html_safe
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ecm_downloads2_backend
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.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: 2017-
|
11
|
+
date: 2017-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|